input
stringlengths
28
18.7k
output
stringlengths
39
1.69k
terminateVirtualMachineTest_MissingVM ( ) { try { final java . lang . String vmName = "invalidvm" ; com . microsoft . azure . vmagent . util . ExecutionEngine executionEngineMock = mock ( com . microsoft . azure . vmagent . util . ExecutionEngine . class ) ; delegate . terminateVirtualMachine ( vmName , testEnv . azure...
org . junit . Assert . assertTrue ( e . getMessage ( ) , false )
testOuderMetOuderlijkGezagZonderHuidigOuderschap ( ) { final java . util . List < nl . bzk . brp . model . basis . BerichtEntiteit > overtreders = brby2013 . voerRegelUit ( maakHuidigePersoonZonderOuderschap ( ) , maakNieuwePersoon ( nl . bzk . brp . bijhouding . business . regels . impl . gegevenset . ouder . ouderlij...
org . junit . Assert . assertEquals ( 0 , overtreders . size ( ) )
testMulti ( ) { java . lang . String orig = "[<sp>counter(<sp>\"foo\"<sp>),<sp>counter(<sp>\"bar\"<sp>),<sp>counter(<sp>\"baz\"<sp>)<sp>]" ; org . antlr . runtime . tree . CommonTree tree = com . cloudera . flume . conf . FlumeBuilder . parseSink ( orig ) ; java . lang . String out = com . cloudera . flume . conf . Flu...
org . junit . Assert . assertEquals ( orig , out )
testGetName ( ) { org . graylog2 . plugin . configuration . fields . TextField f = new org . graylog2 . plugin . configuration . fields . TextField ( "test" , "Name" , "default" , "description" ) ; "<AssertPlaceHolder>" ; } getName ( ) { return name ; }
org . junit . Assert . assertEquals ( "test" , f . getName ( ) )
testDispatchSimpleKeepAlive ( ) { org . ebayopensource . turmeric . runtime . sif . service . Service service = org . ebayopensource . turmeric . runtime . sif . service . ServiceFactory . create ( "Test1Service" , "keepAlive" , serverUri . toURL ( ) ) ; java . lang . String outMessage = ( ( java . lang . String ) ( se...
org . junit . Assert . assertEquals ( ECHO_STRING , outMessage )
testLoginOnlineShouldFailIfMigrationFails ( ) { com . rapidftr . bean . LoginTask . LoginException loginException = new com . rapidftr . bean . LoginTask . LoginException ( 1 , null ) ; com . rapidftr . model . User user = mock ( com . rapidftr . model . User . class ) ; doReturn ( user ) . when ( loginTask ) . loadOnl...
org . junit . Assert . assertFalse ( result )
addLoggedUser ( ) { net . jforum . entities . UserSession us = this . newUserSession ( "1" ) ; us . getUser ( ) . setId ( 2 ) ; manager . add ( us ) ; "<AssertPlaceHolder>" ; } getTotalLoggedUsers ( ) { return net . jforum . core . SessionManager . loggedSessions . size ( ) ; }
org . junit . Assert . assertEquals ( 1 , manager . getTotalLoggedUsers ( ) )
projectContributorCanDeployProjectTest ( ) { final org . guvnor . common . services . project . model . WorkspaceProject project = getProject ( ) ; final java . util . Collection < org . guvnor . structure . contributors . Contributor > projectContributors = project . getRepository ( ) . getContributors ( ) ; doReturn ...
org . junit . Assert . assertTrue ( libraryPermissions . userCanDeployProject ( project ) )
isActivationAllowed_SuspendedSubscriptionNoAvailablePayment ( ) { subscription . setStatus ( SubscriptionStatus . SUSPENDED ) ; subscription . setBillingContact ( billingContact ) ; subscription . setPaymentInfo ( pInfo ) ; doReturn ( false ) . when ( accService ) . isPaymentTypeEnabled ( org . oscm . subscriptionservi...
org . junit . Assert . assertFalse ( isActivationAllowed )
cacheShouldBeImmutable ( ) { cache . getInterceptorHandlers ( ) . remove ( 0 ) ; "<AssertPlaceHolder>" ; } getInterceptorHandlers ( ) { return new java . util . LinkedList ( interceptorHandlers ) ; }
org . junit . Assert . assertEquals ( 2 , cache . getInterceptorHandlers ( ) . size ( ) )
testSliceWithNullInput ( ) { com . mitchellbosecke . pebble . PebbleEngine pebble = new com . mitchellbosecke . pebble . PebbleEngine . Builder ( ) . loader ( new com . mitchellbosecke . pebble . loader . StringLoader ( ) ) . strictVariables ( false ) . build ( ) ; com . mitchellbosecke . pebble . template . PebbleTemp...
org . junit . Assert . assertEquals ( "" , writer . toString ( ) )
parameterNameShouldBeReturned ( ) { when ( locale . propertyUnusedLocal ( ) ) . thenReturn ( org . eclipse . che . ide . ext . java . client . settings . property . PropertyNameManagerTest . SOME_TEXT ) ; org . eclipse . che . ide . ext . java . client . settings . property . PropertyNameManager nameManager = new org ....
org . junit . Assert . assertThat ( name , org . hamcrest . CoreMatchers . equalTo ( org . eclipse . che . ide . ext . java . client . settings . property . PropertyNameManagerTest . SOME_TEXT ) )
testOutputFileBasename ( ) { java . lang . String [ ] args = new java . lang . String [ ] { "testfile.dat" } ; new com . beust . jcommander . JCommander ( cmdLine , args ) ; "<AssertPlaceHolder>" ; } getOutputFileBasename ( ) { if ( ( outputFileBasename ) == null ) { de . kobv . marcel . cli . List < de . kobv . marcel...
org . junit . Assert . assertEquals ( "testfile.dat" , cmdLine . getOutputFileBasename ( ) )
testOpdGets ( ) { int code = 0 ; try { code = _setupTestOpd ( false ) ; _checkOpdIntoDb ( code ) ; } catch ( java . lang . Exception e ) { e . printStackTrace ( ) ; "<AssertPlaceHolder>" ; } return ; } _checkOpdIntoDb ( int ) { org . isf . opd . model . Opd foundOpd ; foundOpd = ( ( org . isf . opd . model . Opd ) ( or...
org . junit . Assert . assertEquals ( true , false )
testExtractColumnValues ( ) { logger . info ( "extractColumnValues" ) ; com . datumbox . framework . common . Configuration configuration = getConfiguration ( ) ; java . lang . Object column = "height" ; com . datumbox . framework . core . common . dataobjects . Dataframe dataset = new com . datumbox . framework . core...
org . junit . Assert . assertEquals ( expResult , result )
testWSFloatingPointValueUpdate ( ) { boolean result = ihcResourceInteractionService . resourceUpdate ( new org . openhab . binding . ihc . internal . ws . resourcevalues . WSFloatingPointValue ( 200002 , 24.1 , ( - 1000.0 ) , 1000.0 ) ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertTrue ( result )
test_1 ( ) { com . google . code . shardbatis . test . domain . AppTestDO testDO = new com . google . code . shardbatis . test . domain . AppTestDO ( ) ; testDO . setCnt ( "just<sp>a<sp>test" ) ; org . apache . ibatis . session . SqlSession session = com . google . code . shardbatis . plugin . ShardPluginTest2 . sqlSes...
org . junit . Assert . assertNotNull ( id )
testFailedConfig ( ) { org . dcache . gplazma . strategies . AuthenticationStrategy strategy = strategyFactory . newAuthenticationStrategy ( ) ; "<AssertPlaceHolder>" ; strategy . setPlugins ( failedPlugins ) ; java . util . Set < java . lang . Object > publicCredential = com . google . common . collect . Sets . newHas...
org . junit . Assert . assertNotNull ( strategy )
exportOrganizationWithEnabledUsers ( ) { final org . bonitasoft . engine . identity . UserCreator creator = new org . bonitasoft . engine . identity . UserCreator ( org . bonitasoft . engine . identity . OrganizationIT . ANTHONY_USERNAME , "bpm" ) ; creator . setEnabled ( true ) ; final org . bonitasoft . engine . iden...
org . junit . Assert . assertThat ( organizationContent )
testGetMessageConversations ( ) { java . util . List < org . hisp . dhis . message . MessageConversation > conversations = messageConversationStore . getMessageConversations ( conversationIds ) ; "<AssertPlaceHolder>" ; } size ( ) { return messages . size ( ) ; }
org . junit . Assert . assertEquals ( 3 , conversations . size ( ) )
testRemove ( ) { com . liferay . portal . kernel . model . PortalPreferences newPortalPreferences = addPortalPreferences ( ) ; _persistence . remove ( newPortalPreferences ) ; com . liferay . portal . kernel . model . PortalPreferences existingPortalPreferences = _persistence . fetchByPrimaryKey ( newPortalPreferences ...
org . junit . Assert . assertNull ( existingPortalPreferences )
testCreateNodeWithField ( ) { try ( com . syncleus . ferma . tx . Tx tx = tx ( ) ) { com . gentics . mesh . core . rest . node . NodeResponse response = createNode ( FIELD_NAME , new com . gentics . mesh . core . rest . node . field . impl . NodeFieldImpl ( ) . setUuid ( folder ( "news" ) . getUuid ( ) ) ) ; com . gent...
org . junit . Assert . assertEquals ( folder ( "news" ) . getUuid ( ) , field . getUuid ( ) )
generatorCreatesNoCandidatesForExcludedId ( ) { com . metabroadcast . common . ids . SubstitutionTableNumberCodec codec = com . metabroadcast . common . ids . SubstitutionTableNumberCodec . lowerCaseOnly ( ) ; java . lang . Long decodedExcludedId = codec . decode ( "ffds6w" ) . longValue ( ) ; org . atlasapi . media . ...
org . junit . Assert . assertTrue ( generated . isEmpty ( ) )
testIdIsSet ( ) { boolean result = fixture . isIdSet ( ) ; "<AssertPlaceHolder>" ; } isIdSet ( ) { return fStreamIdSet ; }
org . junit . Assert . assertTrue ( result )
testGetConnectionsLimitDefaultValue ( ) { final org . eclipse . hono . util . TenantObject obj = org . eclipse . hono . util . TenantObject . from ( Constants . DEFAULT_TENANT , true ) ; "<AssertPlaceHolder>" ; } getConnectionsLimit ( ) { return java . util . Optional . ofNullable ( getProperty ( TenantConstants . LIMI...
org . junit . Assert . assertThat ( obj . getConnectionsLimit ( ) , org . hamcrest . CoreMatchers . is ( TenantConstants . DEFAULT_MAX_CONNECTIONS ) )
hasRecordReturnsFalseIfNoneExists ( ) { final org . commonjava . indy . folo . model . TrackingKey key = newKey ( ) ; "<AssertPlaceHolder>" ; } hasRecord ( org . commonjava . indy . folo . model . TrackingKey ) { return ( hasSealedRecord ( key ) ) || ( hasInProgressRecord ( key ) ) ; }
org . junit . Assert . assertThat ( cache . hasRecord ( key ) , org . hamcrest . CoreMatchers . equalTo ( false ) )
testBasic ( ) { com . spinn3r . artemis . init . ServiceTypeReferences serviceReferences = new com . spinn3r . artemis . init . ServiceTypeReferences ( ) . put ( com . spinn3r . artemis . init . advertisements . HostnameServiceType . class , com . spinn3r . artemis . init . MockHostnameService . class ) ; com . spinn3r...
org . junit . Assert . assertNotNull ( modularLauncher . getInjector ( ) )
ping ( ) { java . lang . String pong = com . github . xetorthio . jedisque . JedisqueTest . q . ping ( ) ; "<AssertPlaceHolder>" ; } ping ( ) { java . lang . String pong = com . github . xetorthio . jedisque . JedisqueTest . q . ping ( ) ; org . junit . Assert . assertNotNull ( pong ) ; }
org . junit . Assert . assertNotNull ( pong )
testCompareCheckpointsWithDifferentOrder ( ) { org . apache . flink . runtime . checkpoint . CompletedCheckpoint checkpoint1 = new org . apache . flink . runtime . checkpoint . CompletedCheckpoint ( new org . apache . flink . api . common . JobID ( ) , 0 , 0 , 1 , new java . util . HashMap ( ) , java . util . Collectio...
org . junit . Assert . assertFalse ( org . apache . flink . runtime . checkpoint . CompletedCheckpoint . checkpointsMatch ( checkpoints1 , checkpoints2 ) )
shouldMapORDRegion ( ) { com . rackspace . docs . core . event . Region region = org . openstack . atlas . atomhopper . factory . UsageEntryFactoryImpl . mapRegion ( "ORD" ) ; "<AssertPlaceHolder>" ; } mapRegion ( java . lang . String ) { if ( configRegion . equals ( "DFW" ) ) { return com . rackspace . docs . core . e...
org . junit . Assert . assertEquals ( Region . ORD , region )
deveObterDescricaoEventoComoFoiSetado ( ) { final com . fincatto . documentofiscal . nfe310 . classes . evento . NFInfoEventoRetorno eventoRetorno = new com . fincatto . documentofiscal . nfe310 . classes . evento . NFInfoEventoRetorno ( ) ; final java . lang . String descricaoEvento = "Carta<sp>de<sp>correcao" ; event...
org . junit . Assert . assertEquals ( descricaoEvento , eventoRetorno . getDescricaoEvento ( ) )
shouldClearDataBaseUsingSequenceOrder ( ) { int size = ( JooqDBUnitTest . countAuthors ( ) ) + ( JooqDBUnitTest . countBooks ( ) ) ; "<AssertPlaceHolder>" ; } countBooks ( ) { return org . jooq . impl . DSL . using ( JooqDBUnitTest . connection ) . fetchCount ( Tables . BOOK ) ; }
org . junit . Assert . assertEquals ( 0 , size )
testSpringRouteBuilderLoads ( ) { org . apache . camel . CamelContext camelctx = contextRegistry . getCamelContext ( "contextScanC" ) ; org . apache . camel . ProducerTemplate producer = camelctx . createProducerTemplate ( ) ; org . springframework . context . support . GenericApplicationContext result = producer . req...
org . junit . Assert . assertNotNull ( result )
getPlatformClassLoaderOnJava9Plus ( ) { org . junit . Assume . assumeTrue ( com . facebook . buck . jvm . java . runner . FileClassPathRunnerTest . isJava9Plus ( ) ) ; java . lang . ClassLoader loader = com . facebook . buck . jvm . java . runner . FileClassPathRunner . findPlatformClassLoader ( ) ; "<AssertPlaceHolder...
org . junit . Assert . assertNotNull ( loader )
testCloneNullItem ( ) { net . minecraft . server . ItemStack nmsItemStack = null ; org . bukkit . inventory . ItemStack itemStack = org . bukkit . craftbukkit . inventory . CraftItemStack . asCraftMirror ( nmsItemStack ) ; org . bukkit . inventory . ItemStack clone = itemStack . clone ( ) ; "<AssertPlaceHolder>" ; } cl...
org . junit . Assert . assertThat ( clone , is ( itemStack ) )
shouldNotResumeAsyncResponseDueToNoAvailableTasks ( ) { doReturn ( java . util . Collections . emptyList ( ) ) . when ( fetchTopicBuilder ) . execute ( ) ; javax . ws . rs . container . AsyncResponse asyncResponse = mock ( javax . ws . rs . container . AsyncResponse . class ) ; handler . addPendingRequest ( createDto (...
org . junit . Assert . assertThat ( handler . getPendingRequests ( ) . size ( ) , org . hamcrest . core . Is . is ( 1 ) )
autorisatieOngeldigDienstDatumEindeInVerleden ( ) { dienst . setDatumEinde ( nl . bzk . algemeenbrp . util . common . DatumUtil . gisteren ( ) ) ; final boolean isGeldig = service . isAutorisatieGeldig ( toegangLeveringsAutorisatie , dienst ) ; "<AssertPlaceHolder>" ; } isAutorisatieGeldig ( nl . bzk . algemeenbrp . da...
org . junit . Assert . assertFalse ( isGeldig )
test1 ( ) { com . spinn3r . artemis . sequence . GlobalMutex globalMutex = zkGlobalMutexFactory . acquire ( ) ; launcher . stop ( ) ; "<AssertPlaceHolder>" ; } isExpired ( ) { return false ; }
org . junit . Assert . assertTrue ( globalMutex . isExpired ( ) )
getFormattedElement ( ) { org . apache . servicecomb . transport . rest . vertx . accesslog . element . impl . PlainTextItem element = new org . apache . servicecomb . transport . rest . vertx . accesslog . element . impl . PlainTextItem ( "contentTest" ) ; "<AssertPlaceHolder>" ; } getFormattedItem ( org . apache . se...
org . junit . Assert . assertEquals ( "contentTest" , element . getFormattedItem ( null ) )
testCreateSchema ( ) { org . kitesdk . data . spi . filesystem . SchemaManager manager = org . kitesdk . data . spi . filesystem . SchemaManager . create ( getConfiguration ( ) , testDirectory ) ; manager . writeSchema ( DatasetTestUtilities . USER_SCHEMA ) ; org . apache . avro . Schema schema = manager . getNewestSch...
org . junit . Assert . assertEquals ( DatasetTestUtilities . USER_SCHEMA , schema )
testBootstrap ( ) { map1 = net . openhft . collections . TCPSocketReplication4WayMapTest . newTcpSocketShmIntString ( ( ( byte ) ( 1 ) ) , 8079 ) ; final net . openhft . collections . TcpReplicatorBuilder tcpReplicatorBuilder = new net . openhft . collections . TcpReplicatorBuilder ( 8076 , new java . net . InetSocketA...
org . junit . Assert . assertEquals ( "ADDED<sp>WHEN<sp>DISCONNECTED<sp>TO<sp>MAP1" , map1 . get ( 11 ) )
testMultipleParameterSet ( ) { com . itextpdf . svg . renderers . path . impl . EllipticalCurveTo absoluteElliptic = new com . itextpdf . svg . renderers . path . impl . EllipticalCurveTo ( ) ; absoluteElliptic . setCoordinates ( new java . lang . String [ ] { "40" , "40" , "0" , "0" , "0" , "20" , "20" , "40" , "40" ,...
org . junit . Assert . assertEquals ( 7 , result . length )
testIsErrorEnabled ( ) { org . jboss . logging . Logger mock = createStrictMock ( org . jboss . logging . Logger . class ) ; replay ( mock ) ; org . jboss . netty . logging . InternalLogger logger = new org . jboss . netty . logging . JBossLogger ( mock ) ; "<AssertPlaceHolder>" ; verify ( mock ) ; } isErrorEnabled ( )...
org . junit . Assert . assertTrue ( logger . isErrorEnabled ( ) )
oneEdgeDummyIsCrossedByTwoSouthernNorthSouthPortEdges ( ) { getSouthernNorthSouthDummyEdgeTwoCrossingGraph ( ) ; int crossingCount = initCounterForLayerWithIndexAndCountInLayer ( 1 ) ; "<AssertPlaceHolder>" ; } initCounterForLayerWithIndexAndCountInLayer ( int ) { setUpIds ( ) ; int numPorts = 0 ; for ( org . eclipse ....
org . junit . Assert . assertThat ( crossingCount , org . hamcrest . CoreMatchers . is ( 2 ) )
testUpdateFloat ( ) { float input = ( ( float ) ( - ( Math . PI ) ) ) ; java . io . ByteArrayOutputStream out = new java . io . ByteArrayOutputStream ( ) ; new java . io . DataOutputStream ( out ) . writeFloat ( input ) ; long expected = getHashAndReset ( out ) ; primitiveDataChecksum . updateFloat ( input ) ; "<Assert...
org . junit . Assert . assertEquals ( expected , primitiveDataChecksum . getValue ( ) )
testProcessorTimeOutRespondsToInterrupt ( ) { final org . apache . nifi . controller . scheduling . processors . FailOnScheduledProcessor proc = new org . apache . nifi . controller . scheduling . processors . FailOnScheduledProcessor ( ) ; proc . setDesiredFailureCount ( 0 ) ; proc . setOnScheduledSleepDuration ( 20 ,...
org . junit . Assert . assertEquals ( 2 , proc . getOnScheduledInvocationCount ( ) )
count_A$Function1 ( ) { com . m3 . scalaflavor4j . Nil < java . lang . String > nil = com . m3 . scalaflavor4j . Nil . < java . lang . String > apply ( ) ; java . lang . Integer actual = nil . count ( new com . m3 . scalaflavor4j . F1 < java . lang . String , java . lang . Boolean > ( ) { public com . m3 . scalaflavor4...
org . junit . Assert . assertThat ( actual , org . hamcrest . CoreMatchers . is ( org . hamcrest . CoreMatchers . equalTo ( expected ) ) )
deleteAllCollectionTrainingDataIsSuccessful ( ) { java . lang . String collId = setupTestQueries ( com . ibm . watson . discovery . v1 . DiscoveryServiceIT . collectionId ) ; com . ibm . watson . discovery . v1 . model . DeleteAllTrainingDataOptions . Builder deleteBuilder = new com . ibm . watson . discovery . v1 . mo...
org . junit . Assert . assertEquals ( trainingData . getQueries ( ) . size ( ) , 0 )
testCompareTo ( ) { final nl . bzk . migratiebrp . conversie . model . brp . attribuut . BrpString result = nl . bzk . migratiebrp . conversie . model . brp . attribuut . BrpString . wrap ( "1" , onderzoek ) ; final nl . bzk . migratiebrp . conversie . model . brp . attribuut . BrpString result2 = nl . bzk . migratiebr...
org . junit . Assert . assertEquals ( 0 , result . compareTo ( result2 ) )
testMarshallUnmarshallPgp ( ) { final org . apache . camel . converter . crypto . PGPDataFormat encrypt = new org . apache . camel . converter . crypto . PGPDataFormat ( ) ; encrypt . setKeyFileName ( org . wildfly . camel . test . crypto . CryptoDataFormatIntegrationTest . PUBRING_GPG ) ; encrypt . setKeyUserid ( org ...
org . junit . Assert . assertEquals ( "password" , result . trim ( ) )
shouldDetectInterfacesAsInterfaces ( ) { final java . util . Optional < org . pitest . classinfo . ClassInfo > anInterface = this . testee . fetchClass ( java . io . Serializable . class ) ; "<AssertPlaceHolder>" ; } isInterface ( ) { return ( ( this . access ) & ( org . objectweb . asm . Opcodes . ACC_INTERFACE ) ) !=...
org . junit . Assert . assertTrue ( anInterface . get ( ) . isInterface ( ) )
figRef ( ) { java . lang . String input = "<figref<sp>idref=\"DRAWINGS\">FIG.<sp>1</figref>" ; java . lang . String expect = "<a<sp>idref=\"FIG-1\"<sp>id=\"FR-0001\"<sp>class=\"figref\">FIG.<sp>1</a>" ; java . lang . String actual = format . getSimpleHtml ( input ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertEquals ( expect , actual )
createActionBeanHappyPath ( ) { org . pentaho . platform . api . action . IAction iaction = org . pentaho . platform . util . ActionUtil . createActionBean ( org . pentaho . platform . util . MyTestAction . class . getName ( ) , null ) ; "<AssertPlaceHolder>" ; } getName ( ) { return name ; }
org . junit . Assert . assertEquals ( iaction . getClass ( ) , org . pentaho . platform . util . MyTestAction . class )
getMessageFromReceiverLinkReturnsNull ( ) { tests . unit . com . microsoft . azure . sdk . iot . device . transport . amqps . AmqpsDeviceAuthenticationX509 auth = new tests . unit . com . microsoft . azure . sdk . iot . device . transport . amqps . AmqpsDeviceAuthenticationX509 ( mockDeviceClientConfig ) ; tests . unit...
org . junit . Assert . assertNull ( result )
mergeWithDifferentLong ( ) { puck . thrifty . datatype . LongElement elem = new puck . thrifty . datatype . LongElement ( "test" ) ; puck . thrifty . datatype . Element mergeElem = elem . merge ( new puck . thrifty . datatype . LongElement ( "test" ) ) ; "<AssertPlaceHolder>" ; } merge ( puck . thrifty . datatype . Ele...
org . junit . Assert . assertSame ( elem , mergeElem )
testReplaceOneByNonIdQuery ( ) { coll . insert ( new org . mongojack . mock . MockObject ( "id1" , "ten" , 10 ) ) ; coll . replaceOne ( org . mongojack . DBQuery . is ( "string" , "ten" ) , new org . mongojack . mock . MockObject ( "id1" , "twenty" , 20 ) , false , WriteConcern . W1 ) ; org . mongojack . mock . MockObj...
org . junit . Assert . assertThat ( found , equalTo ( new org . mongojack . mock . MockObject ( "id1" , "twenty" , 20 ) ) )
testRegisterFeatureInFeature ( ) { org . apache . cxf . jaxrs . provider . ServerProviderFactory pf = org . apache . cxf . jaxrs . provider . ServerProviderFactory . getInstance ( ) ; final java . lang . Object provider = new org . apache . cxf . jaxrs . impl . WebApplicationExceptionMapper ( ) ; pf . registerUserProvi...
org . junit . Assert . assertSame ( provider , em )
isInternalImportInternalImportType ( ) { final org . kie . soup . project . datamodel . imports . Imports imports = new org . kie . soup . project . datamodel . imports . Imports ( ) ; final org . kie . soup . project . datamodel . imports . Import importType = new org . kie . soup . project . datamodel . imports . Imp...
org . junit . Assert . assertTrue ( presenter . isInternalImport ( importType ) )
testInclusiveDatabasedGatewayNameValid ( ) { org . kie . workbench . common . stunner . bpmn . definition . InclusiveGateway inclusiveGateway = new org . kie . workbench . common . stunner . bpmn . definition . InclusiveGateway ( ) ; inclusiveGateway . getGeneral ( ) . setName ( new org . kie . workbench . common . stu...
org . junit . Assert . assertTrue ( violations . isEmpty ( ) )
testBuildHttpErrorMessage ( ) { java . net . HttpURLConnection connectionMock = null ; java . lang . String testResponseBody = "{\"error_description\":\"MSIS9612:<sp>The<sp>authorization<sp>code<sp>received<sp>in<sp>[code]<sp>parameter<sp>is<sp>invalid.<sp>\"}" ; int testConnectionResponseCode = 400 ; java . lang . Str...
org . junit . Assert . assertTrue ( expected . equals ( actual ) )
testFetchByPrimaryKeysWithNoPrimaryKeys ( ) { java . util . Set < java . io . Serializable > primaryKeys = new java . util . HashSet < java . io . Serializable > ( ) ; java . util . Map < java . io . Serializable , com . liferay . portal . tools . service . builder . test . model . LVEntry > lvEntries = _persistence . ...
org . junit . Assert . assertTrue ( lvEntries . isEmpty ( ) )
testReportComplex ( ) { testRule . deploy ( "org/camunda/bpm/engine/test/api/cmmn/oneCaseTaskCase.cmmn" , "org/camunda/bpm/engine/test/api/cmmn/oneTaskCase.cmmn" , "org/camunda/bpm/engine/test/api/cmmn/oneTaskCaseWithHistoryTimeToLive.cmmn" ) ; prepareCaseInstances ( org . camunda . bpm . engine . test . history . Clea...
org . junit . Assert . assertEquals ( 4 , reportResults . size ( ) )
copy_inputStreamToWriterWithEncoding ( ) { final java . lang . String inDataStr = "data" ; final java . lang . String charsetName = "UTF-8" ; final java . io . StringWriter writer = new java . io . StringWriter ( ) ; org . apache . commons . io . CopyUtils . copy ( new java . io . ByteArrayInputStream ( inDataStr . get...
org . junit . Assert . assertEquals ( inDataStr , writer . toString ( ) )
testGetConfig ( ) { final org . locationtech . geowave . cli . geoserver . GeoServerConfig returnedConfig = client . getConfig ( ) ; "<AssertPlaceHolder>" ; } getConfig ( ) { return config ; }
org . junit . Assert . assertEquals ( config , returnedConfig )
mapKeyAndValueTypes ( ) { java . lang . reflect . Type mapOfStringIntegerType = com . tickaroo . tikxml . TypesTest . class . getDeclaredField ( "mapOfStringInteger" ) . getGenericType ( ) ; "<AssertPlaceHolder>" . containsExactly ( java . lang . String . class , com . tickaroo . tikxml . Integer . class ) ; } mapKeyAn...
org . junit . Assert . assertThat ( com . tickaroo . tikxml . Types . mapKeyAndValueTypes ( mapOfStringIntegerType , java . util . Map . class ) )
setFieldValueNullTest ( ) { org . pentaho . di . trans . steps . nullif . NullIfMeta . Field field = new org . pentaho . di . trans . steps . nullif . NullIfMeta . Field ( ) ; java . lang . System . setProperty ( Const . KETTLE_EMPTY_STRING_DIFFERS_FROM_NULL , "N" ) ; field . setFieldValue ( null ) ; "<AssertPlaceHolde...
org . junit . Assert . assertEquals ( null , field . getFieldValue ( ) )
testGetAllInstruments ( ) { java . util . List < ca . on . oicr . pinery . api . Instrument > instruments = sut . getInstruments ( ) ; "<AssertPlaceHolder>" ; } size ( ) { return map . size ( ) ; }
org . junit . Assert . assertTrue ( ( ( instruments . size ( ) ) > 2 ) )
setResponseString ( ) { org . apache . shindig . gadgets . http . HttpResponse resp = new org . apache . shindig . gadgets . http . HttpResponseBuilder ( ) . setResponseString ( "foo" ) . create ( ) ; "<AssertPlaceHolder>" ; } getResponseAsString ( ) { if ( ( responseString ) == null ) { responseString = encoding . dec...
org . junit . Assert . assertEquals ( "foo" , resp . getResponseAsString ( ) )
testResult ( ) { org . apache . metron . enrichment . converter . HbaseConverter < org . apache . metron . enrichment . converter . EnrichmentKey , org . apache . metron . enrichment . converter . EnrichmentValue > converter = new org . apache . metron . enrichment . converter . EnrichmentConverter ( ) ; org . apache ....
org . junit . Assert . assertEquals ( results , converted )
testGetElementbooleanAbs ( ) { int [ ] values = new int [ ] { 0 , 1 , 2 , 3 } ; boolean [ ] value = new boolean [ ] { true , true , true , false } ; org . eclipse . january . dataset . Dataset input = org . eclipse . january . dataset . DatasetFactory . createFromObject ( org . eclipse . january . dataset . BooleanData...
org . junit . Assert . assertEquals ( result , actualResult )
should_persist ( ) { org . apache . deltaspike . data . test . domain . Simple simple = new org . apache . deltaspike . data . test . domain . Simple ( "test" ) ; repo . persist ( simple ) ; "<AssertPlaceHolder>" ; } getId ( ) { return sessionId ; }
org . junit . Assert . assertNotNull ( simple . getId ( ) )
givenfeedUrl_thenCorrectResult ( ) { final java . lang . String expectedResult = "http://www.baeldung.com/2015-week-review-39" ; final java . lang . String actualResult = getOriginalUrl ( "http://feedproxy.google.com/~r/Baeldung/~3/KEQzz7yfjHU/2015-week-review-39" ) ; "<AssertPlaceHolder>" ; } equals ( java . lang . Ob...
org . junit . Assert . assertTrue ( actualResult . equals ( expectedResult ) )
testGetGraphDisplayPanel ( ) { System . out . println ( "getGraphDisplayPanel" ) ; kg . apc . jmeter . graphs . GraphRendererInterface instance = new kg . apc . jmeter . graphs . GraphRendererInterfaceTest . GraphRendererInterfaceImpl ( ) ; javax . swing . JPanel expResult = null ; javax . swing . JPanel result = insta...
org . junit . Assert . assertEquals ( expResult , result )
isSameEvenWhenResourceSizeAreDifferent ( ) { updatedMetacard . setResourceSize ( "2" ) ; "<AssertPlaceHolder>" ; } isSame ( ddf . catalog . data . Metacard , ddf . catalog . data . Metacard ) { if ( ( cachedMetacard == null ) && ( updatedMetacard == null ) ) { return true ; } if ( ( cachedMetacard == null ) || ( update...
org . junit . Assert . assertThat ( ddf . catalog . cache . impl . CachedResourceMetacardComparator . isSame ( cachedMetacard , updatedMetacard ) , org . hamcrest . CoreMatchers . is ( true ) )
testCompositeApisApiIdSwaggerGet ( ) { org . wso2 . carbon . apimgt . rest . api . store . impl . TestUtil . printTestMethodName ( ) ; java . lang . String apiID = java . util . UUID . randomUUID ( ) . toString ( ) ; org . wso2 . carbon . apimgt . rest . api . store . impl . CompositeApisApiServiceImpl compositeApisApi...
org . junit . Assert . assertEquals ( 200 , response . getStatus ( ) )
allRelationshipsUnique ( ) { org . neo4j . internal . kernel . api . helpers . StubNodeCursor stubNodeCursor = new org . neo4j . internal . kernel . api . helpers . StubNodeCursor ( false ) ; org . neo4j . internal . kernel . api . helpers . StubCursorFactory stubCursorFactory = new org . neo4j . internal . kernel . ap...
org . junit . Assert . assertEquals ( 2 , degreeBoth )
shouldSetAndRetrieveOutputParameter ( ) { final java . lang . Object parameter = mock ( java . lang . Object . class ) ; final uk . gov . justice . services . core . interceptor . InterceptorContext interceptorContext = uk . gov . justice . services . core . interceptor . InterceptorContext . interceptorContextWithInpu...
org . junit . Assert . assertThat ( interceptorContext . getOutputParameter ( "test" ) , org . hamcrest . core . Is . is ( java . util . Optional . of ( parameter ) ) )
shouldNotAddHstsHeaderWhenNotConfigured ( ) { org . neo4j . server . security . ssl . Customizer customizer = org . neo4j . server . security . ssl . HttpsRequestCustomizerTest . newCustomizer ( ) ; org . eclipse . jetty . server . Request request = org . neo4j . server . security . ssl . HttpsRequestCustomizerTest . n...
org . junit . Assert . assertNull ( hstsValue )
testcfg ( ) { com . jfireframework . context . JfireContext jfireContext = new com . jfireframework . context . JfireContextImpl ( "com.jfireframework.context.test.function.initmethod" ) ; com . jfireframework . context . bean . BeanConfig beanConfig = new com . jfireframework . context . bean . BeanConfig ( "p2" ) ; b...
org . junit . Assert . assertEquals ( 12 , person2 . getAge ( ) )
testGetDeviceBy64BitAddrWithDevicesWithUnknown64BitAddr ( ) { com . digi . xbee . api . models . XBee16BitAddress address = new com . digi . xbee . api . models . XBee16BitAddress ( "1234" ) ; network . addRemoteDevice ( remoteDeviceUNI ) ; network . addRemoteDevice ( remoteDeviceUN64Addr ) ; network . addRemoteDevice ...
org . junit . Assert . assertEquals ( remoteDeviceUN64Addr , found )
detectsFilesystemLinkLoopsAndAvoidsThem ( ) { java . io . File mockedMp3File = aValidMp3File ( ) ; final java . lang . String SLASH_FOO_CANONICAL_PATH_NAME = "/foo" ; com . github . marabou . audio . loader . AudioFileFilter audioFileFilter = new com . github . marabou . audio . loader . AudioFileFilter ( ) ; com . git...
org . junit . Assert . assertEquals ( 1 , result . size ( ) )
testFindByParentId ( ) { "<AssertPlaceHolder>" ; } findByParentId ( int ) { javax . persistence . Query query = createQuery ( "g" , "g.parentId<sp>=<sp>:id" ) ; query . setParameter ( "id" , groupId ) ; return query . getResultList ( ) ; }
org . junit . Assert . assertNotNull ( dao . findByParentId ( 100 ) )
testIsSameName4DiffLabel ( ) { org . talend . repository . items . importexport . handlers . model . ImportItem ImportItem1 = mock ( org . talend . repository . items . importexport . handlers . model . ImportItem . class ) ; org . talend . core . model . properties . Property property1 = mock ( org . talend . core . m...
org . junit . Assert . assertFalse ( basicHandler . isSameName ( ImportItem1 , repViewObj ) )
toStringShouldReturnValueForAnyValue ( ) { java . lang . String text = "Something" ; "<AssertPlaceHolder>" ; } toString ( java . lang . String ) { return hudson . plugins . growl . util . Cleaner . VALUES_REPLACED_WITH_NULL . contains ( string ) ? null : string ; }
org . junit . Assert . assertThat ( hudson . plugins . growl . util . Cleaner . toString ( text ) , org . hamcrest . CoreMatchers . equalTo ( text ) )
testUpdateIdNull ( ) { com . j256 . ormlite . dao . BaseDaoImpl < com . j256 . ormlite . dao . Foo , java . lang . Integer > dao = new com . j256 . ormlite . dao . BaseDaoImpl < com . j256 . ormlite . dao . Foo , java . lang . Integer > ( connectionSource , com . j256 . ormlite . dao . Foo . class ) { } ; dao . initial...
org . junit . Assert . assertEquals ( 0 , dao . updateId ( null , null ) )
testRangeMarkerIndices ( ) { org . jfree . data . category . CategoryDataset dataset = new org . jfree . data . category . DefaultCategoryDataset ( ) ; org . jfree . chart . axis . CategoryAxis xAxis = new org . jfree . chart . axis . CategoryAxis ( "X" ) ; org . jfree . chart . axis . NumberAxis yAxis = new org . jfre...
org . junit . Assert . assertTrue ( plot . getRangeMarkers ( 99 , Layer . FOREGROUND ) . contains ( yMarker1 ) )
test ( ) { connectToZookeeper ( ) ; org . ow2 . chameleon . rose . zookeeper . test . RegistryServerTest . waitForIt ( 200 ) ; createNode ( "server1" ) ; org . osgi . service . remoteserviceadmin . EndpointDescription desc = createEndpoint ( "dummyEndpoint1" , this . getClass ( ) ) ; putToZookeeper ( "server1" , "endpo...
org . junit . Assert . assertTrue ( rose . containsRemote ( desc ) )
testZonelessDateLiterals ( ) { java . lang . String srcTTL = ":r<sp>:p<sp>'1999-05-31T02:09:32'^^xsd:dateTime." ; com . epimorphics . jsonrdf . Context context = new com . epimorphics . jsonrdf . Context ( ) ; com . epimorphics . jsonrdf . Encoder enc = com . epimorphics . jsonrdf . Encoder . get ( context ) ; java . l...
org . junit . Assert . assertEquals ( expected , actual )
jsonStreamBasic ( ) { org . ebayopensource . turmeric . runtime . tests . service1 . sample . types1 . MyMessage msg = org . ebayopensource . turmeric . runtime . tests . common . util . TestUtils . createTestMessage ( 2 ) ; org . ebayopensource . turmeric . runtime . common . binding . DataBindingDesc dbDesc = new org...
org . junit . Assert . assertEquals ( msg , msg1 )
testIncomingConnection ( ) { org . apache . beam . vendor . grpc . v1p13p1 . io . grpc . stub . StreamObserver < org . apache . beam . model . fnexecution . v1 . BeamFnApi . InstructionRequest > requestObserver = mock ( org . apache . beam . vendor . grpc . v1p13p1 . io . grpc . stub . StreamObserver . class ) ; org . ...
org . junit . Assert . assertThat ( org . apache . beam . sdk . util . MoreFutures . isDone ( responseFuture ) , org . hamcrest . Matchers . is ( false ) )
testCreateContextWithAtlasMapping ( ) { io . atlasmap . v2 . AtlasMapping atlasMapping = new io . atlasmap . v2 . AtlasMapping ( ) ; factory = io . atlasmap . core . DefaultAtlasContextFactory . getInstance ( ) ; factory . init ( ) ; "<AssertPlaceHolder>" ; } createContext ( io . atlasmap . v2 . AtlasMapping ) { io . a...
org . junit . Assert . assertNotNull ( factory . createContext ( atlasMapping ) )
testGetFilesReturnsAllFiles ( ) { "<AssertPlaceHolder>" ; } getFiles ( ) { final long stamp = lock . readLock ( ) ; try { return propertiesDocs . keySet ( ) ; } finally { lock . unlock ( stamp ) ; } }
org . junit . Assert . assertEquals ( 3 , instance . getFiles ( ) . size ( ) )
testParseHappy2 ( ) { java . lang . String addresses = null ; org . nhindirect . xd . common . DirectDocuments documents = new org . nhindirect . xd . common . DirectDocuments ( ) ; org . nhindirect . xd . common . DirectDocuments . SubmissionSet oSubmissionSet = new org . nhindirect . xd . common . DirectDocuments . S...
org . junit . Assert . assertNotNull ( result )
shouldResolveNamedOperation ( ) { final java . lang . String opName = "opName" ; final uk . gov . gchq . gaffer . store . operation . handler . named . cache . NamedOperationCache cache = mock ( uk . gov . gchq . gaffer . store . operation . handler . named . cache . NamedOperationCache . class ) ; final uk . gov . gch...
org . junit . Assert . assertEquals ( namedOperationOpChain . getOperations ( ) , opChain . getOperations ( ) )
testSetStatTypeEntropy ( ) { System . out . println ( "StatTypeEntropy" ) ; boolean value = false ; edu . oswego . csc480_hci521_2013 . shared . h2o . urlbuilders . RFBuilder instance = new edu . oswego . csc480_hci521_2013 . shared . h2o . urlbuilders . RFBuilder ( "test.hex" ) ; java . lang . String expResult = "http...
org . junit . Assert . assertEquals ( expResult , result )
testMaxMatch ( ) { org . xh . xs . dic . DATrie dat = new org . xh . xs . dic . DATrie ( DATrie . InitType . Empty ) ; dat . add ( "ybaaaab" ) ; dat . add ( "baab" ) ; int len = dat . maxMatch ( "asbabaa&by" , 9 ) ; "<AssertPlaceHolder>" ; } maxMatch ( java . lang . String , int ) { return maxMatch ( sen . toCharArray ...
org . junit . Assert . assertEquals ( len , 2 )
testPersistenceTimer2 ( ) { setUp ( ) ; java . util . Properties properties = new java . util . Properties ( ) ; properties . setProperty ( "drools.commandService" , org . drools . persistence . PersistableRunner . class . getName ( ) ) ; properties . setProperty ( "drools.processInstanceManagerFactory" , org . jbpm . ...
org . junit . Assert . assertNull ( processInstance )
testGetValue ( ) { final java . lang . String expected = "expected" ; input . value = expected ; final java . lang . String actual = selectorView . getValue ( ) ; "<AssertPlaceHolder>" ; } getValue ( ) { return rootPath ; }
org . junit . Assert . assertEquals ( expected , actual )
non_specimen_type_request_returns_no_specimen ( ) { java . lang . Object result = this . enumBuilder . create ( "string" , null ) ; "<AssertPlaceHolder>" ; } create ( java . lang . Object , com . flextrade . jfixture . SpecimenContext ) { if ( ! ( request instanceof com . flextrade . jfixture . utility . SpecimenType )...
org . junit . Assert . assertEquals ( new com . flextrade . jfixture . NoSpecimen ( ) , result )
testRemoveScalableDeque ( ) { java . lang . Thread . sleep ( 2000 ) ; int originalCount = getObjectCount ( ) ; System . err . println ( ( "originalCount:<sp>" + originalCount ) ) ; final java . lang . String name = "queue" ; com . sun . sgs . test . app . util . TestScalableDeque . txnScheduler . runTask ( new com . su...
org . junit . Assert . assertEquals ( originalCount , countAfterRemove )