input
stringlengths
28
18.7k
output
stringlengths
39
1.69k
testReadDouble ( ) { java . nio . ByteBuffer byteBuffer = java . nio . ByteBuffer . allocate ( ( ( com . liferay . portal . kernel . io . DeserializerTest . _COUNT ) * 8 ) ) ; byteBuffer . order ( ByteOrder . BIG_ENDIAN ) ; java . nio . DoubleBuffer doubleBuffer = byteBuffer . asDoubleBuffer ( ) ; double [ ] doubles = ...
org . junit . Assert . assertEquals ( ( ( java . lang . Double ) ( doubles [ i ] ) ) , ( ( java . lang . Double ) ( deserializer . readDouble ( ) ) ) )
testEncryptDecrypt ( ) { final java . lang . String unencryptedPassword = "protect" ; ddf . security . encryption . impl . EncryptionServiceImplTest . LOGGER . debug ( "Unencrypted<sp>Password:<sp>{}" , unencryptedPassword ) ; final ddf . security . encryption . impl . EncryptionServiceImpl encryptionService = new ddf ...
org . junit . Assert . assertEquals ( unencryptedPassword , decryptedPassword )
testConstructorWithInvalidSuite ( ) { try { new com . codeaffine . osgi . testuite . BundleTestSuite ( com . codeaffine . osgi . testuite . BundleTestSuiteTest . InvalidBundleTestSuite . class ) ; org . junit . Assert . fail ( ) ; } catch ( org . junit . runners . model . InitializationError expected ) { java . lang . ...
org . junit . Assert . assertTrue ( message . contains ( com . codeaffine . osgi . testuite . BundleTestSuiteTest . InvalidBundleTestSuite . class . getName ( ) ) )
apiDeleteProductTest ( ) { java . util . Map product = wooCommerce . delete ( EndpointBaseType . PRODUCTS . getValue ( ) , 10 ) ; "<AssertPlaceHolder>" ; } getValue ( ) { return value ; }
org . junit . Assert . assertNotNull ( product )
testInterpolateString ( ) { java . util . Properties prop = new java . util . Properties ( ) ; prop . setProperty ( "key" , "value" ) ; prop . setProperty ( "nested" , "nested<sp>${key}" ) ; java . lang . String text = "This<sp>is<sp>a<sp>test<sp>of<sp>'${key}'<sp>'${nested}'" ; java . lang . String expResults = "This<...
org . junit . Assert . assertEquals ( expResults , results )
testLinspace1 ( ) { org . nd4j . linalg . api . ndarray . INDArray z1 = org . nd4j . linalg . factory . Nd4j . linspace ( 1 , 100 , 200 ) ; org . nd4j . linalg . rng . Linspace linspace = new org . nd4j . linalg . rng . Linspace ( 1 , 100 , 200 ) ; org . nd4j . linalg . factory . Nd4j . getExecutioner ( ) . exec ( lins...
org . junit . Assert . assertEquals ( z1 , z2 )
testGetTotalConnectionSize ( ) { io . cloudslang . content . database . services . dbconnection . DBConnectionManager dbcManagerSpy = getDBConnectionManagerSpyWithPooling ( ) ; dbcManagerSpy . dbmsPoolTable = getHashTableObject3 ( ) ; java . util . Hashtable < java . lang . String , io . cloudslang . content . database...
org . junit . Assert . assertEquals ( 10 , dbcManagerSpy . getTotalConnectionSize ( ) )
testSaml2TokenHOK ( ) { org . apache . cxf . service . Service service = createService ( ) ; java . util . Map < java . lang . String , java . lang . Object > inProperties = new java . util . HashMap ( ) ; inProperties . put ( ConfigurationConstants . ACTION , ( ( ( org . apache . wss4j . common . ConfigurationConstant...
org . junit . Assert . assertEquals ( "test" , echo . echo ( "test" ) )
simpleTextReplacement ( ) { com . atlassian . plugins . codegen . modules . PluginModuleProperties props = new com . atlassian . plugins . codegen . modules . BasicClassModuleProperties ( ) ; java . lang . String expected = "i.work" ; props . setProperty ( "PACKAGE_NAME" , expected ) ; com . atlassian . plugins . codeg...
org . junit . Assert . assertEquals ( expected , parsedTemplate )
testToDbTokensCompare ( ) { java . util . List < org . apache . cayenne . dbsync . merge . token . MergerToken > tokens = java . util . Arrays . < org . apache . cayenne . dbsync . merge . token . MergerToken > asList ( new org . apache . cayenne . dbsync . merge . token . db . DropColumnToDb ( null , null ) , new org ...
org . junit . Assert . assertEquals ( expected , actual )
runInTransactionShouldThrowIfDatastoreNewTransactionFails ( ) { com . spotify . styx . storage . CheckedDatastore datastore = mock ( com . spotify . styx . storage . CheckedDatastore . class ) ; final com . spotify . styx . storage . DatastoreStorage storage = new com . spotify . styx . storage . DatastoreStorage ( dat...
org . junit . Assert . assertFalse ( e . isConflict ( ) )
getSetCreated ( ) { java . util . Date expected = new java . util . Date ( ) ; com . microsoft . windowsazure . services . media . models . AccessPolicyInfo policy = new com . microsoft . windowsazure . services . media . models . AccessPolicyInfo ( null , new com . microsoft . windowsazure . services . media . impleme...
org . junit . Assert . assertEquals ( expected , actual )
testWeirdConvImport ( ) { lombok . val tg = org . nd4j . imports . graphmapper . tf . TFGraphMapper . getInstance ( ) . importGraph ( new java . io . File ( "/home/agibsonccc/code/raver_tfimport_test1/profiling_conv.pb.txt" ) ) ; "<AssertPlaceHolder>" ; } importGraph ( org . nd4j . imports . graphmapper . InputStream )...
org . junit . Assert . assertNotNull ( tg )
test40getPoliciesByResourceSignature ( ) { java . util . List < org . apache . ranger . plugin . model . RangerPolicy > rangerPolicyLists = new java . util . ArrayList < org . apache . ranger . plugin . model . RangerPolicy > ( ) ; org . apache . ranger . plugin . model . RangerPolicy rangerPolicy = rangerPolicy ( ) ; ...
org . junit . Assert . assertNotNull ( policyList )
testExecute ( ) { com . ctrip . platform . dal . dao . task . SingleInsertTask < com . ctrip . platform . dal . dao . task . ClientTestModel > test = new com . ctrip . platform . dal . dao . task . SingleInsertTask ( ) ; test . initialize ( getParser ( ) ) ; com . ctrip . platform . dal . dao . DalHints hints = new com...
org . junit . Assert . assertEquals ( ( 3 + 1 ) , getCount ( ) )
testRestorationFromAutomationOperation ( ) { java . util . List < org . nuxeo . ecm . platform . audit . api . LogEntry > entries = new java . util . ArrayList ( ) ; for ( int i = 0 ; i < 1000 ; i ++ ) { entries . add ( org . nuxeo . elasticsearch . LogEntryGen . doCreateEntry ( "mydoc" , "evt" , "cat" ) ) ; } jpaBacke...
org . junit . Assert . assertEquals ( 1000 , migratedEntries . size ( ) )
testSetJmx ( ) { org . jacoco . core . runtime . AgentOptions options = new org . jacoco . core . runtime . AgentOptions ( ) ; options . setJmx ( true ) ; "<AssertPlaceHolder>" ; } getJmx ( ) { return getOption ( org . jacoco . core . runtime . AgentOptions . JMX , false ) ; }
org . junit . Assert . assertTrue ( options . getJmx ( ) )
testHandleGetRequest ( ) { com . fasterxml . jackson . databind . ObjectMapper mapper = new com . fasterxml . jackson . databind . ObjectMapper ( ) ; com . fasterxml . jackson . databind . node . ObjectNode node = mapper . createObjectNode ( ) ; expect ( restconfService . runGetOperationOnDataResource ( java . net . UR...
org . junit . Assert . assertNotNull ( response )
testOnEnderChestOpenNotRightClick ( ) { action = org . bukkit . event . block . Action . LEFT_CLICK_AIR ; org . bukkit . block . BlockFace clickedBlockFace = org . bukkit . block . BlockFace . EAST ; org . bukkit . event . player . PlayerInteractEvent e = new org . bukkit . event . player . PlayerInteractEvent ( player...
org . junit . Assert . assertFalse ( e . isCancelled ( ) )
testGetValue ( ) { org . jinstagram . auth . model . Verifier fixture = new org . jinstagram . auth . model . Verifier ( "verifierCode" ) ; java . lang . String result = fixture . getValue ( ) ; "<AssertPlaceHolder>" ; } getValue ( ) { return value ; }
org . junit . Assert . assertEquals ( "verifierCode" , result )
hamcrest_core_is ( ) { java . lang . String isLite = "Miller<sp>Brewing<sp>Company" ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertThat ( "Miller<sp>Brewing<sp>Company" , org . hamcrest . CoreMatchers . is ( org . hamcrest . CoreMatchers . equalTo ( isLite ) ) )
testGetNumResolutions ( ) { "<AssertPlaceHolder>" ; } getNumResolutions ( ) { return numResolutions ; }
org . junit . Assert . assertEquals ( 3 , instance . getNumResolutions ( ) )
getDocumentByIdTest ( ) { final org . bonitasoft . engine . core . document . model . SMappedDocument sDocument = createDocumentMapping ( ) ; final org . bonitasoft . engine . core . document . model . SMappedDocument result = getDocumentMapping ( sDocument ) ; "<AssertPlaceHolder>" ; delete ( result ) ; } getId ( ) { ...
org . junit . Assert . assertEquals ( sDocument . getId ( ) , result . getId ( ) )
getAndSetId ( ) { final int newId = 2 ; customer . setId ( newId ) ; "<AssertPlaceHolder>" ; } getId ( ) { return id ; }
org . junit . Assert . assertEquals ( newId , customer . getId ( ) )
testGetHeaders ( ) { gov . hhs . fha . nhinc . callback . SOAPHeaderHandler soapHeaderHandler = new gov . hhs . fha . nhinc . callback . SOAPHeaderHandler ( ) ; java . util . Set < javax . xml . namespace . QName > header = soapHeaderHandler . getHeaders ( ) ; "<AssertPlaceHolder>" ; } getHeaders ( ) { java . util . Se...
org . junit . Assert . assertTrue ( header . isEmpty ( ) )
doAnyCustomersLiveInLondon ( ) { boolean anyCustomersFromLondon = false ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertTrue ( anyCustomersFromLondon )
getLoadedPaths ( ) { classLoader . addPath ( "src/test/resources/commons-beanutils-1.8.3.jar" ) ; java . util . Set set = new java . util . HashSet ( java . util . Arrays . asList ( new java . io . File ( "src/test/resources/commons-beanutils-1.8.3.jar" ) . toURL ( ) ) ) ; "<AssertPlaceHolder>" ; } getLoadedPaths ( ) {...
org . junit . Assert . assertEquals ( set , classLoader . getLoadedPaths ( ) )
getDriverClassName ( ) { "<AssertPlaceHolder>" ; } getDriverClassName ( ) { org . junit . Assert . assertEquals ( "net.sourceforge.jtds.jdbc.Driver" , instance . getDriverClassName ( ) ) ; }
org . junit . Assert . assertEquals ( "net.sourceforge.jtds.jdbc.Driver" , instance . getDriverClassName ( ) )
getUsersByName_shouldNotFetchAnyVoidedUsersWhenIncludeVoidedIsFalse ( ) { org . openmrs . User voidedUser = userService . getUser ( 501 ) ; java . util . List < org . openmrs . User > users = userService . getUsersByName ( "Bruno" , "Otterbourg" , false ) ; "<AssertPlaceHolder>" ; } contains ( java . lang . Object ) { ...
org . junit . Assert . assertFalse ( users . contains ( voidedUser ) )
panopticOperationsHandlerSetUgiException ( ) { java . lang . String user = "user" ; java . util . List < java . lang . String > groups = com . google . common . collect . Lists . newArrayList ( ) ; when ( primaryDatabaseClient . set_ugi ( user , groups ) ) . thenThrow ( new org . apache . thrift . TException ( ) ) ; co...
org . junit . Assert . assertThat ( result . size ( ) , org . hamcrest . CoreMatchers . is ( 0 ) )
testImageNotUpdatedWhenUpdatingBlogsEntryWithNullImageSelector ( ) { com . liferay . blogs . model . BlogsEntry blogsEntry = addBlogsEntry ( "image1.jpg" ) ; com . liferay . portal . kernel . repository . model . FileEntry imageFileEntry = com . liferay . portal . kernel . portletfilerepository . PortletFileRepositoryU...
org . junit . Assert . assertEquals ( imageFileEntry . getFileEntryId ( ) , getImageFileEntryId ( blogsEntry ) )
should_generate ( ) { net . rrm . ehour . report . criteria . ReportCriteria criteria = net . rrm . ehour . ui . report . detailed . DetailedReportDataObjectMother . getReportCriteria ( ) ; when ( detailedReportService . getDetailedReportData ( criteria ) ) . thenReturn ( net . rrm . ehour . ui . report . detailed . De...
org . junit . Assert . assertTrue ( ( ( excelData . length ) > 0 ) )
testBuildCityDisplayNameWithCityWithoutZipCode ( ) { com . gisgraphy . webapp . action . GeocodingAction action = new com . gisgraphy . webapp . action . GeocodingAction ( ) ; com . gisgraphy . fulltext . SolrResponseDto cityFound1 = org . easymock . EasyMock . createMock ( com . gisgraphy . fulltext . SolrResponseDto ...
org . junit . Assert . assertEquals ( cityFound1 . getName ( ) , displayName )
shouldReturnActiveRMUrlWhenConnectingToStandby ( ) { java . util . Map < java . lang . String , java . lang . String > map = new java . util . HashMap ( ) ; map . put ( "yarn.resourcemanager.url" , ( ( ( org . apache . ambari . view . utils . ambari . ServicesTest . HTTP_RM_URL1 ) + ",<sp>" ) + ( org . apache . ambari ...
org . junit . Assert . assertEquals ( org . apache . ambari . view . utils . ambari . ServicesTest . HTTP_RM_URL2 , services . getRMUrl ( ) )
testWriteListOfDerivedTypes ( ) { org . apache . cxf . jaxrs . provider . json . JSONProvider < org . apache . cxf . jaxrs . provider . json . JSONProviderTest . Books2 > p = new org . apache . cxf . jaxrs . provider . json . JSONProvider ( ) ; java . util . Map < java . lang . String , java . lang . String > namespace...
org . junit . Assert . assertEquals ( data , s )
setServiceDiscoveryFactory ( ) { io . katharsis . core . internal . boot . KatharsisBoot boot = new io . katharsis . core . internal . boot . KatharsisBoot ( ) ; boot . setServiceDiscoveryFactory ( serviceDiscoveryFactory ) ; boot . setDefaultServiceUrlProvider ( org . mockito . Mockito . mock ( io . katharsis . resour...
org . junit . Assert . assertNotNull ( boot . getServiceDiscovery ( ) )
testGetDayDemoFieldEncodingMap ( ) { java . util . Map < java . lang . String , java . util . Map < java . lang . String , java . lang . Object > > fieldEncodings = org . numenta . nupic . examples . napi . hotgym . NetworkDemoHarness . getDayDemoFieldEncodingMap ( ) ; "<AssertPlaceHolder>" ; } getDayDemoFieldEncodingM...
org . junit . Assert . assertEquals ( 1 , fieldEncodings . size ( ) )
testSerialization ( ) { org . jfree . chart . needle . WindNeedle n1 = new org . jfree . chart . needle . WindNeedle ( ) ; org . jfree . chart . needle . WindNeedle n2 = ( ( org . jfree . chart . needle . WindNeedle ) ( org . jfree . chart . TestUtilities . serialised ( n1 ) ) ) ; "<AssertPlaceHolder>" ; } equals ( jav...
org . junit . Assert . assertTrue ( n1 . equals ( n2 ) )
test2 ( ) { cc . redberry . rings . IntegersZp64 domain = new cc . redberry . rings . IntegersZp64 ( 43313 ) ; java . lang . String [ ] vars = new java . lang . String [ ] { "a" , "b" } ; cc . redberry . rings . poly . multivar . MultivariatePolynomialZp64 [ ] factors = new cc . redberry . rings . poly . multivar . Mul...
org . junit . Assert . assertEquals ( base , cc . redberry . rings . poly . multivar . HenselLiftingTest . multiply ( uFactors ) )
testDynamicQueryByProjectionMissing ( ) { com . liferay . portal . kernel . dao . orm . DynamicQuery dynamicQuery = com . liferay . portal . kernel . dao . orm . DynamicQueryFactoryUtil . forClass ( com . liferay . change . tracking . model . CTEntry . class , _dynamicQueryClassLoader ) ; dynamicQuery . setProjection (...
org . junit . Assert . assertEquals ( 0 , result . size ( ) )
testCastToString ( ) { java . lang . String result = testDialect . getSqlFrom ( new org . alfasoftware . morf . sql . element . Cast ( new org . alfasoftware . morf . sql . element . FieldReference ( "value" ) , org . alfasoftware . morf . metadata . DataType . STRING , 10 ) ) ; "<AssertPlaceHolder>" ; } expectedString...
org . junit . Assert . assertEquals ( expectedStringCast ( ) , result )
testFindByNodeId ( ) { org . opennms . netmgt . model . OnmsNode onmsNode = new org . opennms . netmgt . model . OnmsNode ( m_locationDao . getDefaultLocation ( ) , "myNode" ) ; m_nodeDao . save ( onmsNode ) ; org . opennms . netmgt . model . OnmsAssetRecord assetRecord = onmsNode . getAssetRecord ( ) ; assetRecord . s...
org . junit . Assert . assertTrue ( a . equals ( assetRecord ) )
testInitDynAnyFromAny ( ) { java . lang . String msg ; org . jacorb . test . StructType type ; org . omg . CORBA . Any any = null ; org . omg . CORBA . TypeCode tc = null ; org . omg . DynamicAny . DynStruct dynAny = null ; org . omg . DynamicAny . DynStruct dynAny2 = null ; tc = org . jacorb . test . StructTypeHelper ...
org . junit . Assert . assertTrue ( msg , dynAny . equal ( dynAny2 ) )
testAssertion ( ) { org . semanticweb . owlapi . util . OWLClassExpressionCollector testsubject = new org . semanticweb . owlapi . util . OWLClassExpressionCollector ( ) ; java . util . Collection < org . semanticweb . owlapi . model . OWLClassExpression > components = object . accept ( testsubject ) ; java . util . Se...
org . junit . Assert . assertEquals ( expected , strings )
testLayoutCacheIsSerializable ( ) { tree . setHeaderVisible ( true ) ; new org . eclipse . swt . widgets . TreeColumn ( tree , org . eclipse . swt . SWT . NONE ) ; int headerHeight = tree . getHeaderHeight ( ) ; org . eclipse . swt . widgets . Tree deserializedTree = serializeAndDeserialize ( tree ) ; "<AssertPlaceHold...
org . junit . Assert . assertEquals ( headerHeight , deserializedTree . getHeaderHeight ( ) )
testCoreQueryWithXMLParametersReference ( ) { org . nuxeo . ecm . platform . contentview . jsf . ContentView contentView = service . getContentView ( "CURRENT_DOCUMENT_CHILDREN_REF" ) ; "<AssertPlaceHolder>" ; java . lang . String parentIdParam = session . getRootDocument ( ) . getId ( ) ; org . nuxeo . ecm . platform ...
org . junit . Assert . assertNotNull ( contentView )
testCtor_NullPayload ( ) { byte [ ] payload = null ; message = new net . xenqtt . client . PublishMessage ( "grand/foo/bar" , net . xenqtt . message . QoS . AT_MOST_ONCE , payload , true ) ; "<AssertPlaceHolder>" ; } getPayload ( ) { return getBytes ( getPayloadIndex ( ) ) ; }
org . junit . Assert . assertArrayEquals ( new byte [ ] { } , message . getPayload ( ) )
getProbeNullTest ( ) { probeConfig = new io . fabric8 . maven . core . config . ProbeConfig . Builder ( ) . build ( ) ; probe = probeHandler . getProbe ( probeConfig ) ; "<AssertPlaceHolder>" ; } getProbe ( io . fabric8 . maven . core . config . ProbeConfig ) { if ( probeConfig == null ) { return null ; } io . fabric8 ...
org . junit . Assert . assertNull ( probe )
testPutKeyValue ( ) { com . liferay . portal . kernel . json . JSONObject jsonObject1 = _createJSONObject ( ) ; jsonObject1 . put ( "alpha" , "beta" ) ; com . liferay . portal . kernel . json . JSONObject jsonObject2 = com . liferay . portal . kernel . json . JSONUtil . put ( "alpha" , "beta" ) ; "<AssertPlaceHolder>" ...
org . junit . Assert . assertEquals ( jsonObject1 . get ( "alpha" ) , jsonObject2 . get ( "alpha" ) )
testExportReportWithNullReport ( ) { masterReport = null ; when ( swingGuiContext . getLocale ( ) ) . thenReturn ( Locale . US ) ; when ( swingGuiContext . getStatusListener ( ) ) . thenReturn ( mock ( org . pentaho . reporting . engine . classic . core . modules . gui . common . StatusListener . class ) ) ; java . lan...
org . junit . Assert . assertNull ( exportTask )
testNcPropertiesNotNullOrEmpty_AllEmpty ( ) { when ( config . getNamedCluster ( ) . getHdfsHost ( ) ) . thenReturn ( org . pentaho . big . data . kettle . plugins . sqoop . SqoopConfigTest . EMPTY ) ; when ( config . getNamedCluster ( ) . getHdfsPort ( ) ) . thenReturn ( org . pentaho . big . data . kettle . plugins . ...
org . junit . Assert . assertFalse ( ncPropertiesNotNullOrEmpty )
bulkOperationRequestSucceed ( tests . unit . com . microsoft . azure . sdk . iot . provisioning . service . IndividualEnrollment , tests . unit . com . microsoft . azure . sdk . iot . provisioning . service . BulkEnrollmentOperation , tests . unit . com . microsoft . azure . sdk . iot . provisioning . service . BulkEnr...
org . junit . Assert . assertNotNull ( bulkEnrollmentOperationResult )
testLegacyPortletWithControlPanelEntry ( ) { int initialServiceRegistrationsSize = _hotDeployListener . getServiceRegistrationsSize ( ) ; com . liferay . portal . kernel . deploy . hot . HotDeployEvent hotDeployEvent = getHotDeployEvent ( ( "classpath:/com/liferay/application/list/deploy/hot/test" + "/dependencies/cont...
org . junit . Assert . assertEquals ( ( initialServiceRegistrationsSize + 1 ) , _hotDeployListener . getServiceRegistrationsSize ( ) )
testConfigurePortForwardingRulesOnLogicalRouterRollback ( ) { resource . configure ( "NiciraNvpResource" , parameters ) ; final com . cloud . legacymodel . communication . command . ConfigurePortForwardingRulesOnLogicalRouterCommand cmd = mock ( com . cloud . legacymodel . communication . command . ConfigurePortForward...
org . junit . Assert . assertFalse ( a . getResult ( ) )
createKeystoreProvider ( ) { java . io . File targetDir = new java . io . File ( ( ( java . lang . System . getProperty ( "user.dir" ) ) + "/target" ) ) ; java . io . File keystoreFile = new java . io . File ( targetDir , "create.jks" ) ; if ( keystoreFile . exists ( ) ) { if ( ! ( keystoreFile . delete ( ) ) ) { org ....
org . junit . Assert . assertArrayEquals ( credential , org . apache . accumulo . core . conf . CredentialProviderFactoryShim . getValueFromCredentialProvider ( conf , alias ) )
testReconstructQueue2 ( ) { int [ ] [ ] people = new int [ ] [ ] { new int [ ] { 8 , 2 } , new int [ ] { 4 , 2 } , new int [ ] { 4 , 5 } , new int [ ] { 2 , 0 } , new int [ ] { 7 , 2 } , new int [ ] { 1 , 4 } , new int [ ] { 9 , 1 } , new int [ ] { 3 , 1 } , new int [ ] { 9 , 0 } , new int [ ] { 1 , 0 } } ; people = t ...
org . junit . Assert . assertEquals ( 1 , people [ 0 ] [ 0 ] )
testExportImportWithEmptyDocumentLibraryField ( ) { java . lang . String documentLibraryFieldName = "Attachment" ; com . liferay . dynamic . data . lists . model . DDLRecordSet recordSet = addRecordSetWithDocumentLibraryField ( documentLibraryFieldName ) ; com . liferay . dynamic . data . lists . helper . DDLRecordTest...
org . junit . Assert . assertNotNull ( importedDDLRecord )
toVOServiceOperationParameter_Null ( ) { org . oscm . internal . vo . VOServiceOperationParameter result = org . oscm . serviceprovisioningservice . assembler . TechServiceOperationParameterAssembler . toVOServiceOperationParameter ( null , facade ) ; "<AssertPlaceHolder>" ; } toVOServiceOperationParameter ( org . oscm...
org . junit . Assert . assertNull ( result )
testSubtract02 ( ) { javax . el . ELProcessor processor = new javax . el . ELProcessor ( ) ; java . lang . Object result = processor . eval ( "null<sp>-<sp>null" ) ; "<AssertPlaceHolder>" ; } valueOf ( int ) { return org . apache . tomcat . util . net . jsse . openssl . Cipher . idMap . get ( java . lang . Integer . va...
org . junit . Assert . assertEquals ( java . lang . Long . valueOf ( 0 ) , result )
testGetElement ( ) { final elemental2 . dom . HTMLElement expected = mock ( elemental2 . dom . HTMLElement . class ) ; when ( view . getElement ( ) ) . thenReturn ( expected ) ; final elemental2 . dom . Element actual = dateSelector . getElement ( ) ; "<AssertPlaceHolder>" ; } getElement ( ) { return view . getElement ...
org . junit . Assert . assertEquals ( expected , actual )
testRemoveTopLevelDataTypesWhenItemDataTypeIsAReferenceToDestroyedDataType ( ) { final java . lang . String uuid = "uuid" ; final org . kie . workbench . common . dmn . client . editors . types . common . DataType dataType = mock ( org . kie . workbench . common . dmn . client . editors . types . common . DataType . cl...
org . junit . Assert . assertEquals ( expectedDataTypes , actualDataTypes )
testCompare ( ) { java . util . List < org . eclipse . tycho . core . ee . StandardExecutionEnvironment > expectedList = new java . util . ArrayList ( java . util . Arrays . asList ( osgiMin10Environment , osgiMin11Environment , osgiMin12Environment , cdc10Environment , cdc11Environment , jre11Environment , j2SE12Envir...
org . junit . Assert . assertEquals ( expectedList , actualList )
updateNamespaceIamRoleAuthorizationAssertCallsService ( ) { java . lang . String expectedNamespace = "namespace" ; org . finra . herd . model . api . xml . NamespaceIamRoleAuthorizationUpdateRequest expectedRequest = new org . finra . herd . model . api . xml . NamespaceIamRoleAuthorizationUpdateRequest ( ) ; org . fin...
org . junit . Assert . assertEquals ( expectedResult , actualResult )
shouldReturnTrueIfNewFPMethodOfTheECIsDMPAInjectable ( ) { boolean didRuleSucceed = rule . apply ( new org . ei . drishti . util . SafeMap ( mapOf ( "currentMethod" , "dmpa_injectable" ) ) ) ; "<AssertPlaceHolder>" ; } mapOf ( Key , Value ) { java . util . HashMap < Key , Value > normalMap = new java . util . HashMap (...
org . junit . Assert . assertTrue ( didRuleSucceed )
test ( ) { refs = new org . multiverse . stms . gamma . transactionalobjects . GammaTxnLong [ refCount ] ; for ( int k = 0 ; k < ( refCount ) ; k ++ ) { refs [ k ] = new org . multiverse . stms . gamma . transactionalobjects . GammaTxnLong ( stm ) ; } org . multiverse . stms . gamma . integration . commute . Commute_Ab...
org . junit . Assert . assertEquals ( count ( workers ) , count ( refs ) )
assocTest2_365 ( ) { com . redhat . lightblue . crud . FindRequest fr = new com . redhat . lightblue . crud . FindRequest ( ) ; fr . setQuery ( query ( "{'field':'A.*.objectType','op':'=','rvalue':'jA'}" ) ) ; fr . setProjection ( projection ( "[{'field':'*','recursive':1},{'field':'A.*','recursive':1}]" ) ) ; fr . set...
org . junit . Assert . assertEquals ( 2 , response . getEntityData ( ) . size ( ) )
aZeroDurationIsZero ( ) { org . libreplan . business . workingday . EffortDuration duration = org . libreplan . business . workingday . EffortDuration . zero ( ) ; "<AssertPlaceHolder>" ; } isZero ( ) { return ( directChargedEffort . isZero ( ) ) && ( indirectChargedEffort . isZero ( ) ) ; }
org . junit . Assert . assertTrue ( duration . isZero ( ) )
testVerwijderStapels ( ) { final nl . bzk . migratiebrp . synchronisatie . dal . domein . brp . kern . entity . EntiteitSleutel persoonNationaliteit1Sleutel = new nl . bzk . migratiebrp . synchronisatie . dal . domein . brp . kern . entity . EntiteitSleutel ( nl . bzk . migratiebrp . synchronisatie . dal . domein . brp...
org . junit . Assert . assertTrue ( testData . persoon . getPersoonNationaliteitSet ( ) . isEmpty ( ) )
testRegex3 ( ) { java . lang . String tags = "tag1=value1,tag2=value2,tag3=value3" ; java . lang . StringBuffer pattern = new java . lang . StringBuffer ( ) ; pattern . append ( "(^|.*,)" ) ; pattern . append ( "tag2" ) ; pattern . append ( "=" ) ; pattern . append ( "(value2|value3)" ) ; pattern . append ( "(,.*|$)" )...
org . junit . Assert . assertTrue ( p . matcher ( tags ) . matches ( ) )
shouldGetExporterClass ( ) { final uk . gov . gchq . gaffer . operation . export . graph . handler . ExportToOtherGraphHandler handler = new uk . gov . gchq . gaffer . operation . export . graph . handler . ExportToOtherGraphHandler ( ) ; "<AssertPlaceHolder>" ; } getExporterClass ( ) { return uk . gov . gchq . gaffer ...
org . junit . Assert . assertEquals ( uk . gov . gchq . gaffer . operation . export . graph . OtherGraphExporter . class , handler . getExporterClass ( ) )
unmarshalls_filter_with_emptyPrefix ( ) { com . amazonaws . services . s3 . model . BucketLifecycleConfiguration . Rule rule = getRule ( parseLifecycleConfiguration ( com . amazonaws . services . s3 . model . transform . BucketLifecycleSaxUnmarshallerTest . UNKNOWN_STORAGE_CLASS_RESPONSE ) , 2 ) ; com . amazonaws . ser...
org . junit . Assert . assertEquals ( "" , predicate . getPrefix ( ) )
testUnconnectingGroup ( ) { try { org . openscience . cdk . iupac . parser . NomParser . generate ( "7-chloropentane" , org . openscience . cdk . silent . SilentChemObjectBuilder . getInstance ( ) ) ; org . junit . Assert . fail ( "Molecule<sp>was<sp>successfully<sp>generated<sp>but<sp>should<sp>have<sp>thrown<sp>a<sp>...
org . junit . Assert . assertTrue ( true )
testGetSplit ( ) { java . util . List < java . util . Map < java . lang . String , java . lang . Object > > expected = com . google . common . collect . ImmutableList . < java . util . Map < java . lang . String , java . lang . Object > > of ( com . google . common . collect . ImmutableMap . < java . lang . String , ja...
org . junit . Assert . assertEquals ( actual , expected )
testCheckActualRequestType ( ) { com . erudika . para . utils . filters . MockHttpServletRequest request = new com . erudika . para . utils . filters . MockHttpServletRequest ( ) ; request . setHeader ( CORSFilter . REQUEST_HEADER_ORIGIN , TestConfigs . HTTP_TOMCAT_APACHE_ORG ) ; request . setMethod ( "PUT" ) ; com . e...
org . junit . Assert . assertEquals ( CORSFilter . CORSRequestType . ACTUAL , requestType )
testFindByCriteria ( ) { try { java . lang . String columnName = "code" ; java . lang . String value = qa . qcri . aidr . dbmanager . ejb . remote . facade . imp . TestCrisisResourceFacadeImp . crisisCode ; java . util . List < qa . qcri . aidr . dbmanager . dto . CollectionDTO > result = qa . qcri . aidr . dbmanager ....
org . junit . Assert . assertEquals ( qa . qcri . aidr . dbmanager . ejb . remote . facade . imp . TestCrisisResourceFacadeImp . crisisCode , result . get ( 0 ) . getCode ( ) )
countWith ( ) { this . iterables . forEach ( com . gs . collections . impl . block . factory . Procedures . cast ( ( each ) -> { int result = com . gs . collections . impl . utility . Iterate . countWith ( each , com . gs . collections . impl . block . factory . Predicates2 . greaterThan ( ) , 3 ) ; "<AssertPlaceHolder...
org . junit . Assert . assertEquals ( 2 , result )
userCanDeleteBranchTest ( ) { final org . guvnor . common . services . project . model . WorkspaceProject project = getProject ( ) ; doReturn ( true ) . when ( libraryPermissions ) . userCanDeleteProject ( any ( ) ) ; "<AssertPlaceHolder>" ; } userCanDeleteBranch ( org . guvnor . common . services . project . model . W...
org . junit . Assert . assertTrue ( libraryPermissions . userCanDeleteBranch ( project ) )
test2 ( ) { introclassJava . median_3b2376ab_003 mainClass = new introclassJava . median_3b2376ab_003 ( ) ; java . lang . String expected = "Please<sp>enter<sp>3<sp>numbers<sp>separated<sp>by<sp>spaces<sp>><sp>6<sp>is<sp>the<sp>median" ; mainClass . scanner = new java . util . Scanner ( "2<sp>8<sp>6" ) ; mainClass . ex...
org . junit . Assert . assertEquals ( expected . replace ( "<sp>" , "" ) , out . replace ( "<sp>" , "" ) )
testValidateInterpolate2 ( ) { org . orbisgis . legend . analyzer . symbolizers . PointSymbolizerAnalyzer psa = new org . orbisgis . legend . analyzer . symbolizers . PointSymbolizerAnalyzer ( new org . orbisgis . coremap . renderer . se . PointSymbolizer ( ) ) ; org . orbisgis . legend . analyzer . Interpolate2Real ir...
org . junit . Assert . assertTrue ( psa . validateInterpolateForProportionalPoint ( ir ) )
serializeCollection ( ) { java . util . Collection < java . lang . String > input = java . util . Arrays . asList ( "some" , "any" ) ; java . lang . String expected = "[\"some\",\"any\"]" ; java . lang . String output = serdes . serialize ( input , null ) ; "<AssertPlaceHolder>" ; } serialize ( java . util . Collection...
org . junit . Assert . assertEquals ( expected , output )
testEmpty ( ) { cn . jpush . api . push . model . notification . IosNotification ios = cn . jpush . api . push . model . notification . IosNotification . newBuilder ( ) . build ( ) ; com . google . gson . JsonObject json = new com . google . gson . JsonObject ( ) ; json . add ( "sound" , new com . google . gson . JsonP...
org . junit . Assert . assertEquals ( "" , json , ios . toJSON ( ) )
testMinimalExample ( ) { java . lang . String obama = "Barack<sp>Obama" ; java . lang . String obamaURL = "http://dbpedia.org/resource/Barack_Obama" ; java . lang . String merkel = "Angela<sp>Merkel" ; java . lang . String merkelURL = "Angela<sp>Merkel" 0 ; java . lang . String city = "Berlin" ; java . lang . String ci...
org . junit . Assert . assertTrue ( correct . get ( namedEntity . getLabel ( ) ) . equals ( disambiguatedURL ) )
readsQueueSizeFromConfiguration ( ) { final org . everrest . core . impl . EverrestConfiguration configuration = new org . everrest . core . impl . EverrestConfiguration ( ) ; configuration . setAsynchronousQueueSize ( 555 ) ; asynchronousJobPool = new org . everrest . core . impl . async . AsynchronousJobPool ( config...
org . junit . Assert . assertEquals ( 555 , asynchronousJobPool . getMaxQueueSize ( ) )
deveObterIdLoteComoFoiSetado ( ) { final com . fincatto . documentofiscal . nfe400 . classes . evento . NFEnviaEventoRetorno eventoRetorno = new com . fincatto . documentofiscal . nfe400 . classes . evento . NFEnviaEventoRetorno ( ) ; final java . lang . String idLote = "99" ; eventoRetorno . setIdLote ( idLote ) ; "<A...
org . junit . Assert . assertEquals ( idLote , eventoRetorno . getIdLote ( ) )
testGetArchimateElement ( ) { "<AssertPlaceHolder>" ; } getArchimateElement ( ) { return archimateElementEClass ; }
org . junit . Assert . assertSame ( element , object . getArchimateElement ( ) )
iterateEmptyHeadersShouldThrow ( ) { java . util . Iterator < Map . Entry < java . lang . CharSequence , java . lang . CharSequence > > iterator = io . netty . handler . codec . DefaultHeadersTest . newInstance ( ) . iterator ( ) ; "<AssertPlaceHolder>" ; iterator . next ( ) ; } hasNext ( ) { return itr . hasNext ( ) ;...
org . junit . Assert . assertFalse ( iterator . hasNext ( ) )
testModelAndView ( ) { com . blade . mvc . ui . ModelAndView modelAndView = new com . blade . mvc . ui . ModelAndView ( ) ; "<AssertPlaceHolder>" ; } getModel ( ) { return model ; }
org . junit . Assert . assertEquals ( 0 , modelAndView . getModel ( ) . size ( ) )
testCommandLine ( ) { try { org . apache . hadoop . fs . FileUtil . fullyDelete ( OUTPUT_DIR . getAbsoluteFile ( ) ) ; } catch ( java . lang . Exception e ) { } try { createInput ( ) ; boolean mayExit = false ; job = new org . apache . hadoop . streaming . StreamJob ( genArgs ( ) , mayExit ) ; job . go ( ) ; org . apac...
org . junit . Assert . assertEquals ( outputExpect , output )
testConstructorUnnamed ( ) { java . util . List < java . lang . String > errors = com . ibm . ws . microprofile . config . fat . tests . CDIBrokenInjectionTest . server . findStringsInLogs ( "ConfigUnnamedConstructorInjectionBean.*The<sp>property<sp>name<sp>must<sp>be<sp>specified<sp>for<sp>Constructor<sp>and<sp>Method...
org . junit . Assert . assertTrue ( ( ( errors . size ( ) ) > 0 ) )
testToString ( ) { java . lang . String expectedStatisticName1 = "Min" ; de . metanome . algorithm_integration . results . basic_statistic_values . BasicStatisticValueString expectedStatisticValue1 = new de . metanome . algorithm_integration . results . basic_statistic_values . BasicStatisticValueString ( "minValue" ) ...
org . junit . Assert . assertTrue ( ( ( expectedString1 . equals ( statistic . toString ( ) ) ) || ( expectedString2 . equals ( statistic . toString ( ) ) ) ) )
testGetTag ( ) { co . nstant . in . cbor . model . DataItem di = new co . nstant . in . cbor . model . DataItem ( MajorType . UNSIGNED_INTEGER ) ; di . setTag ( new co . nstant . in . cbor . model . Tag ( 1 ) ) ; co . nstant . in . cbor . model . Tag t = di . getTag ( ) ; "<AssertPlaceHolder>" ; } getValue ( ) { return...
org . junit . Assert . assertEquals ( 1L , t . getValue ( ) )
binaryHasNoSoname ( ) { org . junit . Assume . assumeThat ( com . facebook . buck . util . environment . Platform . detect ( ) , org . hamcrest . Matchers . oneOf ( Platform . FREEBSD , Platform . LINUX ) ) ; com . facebook . buck . testutil . integration . ProjectWorkspace workspace = com . facebook . buck . testutil ...
org . junit . Assert . assertThat ( com . facebook . buck . cxx . ElfFile . getSoname ( binaryPath ) , org . hamcrest . Matchers . equalTo ( java . util . Optional . empty ( ) ) )
twoGroupsSameRoleShouldExist ( ) { net . jforum . entities . Group g1 = new net . jforum . entities . Group ( ) ; g1 . addRole ( this . newRole ( "role1" ) ) ; net . jforum . entities . Group g2 = new net . jforum . entities . Group ( ) ; g2 . addRole ( this . newRole ( "role1" ) ) ; net . jforum . security . RoleManag...
org . junit . Assert . assertTrue ( manager . roleExists ( "role1" ) )
testCreateInstance ( ) { com . huawei . streaming . cql . executor . windowcreater . WindowCreator creater = new com . huawei . streaming . cql . executor . windowcreater . EventTimeBatchWindowCreator ( ) ; creater . createInstance ( createWindow ( ) , initSchema ( ) , null ) ; "<AssertPlaceHolder>" ; } initSchema ( ) ...
org . junit . Assert . assertTrue ( true )
lastModified_null_returnNewDate ( ) { java . util . Date result = com . adobe . acs . commons . wcm . comparisons . impl . Properties . lastModified ( null ) ; "<AssertPlaceHolder>" ; } lastModified ( org . apache . sling . api . resource . Resource ) { if ( resource != null ) { return resource . getValueMap ( ) . get ...
org . junit . Assert . assertNotNull ( result )
datumIngangVoorDatumEinde ( ) { final nl . bzk . algemeenbrp . dal . domein . brp . entity . ToegangBijhoudingsautorisatie toegang = new nl . bzk . algemeenbrp . dal . domein . brp . entity . ToegangBijhoudingsautorisatie ( new nl . bzk . algemeenbrp . dal . domein . brp . entity . PartijRol ( new nl . bzk . algemeenbr...
org . junit . Assert . assertEquals ( 0 , errorCount ( toegang ) )
testRefreshLayoutMainInitial ( ) { org . talend . components . localio . fixedflowinput . FixedFlowInputProperties properties = new org . talend . components . localio . fixedflowinput . FixedFlowInputProperties ( "test" ) ; properties . init ( ) ; properties . refreshLayout ( properties . getForm ( Form . MAIN ) ) ; b...
org . junit . Assert . assertFalse ( mainIsHidden )
givenGroupsAreEmpty_whenGetMostSpecificMatchingGroup_thenReturnsAbsent ( ) { java . util . List < java . util . List < com . brandwatch . robots . matching . Matchable < java . lang . String > > > groups = java . util . Collections . emptyList ( ) ; java . lang . String agentString = "googlebot" ; com . google . common...
org . junit . Assert . assertThat ( result , org . hamcrest . Matchers . equalTo ( com . google . common . base . Optional . < java . util . List < com . brandwatch . robots . matching . Matchable < java . lang . String > > > absent ( ) ) )
testOptimizationFromJson ( ) { org . deeplearning4j . earlystopping . EarlyStoppingConfiguration < org . deeplearning4j . nn . graph . ComputationGraph > esConf = new org . deeplearning4j . earlystopping . EarlyStoppingConfiguration . Builder < org . deeplearning4j . nn . graph . ComputationGraph > ( ) . epochTerminati...
org . junit . Assert . assertEquals ( configuration , loadConf )
containsObject ( ) { final org . hisp . dhis . category . Category category1 = new org . hisp . dhis . category . Category ( ) ; final org . hisp . dhis . category . Category category2 = new org . hisp . dhis . category . Category ( ) ; container . add ( category1 ) ; container . add ( category2 ) ; "<AssertPlaceHolder...
org . junit . Assert . assertTrue ( container . containsObject ( category1 ) )