input
stringlengths
28
18.7k
output
stringlengths
39
1.69k
testOrder1 ( ) { org . apache . catalina . tribes . Member [ ] dest = channels [ 0 ] . getMembers ( ) ; final java . util . concurrent . atomic . AtomicInteger value = new java . util . concurrent . atomic . AtomicInteger ( 0 ) ; for ( int i = 0 ; i < 100 ; i ++ ) { channels [ 0 ] . send ( dest , java . lang . Integer ...
org . junit . Assert . assertFalse ( test [ i ] . fail )
getProcFileAsMap_Directory ( ) { java . util . Map < java . lang . String , java . lang . String > result = com . uber . profiling . util . ProcFileUtils . getProcFileAsMap ( "/" ) ; "<AssertPlaceHolder>" ; } getProcFileAsMap ( java . lang . String ) { try { java . io . File file = new java . io . File ( filePath ) ; i...
org . junit . Assert . assertEquals ( 0 , result . size ( ) )
testOneTrueFilter ( ) { com . northconcepts . eventbus . EventFilter filter = new com . northconcepts . eventbus . filter . AndFilter ( TRUE_FILTER ) ; "<AssertPlaceHolder>" ; } allow ( com . northconcepts . eventbus . Event , java . lang . Object ) { return true ; }
org . junit . Assert . assertTrue ( filter . allow ( event , listener ) )
testRandomByteArrayTransfer1 ( ) { byte [ ] value = new byte [ com . alibaba . dubbo . remoting . buffer . AbstractChannelBufferTest . BLOCK_SIZE ] ; for ( int i = 0 ; i < ( ( ( buffer . capacity ( ) ) - ( com . alibaba . dubbo . remoting . buffer . AbstractChannelBufferTest . BLOCK_SIZE ) ) + 1 ) ; i += com . alibaba ...
org . junit . Assert . assertEquals ( expectedValue . getByte ( j ) , value [ j ] )
getResourceAces ( ) { java . util . List < org . apache . jackrabbit . webdav . security . AclProperty . Ace > aces = collection . getAces ( fixture . getHttpClient ( ) , com . github . caldav4j . ICS_GOOGLE_DAILY_NY_5PM ) ; "<AssertPlaceHolder>" ; com . github . caldav4j . ACLCalDAVCollectionTest . log . info ( aces )...
org . junit . Assert . assertNotNull ( aces )
testSetterAndGetterForComsumedCapacity ( ) { com . alicloud . openservices . tablestore . model . ComputeSplitsBySizeResponse resp = new com . alicloud . openservices . tablestore . model . ComputeSplitsBySizeResponse ( new com . alicloud . openservices . tablestore . model . Response ( ) ) ; com . alicloud . openservi...
org . junit . Assert . assertTrue ( resp . getConsumedCapacity ( ) . equals ( cc ) )
testGetTarget ( ) { org . biojava3 . alignment . template . ProfilePair < org . biojava3 . core . sequence . ProteinSequence , org . biojava3 . core . sequence . compound . AminoAcidCompound > all = new org . biojava3 . alignment . SimpleProfilePair < org . biojava3 . core . sequence . ProteinSequence , org . biojava3 ...
org . junit . Assert . assertEquals ( all . getTarget ( ) , pair2 )
testSuccess ( ) { org . jboss . as . test . integration . management . cli . CliProcessWrapper cli = new org . jboss . as . test . integration . management . cli . CliProcessWrapper ( ) . addCliArgument ( "--connect" ) . addCliArgument ( ( ( ( "--controller=" + ( org . jboss . as . test . shared . TestSuiteEnvironment ...
org . junit . Assert . assertEquals ( 0 , exitCode )
testReloading ( ) { final java . io . File tempFile = this . temporaryFolder . newFile ( "sts.properties" ) ; final java . nio . file . Path path = tempFile . toPath ( ) ; org . kitteh . irc . client . library . feature . sts . StsStorageManager sut1 = org . kitteh . irc . client . library . util . StsUtil . getDefault...
org . junit . Assert . assertTrue ( sut2 . hasEntry ( "kitteh.org" ) )
shouldPutAndFetch ( ) { final java . lang . String key = "a" ; bytesStore . put ( serializeKey ( new org . apache . kafka . streams . kstream . Windowed ( key , windows [ 0 ] ) ) , serializeValue ( 10 ) ) ; bytesStore . put ( serializeKey ( new org . apache . kafka . streams . kstream . Windowed ( key , windows [ 1 ] )...
org . junit . Assert . assertEquals ( expected , toList ( values ) )
uuid_type_request_returns_uuid_instance ( ) { java . lang . Object result = this . uuidGenerator . create ( java . util . UUID . class , null ) ; "<AssertPlaceHolder>" ; } create ( java . lang . Object , com . flextrade . jfixture . SpecimenContext ) { if ( ! ( request instanceof com . flextrade . jfixture . utility . ...
org . junit . Assert . assertTrue ( ( result instanceof java . util . UUID ) )
testCreatePayersSectionBuilder ( ) { org . openhealthtools . mdht . uml . cda . builder . SectionBuilder < org . openhealthtools . mdht . uml . cda . ihe . PayersSection > sectionBuilder = org . openhealthtools . mdht . uml . cda . ihe . builder . IHEBuilderFactory . createPayersSectionBuilder ( ) ; org . openhealthtoo...
org . junit . Assert . assertNotNull ( section )
shouldReturnListOfOrders ( ) { java . util . List < org . superbiz . store . entity . Order > ordersList = orderRestClient . getOrders ( ( "Bearer<sp>" + ( createJwtToken ( true ) ) ) ) ; "<AssertPlaceHolder>" ; } size ( ) { return jug . client . util . CommandManager . COMMANDS . size ( ) ; }
org . junit . Assert . assertEquals ( 0 , ordersList . size ( ) )
signatureShouldBeNullWhenNotGeneric ( ) { org . neo4j . codegen . TypeReference reference = org . neo4j . codegen . TypeReference . typeReference ( java . lang . String . class ) ; java . lang . String signature = org . neo4j . codegen . ByteCodeUtils . signature ( reference ) ; "<AssertPlaceHolder>" ; } signature ( or...
org . junit . Assert . assertNull ( signature )
testStreamForEach ( ) { java . util . List < java . lang . Integer > result = new java . util . ArrayList ( ) ; asList ( 1 , 2 , 3 ) . forEach ( result :: add ) ; "<AssertPlaceHolder>" ; } forEach ( java . util . function . Consumer ) { peek ( action ) ; play ( ) ; }
org . junit . Assert . assertEquals ( asList ( 1 , 2 , 3 ) , result )
testSetPositionLocalizable ( ) { final double [ ] initial = new double [ ] { 5.3 , 2.6 , 3.1 , - 852.1 } ; final long [ ] fynal = new long [ ] { 98 , - 16 , 44 , 0 } ; final net . imglib2 . RealPoint p1 = new net . imglib2 . RealPoint ( initial ) ; final net . imglib2 . Point p2 = new net . imglib2 . Point ( fynal ) ; ...
org . junit . Assert . assertEquals ( p1 . getDoublePosition ( j ) , fynal [ j ] , 0 )
testValidWhenAtLeastOneBranchIsValid ( ) { nl . topicus . bitbucket . persistence . WebHookConfiguration dummyConfiguration = createDummyConfiguration ( ) ; dummyConfiguration . setBranchesToIgnore ( "feature/*" ) ; nl . topicus . bitbucket . api . PushEventService pushEventService = new nl . topicus . bitbucket . api ...
org . junit . Assert . assertThat ( pushEventService . isValidEvent ( dummyEvent , dummyConfiguration ) , org . hamcrest . Matchers . is ( true ) )
testCheckConnectivityFalse ( ) { "<AssertPlaceHolder>" ; } checkConnectivity ( ) { edu . uci . ics . jung . algorithms . cluster . WeakComponentClusterer < java . lang . String , java . lang . String > clusterer = new edu . uci . ics . jung . algorithms . cluster . WeakComponentClusterer < java . lang . String , java ....
org . junit . Assert . assertThat ( target . checkConnectivity ( ) , org . hamcrest . CoreMatchers . is ( false ) )
testCreateFromMapNestedBsonObject ( ) { io . mewbase . bson . Map < java . lang . String , io . mewbase . bson . BsonValue > map = new io . mewbase . bson . HashMap ( ) ; io . mewbase . bson . BsonObject nestedObj = new io . mewbase . bson . BsonObject ( ) . put ( "foo" , "bar" ) ; map . put ( "nested" , io . mewbase ....
org . junit . Assert . assertEquals ( "bar" , nestedRetrieved . getString ( "foo" ) )
testRebind ( ) { final javax . naming . Name name = new javax . naming . CompositeName ( "test" ) ; final java . lang . Object value = new java . lang . Object ( ) ; final java . lang . Object newValue = new java . lang . Object ( ) ; org . jboss . as . naming . WritableServiceBasedNamingStore . pushOwner ( org . jboss...
org . junit . Assert . assertEquals ( newValue , store . lookup ( name ) )
testGetDefaultEnvironmentNull ( ) { java . util . Map < java . lang . String , java . lang . Object > properties = new java . util . HashMap ( ) ; org . eclipse . kura . cloud . app . command . CommandCloudApp cca = new org . eclipse . kura . cloud . app . command . CommandCloudApp ( ) ; org . eclipse . kura . core . t...
org . junit . Assert . assertNull ( result )
resolveKeyToPropertyWithAPropertyWithAnObject ( ) { final com . github . javafaker . Superhero person = mock ( com . github . javafaker . Superhero . class ) ; final com . github . javafaker . service . FakeValuesServiceTest . DummyService dummy = mock ( com . github . javafaker . service . FakeValuesServiceTest . Dumm...
org . junit . Assert . assertThat ( actual , is ( "Luke<sp>Cage" ) )
testGetCoverageJP2K ( ) { org . junit . Assume . assumeTrue ( isFormatSupported ( "image/jp2" ) ) ; org . springframework . mock . web . MockHttpServletResponse response = getAsServletResponse ( ( "wcs?request=GetCoverage&service=WCS&version=2.0.1" + "&coverageId=BlueMarble&Format=image/jp2" ) ) ; "<AssertPlaceHolder>"...
org . junit . Assert . assertEquals ( "image/jp2" , response . getContentType ( ) )
acceptValidOffer ( ) { org . switchyard . quickstarts . demo . cluster . Car car = new org . switchyard . quickstarts . demo . cluster . Car ( ) ; car . setPrice ( 500.0 ) ; org . switchyard . quickstarts . demo . cluster . Application app = new org . switchyard . quickstarts . demo . cluster . Application ( ) ; app . ...
org . junit . Assert . assertTrue ( deal . isAccepted ( ) )
testSearchForExtensionTwoDeepReferenceWithoutType ( ) { ca . uhn . fhir . jpa . dao . dstu3 . SearchParameter siblingSp = new ca . uhn . fhir . jpa . dao . dstu3 . SearchParameter ( ) ; siblingSp . addBase ( "Patient" ) ; siblingSp . setCode ( "foobar" ) ; siblingSp . setType ( org . hl7 . fhir . dstu3 . model . Enumer...
org . junit . Assert . assertThat ( foundResources , contains ( p2id . getValue ( ) ) )
testNack ( ) { conn . connect ( defUser , defPass ) ; subscribe ( conn , "sub1" , "client" ) ; sendJmsMessage ( getName ( ) ) ; org . apache . activemq . artemis . tests . integration . stomp . util . ClientStompFrame frame = conn . receiveFrame ( ) ; java . lang . String messageID = frame . getHeader ( Stomp . Headers...
org . junit . Assert . assertNull ( message )
happyCase ( ) { java . util . List < org . estatio . module . lease . dom . occupancy . Occupancy > results = occupancyRepository . findByLeaseAndDate ( lease , lease . getStartDate ( ) ) ; "<AssertPlaceHolder>" ; } size ( ) { assertThat ( linkRepository . findAllForClassHierarchy ( org . estatio . module . link . dom ...
org . junit . Assert . assertThat ( results . size ( ) , org . hamcrest . CoreMatchers . is ( 1 ) )
testGetSortedWithNoValue ( ) { java . lang . String key = "test" ; java . util . List < com . github . pmerienne . trident . state . SortedSetMultiMapState . ScoredValue < com . github . pmerienne . trident . state . testing . TestValue > > actual = this . state . getSorted ( key , 3 ) ; "<AssertPlaceHolder>" ; } getSo...
org . junit . Assert . assertTrue ( actual . isEmpty ( ) )
getAlbumReturnsV1TagsAlbumIfV2TagsAlbumDoesNotExist ( ) { com . mpatric . mp3agic . ID3v1 id3v1Tag = new com . mpatric . mp3agic . ID3WrapperTest . ID3v1TagForTesting ( ) ; id3v1Tag . setAlbum ( "V1<sp>Album" ) ; com . mpatric . mp3agic . ID3v2 id3v2Tag = new com . mpatric . mp3agic . ID3WrapperTest . ID3v2TagForTestin...
org . junit . Assert . assertEquals ( "V1<sp>Album" , wrapper . getAlbum ( ) )
testGetValuesWhenConfigured ( ) { java . lang . String [ ] defaultValues = new java . lang . String [ ] { "default" } ; java . lang . String [ ] mockValues = new java . lang . String [ ] { "value" } ; when ( _settings . getValues ( "key2" , null ) ) . thenReturn ( mockValues ) ; java . lang . String [ ] values = _fallb...
org . junit . Assert . assertArrayEquals ( mockValues , values )
view_functions_with_line_breaks_should_serialze_just_fine ( ) { dd . addView ( "by_lastname" , new org . ektorp . support . DesignDocument . View ( "function(doc)\n{<sp>if<sp>(doc.Type<sp>==<sp>\'TestDoc\')<sp>{\nemit(doc.LastName,<sp>doc)\n}\n}" ) ) ; com . fasterxml . jackson . databind . ObjectMapper om = new com . ...
org . junit . Assert . assertNotNull ( json )
itShouldDeserialize ( ) { org . geojson . MultiPolygon multiPolygon = mapper . readValue ( ( "{\"type\":\"MultiPolygon\",\"coordinates\":[[[[102.0,2.0],[103.0,2.0],[103.0,3.0],[102.0,3.0],[102.0,2.0]]]," + ( "[[[100.0,0.0],[101.0,0.0],[101.0,1.0],[100.0,1.0],[100.0,0.0]]," + "[[100.2,0.2],[100.8,0.2],[100.8,0.8],[100.2...
org . junit . Assert . assertEquals ( 2 , multiPolygon . getCoordinates ( ) . size ( ) )
readChunkMessage ( ) { long session = 1L ; byte [ ] data = new byte [ ] { 1 , 2 , 3 , 4 , 5 } ; cocaine . message . Message msg = cocaine . message . Messages . chunk ( session , data ) ; byte [ ] bytes = pack . write ( java . util . Arrays . asList ( 4 , session , java . util . Collections . singletonList ( data ) ) )...
org . junit . Assert . assertEquals ( msg , result )
toJsonForSelfSignedDevice ( ) { tests . unit . com . microsoft . azure . sdk . iot . deps . serializer . DeviceParser parser = new tests . unit . com . microsoft . azure . sdk . iot . deps . serializer . DeviceParser ( ) ; parser . setAuthenticationParser ( new tests . unit . com . microsoft . azure . sdk . iot . deps ...
org . junit . Assert . assertTrue ( serializedDevice . contains ( selfSignedDeviceAuthenticationJson ) )
testToJsonMongoClientUpdateResult ( ) { io . vertx . core . json . JsonObject mongoClientUpdateResultJson = randomMongoClientUpdateResultJson ( ) ; io . vertx . ext . mongo . MongoClientUpdateResult mongoClientUpdateResult = new io . vertx . ext . mongo . MongoClientUpdateResult ( mongoClientUpdateResultJson ) ; "<Asse...
org . junit . Assert . assertEquals ( mongoClientUpdateResultJson , mongoClientUpdateResult . toJson ( ) )
testAdjacentVerticesIteratorRemove ( ) { edu . ucla . sspace . graph . WeightedDirectedMultigraph < java . lang . String > g = new edu . ucla . sspace . graph . WeightedDirectedMultigraph < java . lang . String > ( ) ; for ( int i = 0 ; i < 10 ; ++ i ) { for ( int j = i + 1 ; j < 10 ; ++ j ) { edu . ucla . sspace . gra...
org . junit . Assert . assertTrue ( it . hasNext ( ) )
testPrepareStatementBasicCaseWorks ( ) { java . sql . PreparedStatement stmt = getConnection ( ) . prepareStatement ( "VALUES<sp>1" ) ; java . sql . ResultSet rs = stmt . executeQuery ( ) ; "<AssertPlaceHolder>" ; } next ( ) { if ( ! ( beforeFirst ) ) { throw new java . lang . IllegalStateException ( ) ; } beforeFirst ...
org . junit . Assert . assertTrue ( rs . next ( ) )
testGetSupportedClaimTypesInvalidURI ( ) { org . codice . ddf . security . claims . cas . CasClaimsHandler handler = new org . codice . ddf . security . claims . cas . CasClaimsHandler ( ) ; java . util . Set < java . lang . String > claims = new java . util . HashSet ( java . util . Arrays . asList ( "control\\" , "sp...
org . junit . Assert . assertThat ( handler . getSupportedClaimTypes ( ) . size ( ) , org . hamcrest . CoreMatchers . is ( 1 ) )
ex27 ( ) { byte [ ] key = randomUtils . getExactBytes ( 16 ) ; org . meri . matasano . utils . oracle . NoIvMessageValidatingConstantKeyAESCBC cipher = new org . meri . matasano . utils . oracle . NoIvMessageValidatingConstantKeyAESCBC ( key ) ; byte [ ] recoveredKey = set . recoverKey ( cipher ) ; "<AssertPlaceHolder>...
org . junit . Assert . assertArrayEquals ( key , recoveredKey )
simpleTest ( ) { greycat . chunk . ChunkSpace space = factory . newSpace ( 100 , ( - 1 ) , null , false ) ; greycat . chunk . WorldOrderChunk map = ( ( greycat . chunk . WorldOrderChunk ) ( space . createAndMark ( ChunkType . WORLD_ORDER_CHUNK , 0 , 0 , 0 ) ) ) ; for ( long i = 0 ; i < 10 ; i ++ ) { map . put ( i , ( i...
org . junit . Assert . assertTrue ( ( ( map . get ( i ) ) == ( i * 3 ) ) )
putNullAndGetNothingBack ( ) { cache . put ( ( ( java . lang . Class < ? > ) ( null ) ) , nl . jqno . equalsverifier . internal . prefabvalues . FactoryCacheTest . STRING_FACTORY ) ; "<AssertPlaceHolder>" ; } get ( java . lang . Class ) { if ( type == null ) { return null ; } return ( ( nl . jqno . equalsverifier . int...
org . junit . Assert . assertNull ( cache . get ( null ) )
getAllConceptNameTags_shouldReturnAListOfAllConceptNameTags ( ) { int conceptNameTagsInDataset = 15 ; java . util . List < org . openmrs . ConceptNameTag > conceptNameTags = conceptService . getAllConceptNameTags ( ) ; "<AssertPlaceHolder>" ; } size ( ) { return getMemberships ( ) . stream ( ) . filter ( ( m ) -> ! ( m...
org . junit . Assert . assertEquals ( conceptNameTagsInDataset , conceptNameTags . size ( ) )
should_support_multiple_plugins_with_same_manager_dependencies ( ) { class SharedDependencyPlugin implements com . artemis . ArtemisPlugin { @ java . lang . Override public void setup ( com . artemis . WorldConfigurationBuilder b ) { builder . dependsOn ( com . artemis . common . TestEntityManagerA . class ) ; } } clas...
org . junit . Assert . assertNotNull ( world . getSystem ( com . artemis . common . TestEntityManagerA . class ) )
testAddOutput ( ) { org . deeplearning4j . nn . conf . NeuralNetConfiguration . Builder overallConf = new org . deeplearning4j . nn . conf . NeuralNetConfiguration . Builder ( ) . updater ( new org . nd4j . linalg . learning . config . Sgd ( 0.9 ) ) . activation ( Activation . IDENTITY ) ; org . deeplearning4j . nn . c...
org . junit . Assert . assertEquals ( 2 , modelNow . getNumOutputArrays ( ) )
test_getSize ( ) { forRectangles ( new org . eclipse . gef . geometry . tests . RectangleTests . IAction ( ) { @ org . eclipse . gef . geometry . tests . Override public void action ( org . eclipse . gef . geometry . planar . Rectangle rect , org . eclipse . gef . geometry . planar . Point tl , org . eclipse . gef . ge...
org . junit . Assert . assertEquals ( new org . eclipse . gef . geometry . planar . Dimension ( ( ( br . x ) - ( tl . x ) ) , ( ( br . y ) - ( tl . y ) ) ) , rect . getSize ( ) )
testAcceptInValidParameter2 ( ) { final org . openspotlight . graph . query . console . ConsoleState state = new org . openspotlight . graph . query . console . ConsoleState ( null ) ; state . setInput ( "add<sp>select" ) ; "<AssertPlaceHolder>" ; } accept ( org . openspotlight . graph . query . console . ConsoleState ...
org . junit . Assert . assertThat ( command . accept ( state ) , org . hamcrest . core . Is . is ( false ) )
testGetPartitionReturnsNullIfNoAutoCreate ( ) { org . kitesdk . data . PartitionStrategy partitionStrategy = new org . kitesdk . data . PartitionStrategy . Builder ( ) . hash ( "username" , 2 ) . build ( ) ; org . kitesdk . data . spi . filesystem . FileSystemDataset < org . apache . avro . generic . GenericData . Reco...
org . junit . Assert . assertNull ( ds . getPartition ( new org . kitesdk . data . spi . PartitionKey ( 1 ) , false ) )
testBuildWithDisabledSecurityConstraint ( ) { unit . setSecurity ( false ) ; org . lnu . is . domain . specialty . SpecialtyType context = new org . lnu . is . domain . specialty . SpecialtyType ( ) ; java . lang . String expected = "SELECT<sp>e<sp>FROM<sp>SpecialtyType<sp>e<sp>WHERE<sp>e.status=:status<sp>" ; org . ln...
org . junit . Assert . assertEquals ( expected , actualQuery )
constructor ( ) { org . batfish . coordinator . resources . NodeRoleBean role = new org . batfish . coordinator . resources . NodeRoleBean ( new org . batfish . role . NodeRole ( "name" , "a.*" ) , com . google . common . collect . ImmutableSet . of ( "a" , "b" ) ) ; "<AssertPlaceHolder>" ; } of ( int ) { return org . ...
org . junit . Assert . assertThat ( role . nodes , org . hamcrest . Matchers . equalTo ( com . google . common . collect . ImmutableSet . of ( "a" ) ) )
firstTest ( ) { com . microsoft . azure . management . containerservice . package_2017_09 . ContainerServiceTest . rgName = com . microsoft . azure . arm . utils . SdkContext . randomResourceName ( "rg" , 20 ) ; com . microsoft . azure . management . resources . ResourceGroup group = com . microsoft . azure . managemen...
org . junit . Assert . assertNotNull ( group )
testContainsPredicate ( ) { com . feilong . store . member . User user = new com . feilong . store . member . User ( 2L ) ; org . apache . commons . collections4 . Predicate < com . feilong . store . member . User > containsPredicate = com . feilong . core . util . predicate . BeanPredicateUtil . containsPredicate ( "i...
org . junit . Assert . assertEquals ( true , containsPredicate . evaluate ( user ) )
testThatARegisteredDependencyCanBeResolved ( ) { java . lang . String name = java . util . UUID . randomUUID ( ) . toString ( ) ; io . vlingo . actors . WorldTest . AnyDependency dep = org . mockito . Mockito . mock ( io . vlingo . actors . WorldTest . AnyDependency . class ) ; world . registerDynamic ( name , dep ) ; ...
org . junit . Assert . assertEquals ( dep , result )
getName ( ) { java . util . Random entropy = new java . util . Random ( ) ; java . lang . String name = "foo-" + ( entropy . nextLong ( ) ) ; jenkins . scm . impl . SingleSCMNavigator instance = new jenkins . scm . impl . SingleSCMNavigator ( name , java . util . Collections . < jenkins . scm . api . SCMSource > emptyL...
org . junit . Assert . assertThat ( instance . getName ( ) , org . hamcrest . Matchers . is ( name ) )
push ( ) { await ( io . datakernel . csp . ChannelSupplier . of ( wrapUtf8 ( io . global . fs . GlobalFsTest . SIMPLE_CONTENT ) ) . streamTo ( await ( firstAliceAdapter . upload ( io . global . fs . GlobalFsTest . FILENAME ) ) ) ) ; announce ( alice , set ( io . global . fs . GlobalFsTest . SECOND_ID ) ) ; await ( rawF...
org . junit . Assert . assertArrayEquals ( io . global . fs . GlobalFsTest . SIMPLE_CONTENT . getBytes ( io . global . fs . UTF_8 ) , data )
testGetCommandNonExisting ( ) { java . lang . String alias = "javax.jdo.option.ConnectionPassword" ; java . lang . String providerPath = getProviderPath ( "CreateCommandTest.jceks" ) ; java . lang . String [ ] args ; int exitCode ; args = getGetArgs ( alias , providerPath ) ; exitCode = executeCommand ( args ) ; "<Asse...
org . junit . Assert . assertEquals ( exitCode , 1 )
testGetDataFromFileFailing ( ) { nom . tam . fits . Header header = new nom . tam . fits . Header ( ) ; header . nullImage ( ) ; header . setNaxes ( 2 ) ; header . setNaxis ( 1 , 2 ) ; header . setNaxis ( 2 , 2 ) ; nom . tam . fits . ImageData data = new nom . tam . fits . ImageData ( header ) ; nom . tam . util . Buff...
org . junit . Assert . assertNull ( data . getData ( ) )
testPacketTransmissionDelay ( ) { org . apache . hadoop . hdfs . server . datanode . DataNodeFaultInjector dnFaultInjector = new org . apache . hadoop . hdfs . server . datanode . DataNodeFaultInjector ( ) { @ org . apache . hadoop . hdfs . Override public boolean dropHeartbeatPacket ( ) { return true ; } } ; org . apa...
org . junit . Assert . assertTrue ( contains )
testAbstractClassDefaultNull ( ) { org . skife . config . TestFile . EmptyAbstractClassDefaultNull ec = cof . build ( org . skife . config . TestFile . EmptyAbstractClassDefaultNull . class ) ; "<AssertPlaceHolder>" ; } getFile ( ) { return null ; }
org . junit . Assert . assertNull ( ec . getFile ( ) )
testNoSearchSortConfigurationAndNoSearchFilterReturnObjectNotNull ( ) { searchConfigurationRest = discoverConfigurationConverter . convert ( discoveryConfiguration ) ; "<AssertPlaceHolder>" ; } convert ( java . lang . Object ) { if ( object == null ) { return null ; } else if ( object instanceof org . dspace . app . re...
org . junit . Assert . assertNotNull ( searchConfigurationRest )
testUncompressedContentType ( ) { com . nextdoor . bender . ipc . es . ElasticSearchTransport transport = new com . nextdoor . bender . ipc . es . ElasticSearchTransport ( null , false ) ; "<AssertPlaceHolder>" ; } getUncompressedContentType ( ) { return org . apache . http . entity . ContentType . APPLICATION_JSON ; }
org . junit . Assert . assertEquals ( ContentType . APPLICATION_JSON , transport . getUncompressedContentType ( ) )
testTransactionAbort ( ) { final com . google . firebase . database . core . Repo repo = newRepo ( ) ; final java . util . List < com . google . firebase . database . DataSnapshot > events = new java . util . ArrayList ( ) ; final com . google . firebase . database . core . Path path = new com . google . firebase . dat...
org . junit . Assert . assertTrue ( events . isEmpty ( ) )
testCompleteClashingGAV ( ) { final org . uberfire . backend . vfs . Path repositoryRoot = mock ( org . uberfire . backend . vfs . Path . class ) ; final org . guvnor . common . services . project . model . POM pom = mock ( org . guvnor . common . services . project . model . POM . class ) ; final org . guvnor . common...
org . junit . Assert . assertNotNull ( commandArgumentCaptor . getValue ( ) )
testDoDestroy ( ) { control . doDestroy ( ) ; "<AssertPlaceHolder>" ; } getGridLayer ( ) { return ( ( org . kie . workbench . common . dmn . client . widgets . layer . DMNGridLayerControl ) ( getSession ( ) . getCanvasControl ( org . kie . workbench . common . dmn . client . widgets . layer . DMNGridLayerControl . clas...
org . junit . Assert . assertNull ( control . getGridLayer ( ) )
testCanReadProperties ( ) { org . apache . jackrabbit . oak . spi . security . authorization . permission . TreePermission tp = getTreePermission ( accessSession , org . apache . jackrabbit . oak . security . authorization . permission . RepoPolicyTreePermissionTest . REPO_POLICY_PATH ) ; "<AssertPlaceHolder>" ; } canR...
org . junit . Assert . assertTrue ( tp . canReadProperties ( ) )
testDeleteAgency ( ) { long result = agencyMapper . delete ( 1L ) ; "<AssertPlaceHolder>" ; } delete ( java . lang . Long ) { if ( isSupervisor ( id ) ) { cn . im47 . cms . common . service . account . impl . UserManagerImpl . logger . warn ( "<sp>{}<sp>." , this . getCurrentUserName ( ) ) ; throw new cn . im47 . cms ....
org . junit . Assert . assertEquals ( 1 , result )
testSerialization ( ) { org . jfree . data . time . Day d1 = new org . jfree . data . time . Day ( 15 , 4 , 2000 ) ; org . jfree . data . time . Day d2 = ( ( org . jfree . data . time . Day ) ( org . jfree . chart . TestUtilities . serialised ( d1 ) ) ) ; "<AssertPlaceHolder>" ; } serialised ( java . lang . Object ) { ...
org . junit . Assert . assertEquals ( d1 , d2 )
_2_A$ ( ) { java . lang . String _1 = "foo" ; java . lang . Integer _2 = 123 ; java . lang . Long _3 = 456L ; com . m3 . scalaflavor4j . Tuple3 < java . lang . String , java . lang . Integer , java . lang . Long > target = com . m3 . scalaflavor4j . Tuple3 . apply ( _1 , _2 , _3 ) ; java . lang . Integer actual = targe...
org . junit . Assert . assertThat ( actual , org . hamcrest . CoreMatchers . is ( org . hamcrest . CoreMatchers . equalTo ( expected ) ) )
issue54 ( ) { com . googlecode . javaewah32 . EWAHCompressedBitmap32 bm = new com . googlecode . javaewah32 . EWAHCompressedBitmap32 ( ) ; for ( int i = 1500 ; i < 1600 ; i ++ ) { bm . set ( i ) ; } for ( int i = 1500 ; i < 1535 ; i ++ ) { bm . clear ( i ) ; } bm . clear ( 1535 ) ; "<AssertPlaceHolder>" ; } isEmpty ( )...
org . junit . Assert . assertFalse ( bm . isEmpty ( ) )
cannotGet2App2 ( ) { final org . openqa . grid . internal . Registry registry = org . openqa . grid . internal . Registry . newInstance ( ) ; org . openqa . grid . internal . RemoteProxy p1 = new org . openqa . grid . internal . DetachedRemoteProxy ( org . openqa . grid . internal . ParallelTest . req , registry ) ; tr...
org . junit . Assert . assertFalse ( org . openqa . grid . internal . ParallelTest . processed )
should_map_long_to_long ( ) { com . github . erchu . beancp . commons . NumberConvertersTest . Source sourceInstance = new com . github . erchu . beancp . commons . NumberConvertersTest . Source ( ) ; sourceInstance . setLongValue ( ( ( long ) ( 8 ) ) ) ; com . github . erchu . beancp . Mapper mapper = new com . github...
org . junit . Assert . assertEquals ( ( ( long ) ( 8 ) ) , result . getLongValue ( ) )
testGetSchemaNamespaceNoNamespace ( ) { byte [ ] xml = org . datacite . mds . test . TestUtils . getTestMetadata20 ( ) ; java . lang . String namespace = service . getNamespace ( xml ) ; "<AssertPlaceHolder>" ; } getNamespace ( byte [ ] ) { return getSchemaInfo ( xml ) . namespace ; }
org . junit . Assert . assertNull ( namespace )
test9 ( ) { java . lang . String notFormattedText = "|<sp>foo<sp>1<sp>|<sp>foooooooooo<sp>2<sp>|<sp>foo<sp>3<sp>|<sp>foo<sp>4<sp>|<sp>val<sp>11<sp>|<sp>val\n" + "12<sp>|<sp>val<sp>13<sp>|<sp>val<sp>14<sp>|<sp>val<sp>15<sp>|<sp>|<sp>foooooooooo<sp>|<sp>val<sp>22<sp>|<sp>val<sp>33<sp>|<sp>val34<sp>|<sp>fooooooooooooooo<s...
org . junit . Assert . assertThat ( process , org . hamcrest . CoreMatchers . is ( expectedText ) )
testEqualsSameObject ( ) { org . bff . javampd . MPDItem item = new org . bff . javampd . MPDItemTest . TestItem ( "item" ) ; "<AssertPlaceHolder>" ; } equals ( java . lang . Object ) { if ( ( this ) == object ) { return true ; } if ( ( object == null ) || ( ( object . getClass ( ) ) != ( this . getClass ( ) ) ) ) { re...
org . junit . Assert . assertTrue ( item . equals ( item ) )
testNodeReading ( ) { org . jbpm . ruleflow . core . RuleFlowProcess process = new org . jbpm . ruleflow . core . RuleFlowProcess ( ) ; process . setId ( "org.drools.core.process.event" ) ; process . setName ( "Event<sp>Process" ) ; java . util . List < org . jbpm . process . core . context . variable . Variable > vari...
org . junit . Assert . assertNotNull ( processInstance )
constructorWithException ( ) { for ( int k = 0 ; k >= ( - 1000 ) ; k -= alluxio . SessionInfoTest . DELTA ) { alluxio . SessionInfo tSessionInfo = new alluxio . SessionInfo ( k , alluxio . SessionInfoTest . SESSION_TIMEOUT_MS ) ; "<AssertPlaceHolder>" ; org . junit . Assert . fail ( ( ( "SessionId<sp>" + k ) + "<sp>sho...
org . junit . Assert . assertEquals ( k , tSessionInfo . getSessionId ( ) )
testCreateItemWithNullValues ( ) { com . liferay . portal . upload . LiferayFileItemFactory liferayFileItemFactory = new com . liferay . portal . upload . LiferayFileItemFactory ( temporaryFolder . getRoot ( ) ) ; org . apache . commons . fileupload . FileItem fileItem = liferayFileItemFactory . createItem ( null , nul...
org . junit . Assert . assertNotNull ( fileItem )
testGetBigDecimalValue ( ) { com . sumzerotrading . data . Ticker ticker = new com . sumzerotrading . data . StockTicker ( "ABC" ) ; double value = 1.25 ; java . math . BigDecimal bdValue = com . sumzerotrading . util . QuoteUtil . getBigDecimalValue ( ticker , value ) ; java . math . BigDecimal expected = new java . m...
org . junit . Assert . assertEquals ( expected , bdValue )
testRenameJavaCode ( ) { java . lang . String testString = "\tSystem.out.println(\"=====\");\n\tout.a<sp>=<sp>b;\n\tout<sp>=<sp>obj1;" ; java . lang . String expectRetValue = "\tSystem.out.println(\"=====\");\n\trow1.a<sp>=<sp>b;\n\trow1<sp>=<sp>obj1;" ; java . lang . String retValue = org . talend . core . model . uti...
org . junit . Assert . assertTrue ( expectRetValue . equals ( retValue ) )
testInitTransportAddressesWhenMultipleNoPort ( ) { setEnv ( com . englishtown . vertx . elasticsearch . impl . Collections . singletonMap ( ENV_TRANSPORT_ADDRESS , "172.45.0.1|172.45.0.2" ) ) ; final com . englishtown . vertx . elasticsearch . impl . EnvElasticSearchConfigurator envConfigurator = new com . englishtown ...
org . junit . Assert . assertEquals ( expected , actual )
getApplications ( ) { java . util . Set < java . lang . String > expected = java . util . Collections . singleton ( "deployment" ) ; when ( this . map . keySet ( ) ) . thenReturn ( expected ) ; java . util . Set < java . lang . String > result = this . sessions . getDeployments ( ) ; "<AssertPlaceHolder>" ; verify ( th...
org . junit . Assert . assertEquals ( expected , result )
testRemoveFileByPath ( ) { int n = _fs . listDir ( _rootInode ) . length ; org . dcache . chimera . FsInode file = _rootInode . create ( "foo" , 0 , 0 , 420 ) ; _fs . remove ( "/foo" ) ; "<AssertPlaceHolder>" ; } listDir ( org . dcache . chimera . FsInode ) { java . util . List < java . lang . String > directoryList = ...
org . junit . Assert . assertEquals ( n , _fs . listDir ( _rootInode ) . length )
getAttribute_shouldReturnNullWhenExistingPersonAttributeTypeIsVoided ( ) { org . openmrs . Person person = personHelper ( true , 1 , 2 , 3 , "name1" , "name2" , "name3" , "value1" , "value2" , "value3" ) ; org . openmrs . PersonAttributeType type = new org . openmrs . PersonAttributeType ( 3 ) ; type . setName ( "name3...
org . junit . Assert . assertNull ( person . getAttribute ( type ) )
checkSigningTimePresent ( ) { javax . xml . xpath . XPathExpression exp = eu . europa . esig . dss . xades . requirements . AbstractRequirementChecks . xpath . compile ( "//xades:SignedProperties/xades:SignedSignatureProperties/xades:SigningTime" ) ; org . w3c . dom . Node node = ( ( org . w3c . dom . Node ) ( exp . ev...
org . junit . Assert . assertNotNull ( node )
testSubscriptionContainerModelWhenUpdatingBaseModelInContainerModel ( ) { long containerModelId = addContainerModel ( creatorUser . getUserId ( ) , com . liferay . portlet . subscriptions . test . PARENT_CONTAINER_MODEL_ID_DEFAULT ) ; long baseModelId = addBaseModel ( creatorUser . getUserId ( ) , containerModelId ) ; ...
org . junit . Assert . assertEquals ( 1 , com . liferay . portal . test . mail . MailServiceTestUtil . getInboxSize ( ) )
testInSimple ( ) { java . util . List < java . lang . String > items = new java . util . LinkedList ( ) ; java . lang . String expected = "swift<sp>in<sp>(" ; int i = 0 ; int inBlockSize = config . getInt ( DatabaseConfigFactory . IN_OPERATOR_BLOCK_SIZE ) ; for ( ; i < ( inBlockSize - 1 ) ; i ++ ) { expected += i + ",<...
org . junit . Assert . assertEquals ( expected , ie . toString ( ) )
removeAll3 ( ) { hudson . model . Fingerprint . RangeSet x = new hudson . model . Fingerprint . RangeSet ( ) ; hudson . model . Fingerprint . RangeSet y = new hudson . model . Fingerprint . RangeSet ( ) ; x . addAll ( 1 , 2 , 3 , 4 , 5 ) ; "<AssertPlaceHolder>" ; } removeAll ( java . util . Collection ) { boolean remov...
org . junit . Assert . assertFalse ( x . removeAll ( y ) )
testIsTagged ( ) { hudson . scm . SubversionTagAction tagAction = new hudson . scm . SubversionTagAction ( mockBuild , mockCollection ) ; "<AssertPlaceHolder>" ; } isTagged ( ) { for ( java . util . List < java . lang . String > t : tags . values ( ) ) { if ( ! ( t . isEmpty ( ) ) ) return true ; } return false ; }
org . junit . Assert . assertFalse ( tagAction . isTagged ( ) )
shouldParseAcceptWithQueryString ( ) { java . lang . String scriptFragment = "accept<sp>'http://localhost:8001/echo?param=value'" ; org . kaazing . k3po . lang . internal . parser . ScriptParserImpl parser = new org . kaazing . k3po . lang . internal . parser . ScriptParserImpl ( ) ; org . kaazing . k3po . lang . inter...
org . junit . Assert . assertEquals ( expected , actual )
testCreateShell ( ) { final org . eclipse . swt . widgets . Shell testShell = mock ( org . eclipse . swt . widgets . Shell . class ) ; final java . util . concurrent . atomic . AtomicReference < org . eclipse . swt . widgets . Shell > shellCaptor = new java . util . concurrent . atomic . AtomicReference < org . eclipse...
org . junit . Assert . assertSame ( testShell , shellCaptor . get ( ) )
getAuthenticatedResource_impersonated ( ) { authenticateSystemResource ( ) ; final char [ ] password = generateUniquePassword ( ) ; final com . acciente . oacc . Resource accessorResource = generateAuthenticatableResource ( password ) ; final com . acciente . oacc . Resource impersonatedResource = generateAuthenticatab...
org . junit . Assert . assertThat ( authenticatedResource , org . hamcrest . CoreMatchers . is ( accessorResource ) )
testRandomLongAccess ( ) { for ( int i = 0 ; i < ( ( buffer . capacity ( ) ) - 7 ) ; i += 8 ) { long value = random . nextLong ( ) ; buffer . setLong ( i , value ) ; } random . setSeed ( seed ) ; for ( int i = 0 ; i < ( ( buffer . capacity ( ) ) - 7 ) ; i += 8 ) { long value = random . nextLong ( ) ; "<AssertPlaceHolde...
org . junit . Assert . assertEquals ( value , buffer . getLong ( i ) )
test_in_classpath ( ) { java . lang . String testPath = ( org . nutz . resource . Scans . class . getName ( ) . replace ( '.' , '/' ) ) + ".class" ; java . lang . String testFilter = ( "^" + ( org . nutz . resource . Scans . class . getSimpleName ( ) ) ) + ".class$" ; java . util . List < org . nutz . resource . NutRes...
org . junit . Assert . assertEquals ( 1 , list . size ( ) )
testGetParameters ( ) { java . lang . Long adminUnitId = 1L ; org . lnu . is . domain . admin . unit . AdminUnit adminUnit = new org . lnu . is . domain . admin . unit . AdminUnit ( ) ; adminUnit . setId ( adminUnitId ) ; java . lang . Long assetId = 2L ; org . lnu . is . domain . asset . Asset asset = new org . lnu . ...
org . junit . Assert . assertEquals ( expected , actual )
testGetCommandText ( ) { com . aliyun . odps . task . SQLTask task = new com . aliyun . odps . task . SQLTask ( ) ; task . setName ( "name" ) ; task . setQuery ( "select<sp>count(*)<sp>from<sp>src;" ) ; "<AssertPlaceHolder>" ; } getCommandText ( ) { return query ; }
org . junit . Assert . assertEquals ( task . getCommandText ( ) , "select<sp>count(*)<sp>from<sp>src;" )
iterateImageSumStream1BooleanParallel ( ) { final org . eclipse . january . dataset . ILazyDataset lz = org . eclipse . january . dataset . DatasetFactory . ones ( 64 , 64 , 100 , 100 ) ; java . util . List < java . lang . Number > maxes = org . eclipse . dawnsci . analysis . dataset . SliceStreamSupport . sliceStream ...
org . junit . Assert . assertEquals ( ( 64 * 64 ) , maxes . size ( ) )
testUpdateLastUpdateError_noEntityManager_assertException ( ) { final java . util . Calendar now = java . util . Calendar . getInstance ( java . util . Locale . getDefault ( ) ) ; final org . nhindirect . config . store . dao . impl . TrustBundleDaoImpl dao = new org . nhindirect . config . store . dao . impl . TrustBu...
org . junit . Assert . assertTrue ( exceptionOccured )
testEqualsWhenPropertiesAreDifferent ( ) { final org . codice . ddf . configuration . migration . ExportMigrationSystemPropertyReferencedEntryImpl entry2 = new org . codice . ddf . configuration . migration . ExportMigrationSystemPropertyReferencedEntryImpl ( context , ( ( org . codice . ddf . configuration . migration...
org . junit . Assert . assertThat ( entry . equals ( entry2 ) , org . hamcrest . Matchers . equalTo ( false ) )
checkSourceFileField_NameIsSet_Found ( ) { org . pentaho . di . core . row . RowMeta rowMeta = org . pentaho . di . trans . steps . sftpput . SFTPPutTest . rowOfStringsMeta ( "some<sp>field" , "sourceFileFieldName" ) ; step . setInputRowMeta ( rowMeta ) ; org . pentaho . di . trans . steps . sftpput . SFTPPutData data ...
org . junit . Assert . assertEquals ( 1 , data . indexOfSourceFileFieldName )
testDB7160 ( ) { setProjectionPruningProperty ( projectionPruningDisabled ) ; java . lang . String sqlText = "SELECT<sp>count(*)<sp>FROM<sp>t3<sp>z1<sp>WHERE<sp>EXISTS\n" + ( ( ( ( ( "(<sp>SELECT<sp>1<sp>FROM<sp>(<sp>SELECT<sp>b3<sp>FROM<sp>t3<sp>z2<sp>WHERE<sp>EXISTS<sp>(<sp>SELECT<sp>b3<sp>FROM<sp>t3<sp>z3<sp>WHERE<s...
org . junit . Assert . assertEquals ( ( ( "\n" + sqlText ) + "\n" ) , expected , TestUtils . FormattedResult . ResultFactory . toString ( rs ) )
testAppDefinedQualifier ( ) { "<AssertPlaceHolder>" ; } getMyQualifier ( ) { return myQualifier ; }
org . junit . Assert . assertNotNull ( bean . getMyQualifier ( ) )