input
stringlengths
28
18.7k
output
stringlengths
39
1.69k
testGetLongFromByte ( ) { byte value = org . apache . activemq . artemis . utils . RandomUtil . randomByte ( ) ; org . apache . activemq . artemis . jms . client . ActiveMQMapMessage message = new org . apache . activemq . artemis . jms . client . ActiveMQMapMessage ( ) ; message . setByte ( itemName , value ) ; "<Asse...
org . junit . Assert . assertEquals ( value , message . getLong ( itemName ) )
getChildTestChildNotFound ( ) { final org . opendaylight . yangtools . yang . data . impl . schema . tree . InMemoryDataTreeSnapshot inMemoryDataTreeSnapshot = new org . opendaylight . yangtools . yang . data . impl . schema . tree . InMemoryDataTreeSnapshot ( SCHEMA_CONTEXT , org . opendaylight . yangtools . yang . da...
org . junit . Assert . assertFalse ( node . isPresent ( ) )
testJobCompletionListener ( ) { this . tg . addTask ( this . A ) ; this . tg . addTask ( this . B ) ; this . tg . addTask ( this . C ) ; org . osc . core . broker . job . JobEngineTest . JobCompletionResponder responder = new org . osc . core . broker . job . JobEngineTest . JobCompletionResponder ( ) ; this . job = th...
org . junit . Assert . assertTrue ( responder . isCalled ( ) )
testObjectDeserialization ( ) { com . owlike . genson . Genson genson = createTimestampGenson ( java . time . YearMonth . class , TimestampFormat . OBJECT ) ; java . time . YearMonth yearMonth = java . time . YearMonth . of ( 2010 , 11 ) ; java . lang . String json = "{\"year\":2010,\"month\":11}" ; "<AssertPlaceHolder...
org . junit . Assert . assertEquals ( yearMonth , genson . deserialize ( json , java . time . YearMonth . class ) )
testWithAnInteger ( ) { java . lang . Integer i = new java . lang . Integer ( 2 ) ; getBlock2 ( ) . setValue ( i ) ; "<AssertPlaceHolder>" ; } getBlock2 ( ) { return block2 ; }
org . junit . Assert . assertEquals ( i , getBlock2 ( ) . getValue ( ) )
testReverse3 ( ) { org . nd4j . linalg . api . ndarray . INDArray array = org . nd4j . linalg . factory . Nd4j . create ( new double [ ] { 9 , 8 , 7 , 6 , 5 , 4 , 3 , 2 , 1 , 0 } ) ; org . nd4j . linalg . api . ndarray . INDArray exp = org . nd4j . linalg . factory . Nd4j . create ( new double [ ] { 0 , 1 , 2 , 3 , 4 ,...
org . junit . Assert . assertEquals ( exp , rev )
testReloadUserData_ec2 ( ) { this . agent . parameters = net . roboconf . agent . internal . misc . AgentConstants . PLATFORM_EC2 ; this . agent . overrideProperties = true ; this . agent . userDataHelper = org . mockito . Mockito . mock ( net . roboconf . agent . internal . misc . UserDataHelper . class ) ; this . age...
org . junit . Assert . assertEquals ( AgentConstants . PLATFORM_EC2 , this . agent . parameters )
testBatchLoad ( ) { final int numItems = 200 ; java . util . List < com . amazonaws . mobileconnectors . dynamodbv2 . dynamodbmapper . NumberSetAttributeClass > objs = new java . util . ArrayList < com . amazonaws . mobileconnectors . dynamodbv2 . dynamodbmapper . NumberSetAttributeClass > ( ) ; java . util . List < co...
org . junit . Assert . assertEquals ( numItems , items . size ( ) )
testDeptRepoDeletAll ( ) { int total = 0 ; deptRepo . deleteAll ( ) ; java . lang . Iterable < com . tomniu . model . Department > depts = deptRepo . findAll ( ) ; for ( com . tomniu . model . Department dept : depts ) { total ++ ; } "<AssertPlaceHolder>" ; }
org . junit . Assert . assertEquals ( 0 , total )
isDigitFirst1 ( ) { char ch = '2' ; java . lang . Class < ? > c = com . diffblue . deeptestutils . Reflector . forName ( "com.alibaba.fastjson.JSONPath$JSONPathParser" ) ; java . lang . reflect . Method m = c . getDeclaredMethod ( "isDigitFirst" , com . diffblue . deeptestutils . Reflector . forName ( "char" ) ) ; m . ...
org . junit . Assert . assertEquals ( true , retval )
testPlayerMove_noMovement_false ( ) { when ( player . getLocation ( ) ) . thenReturn ( new org . bukkit . Location ( world , 0 , 0 , 0 ) ) ; "<AssertPlaceHolder>" ; } hasPlayerMoved ( ) { final double MAX_MOVE_TOLERANCE = 1.5 ; return ( distance3D ( player . getLocation ( ) , originalLocation ) ) > MAX_MOVE_TOLERANCE ;...
org . junit . Assert . assertFalse ( job . hasPlayerMoved ( ) )
testGetUriWithFilterOne ( ) { org . restheart . handlers . RequestContext context = prepareRequestContext ( ) ; java . lang . String expResult = "/dbName/collName?filter={'referenceField':'id'}" ; java . lang . String result ; try { result = org . restheart . utils . URLUtils . getUriWithFilterOne ( context , "dbName" ...
org . junit . Assert . assertEquals ( expResult , result )
firstLevelInheritance ( ) { com . github . mauricioaniche . ck . CKClassResult b = com . github . mauricioaniche . ck . metric . DITTest . report . get ( "dit.B" ) ; "<AssertPlaceHolder>" ; } getDit ( ) { return dit ; }
org . junit . Assert . assertEquals ( 2 , b . getDit ( ) )
putsByte ( ) { byte [ ] array = new byte [ 4 ] ; java . nio . ByteBuffer buffer = java . nio . ByteBuffer . wrap ( array ) ; buffer . put ( ( ( byte ) ( 2 ) ) ) . put ( ( ( byte ) ( 3 ) ) ) . put ( ( ( byte ) ( 5 ) ) ) . put ( ( ( byte ) ( 7 ) ) ) ; "<AssertPlaceHolder>" ; } put ( E ) { java . util . Objects . requireN...
org . junit . Assert . assertThat ( array , org . hamcrest . CoreMatchers . is ( new byte [ ] { 2 , 3 , 5 , 7 } ) )
testAsIntWithDefault ( ) { final org . jboss . dmr . LongModelValue value = new org . jboss . dmr . LongModelValue ( 5L ) ; "<AssertPlaceHolder>" ; } asInt ( int ) { return value ; }
org . junit . Assert . assertEquals ( 5 , value . asInt ( 10 ) )
testPropertyMapGetValues ( ) { com . eclipsesource . v8 . utils . V8PropertyMap < java . lang . Object > map = new com . eclipsesource . v8 . utils . V8PropertyMap < java . lang . Object > ( ) ; map . put ( "foo" , map ) ; map . put ( "bar" , null ) ; map . put ( "baz" , null ) ; java . util . Collection < java . lang ...
org . junit . Assert . assertEquals ( 3 , values . size ( ) )
testNestedDummyQuery ( ) { java . lang . String [ ] bindingNameFilter = new java . lang . String [ 1 ] ; bindingNameFilter [ 0 ] = "FILTER_AMOUNT" ; org . eclipse . birt . data . engine . api . IBaseExpression [ ] bindingExprFilter = new org . eclipse . birt . data . engine . api . IBaseExpression [ 1 ] ; bindingExprFi...
org . junit . Assert . assertNotNull ( queryResults )
shouldOKNullEnd ( ) { org . cedj . geekseek . web . rest . core . test . unit . StartBeforeEndValidationTestCase . StartEndDate obj = new org . cedj . geekseek . web . rest . core . test . unit . StartBeforeEndValidationTestCase . StartEndDate ( ) ; obj . start = new java . util . Date ( ) ; obj . end = null ; java . u...
org . junit . Assert . assertEquals ( 0 , result . size ( ) )
testSimpleWithDecimalsTrunc ( ) { org . hipparchus . geometry . euclidean . twod . Vector2D c = new org . hipparchus . geometry . euclidean . twod . Vector2D ( 1.232323232323 , 1.434343434343 ) ; java . lang . String expected = ( ( ( "{1" + ( getDecimalCharacter ( ) ) ) + "2323232323;<sp>1" ) + ( getDecimalCharacter ( ...
org . junit . Assert . assertEquals ( expected , actual )
testPathTraversalWithDotDot ( ) { javax . servlet . http . HttpServletRequest request = createNiceMock ( javax . servlet . http . HttpServletRequest . class ) ; javax . servlet . http . HttpServletResponse response = createNiceMock ( javax . servlet . http . HttpServletResponse . class ) ; javax . servlet . FilterChain...
org . junit . Assert . assertNotNull ( resolved )
configGet ( ) { java . util . List < java . lang . String > info = jedis . configGet ( "m*" ) ; "<AssertPlaceHolder>" ; } configGet ( byte [ ] ) { sendCommand ( redis . clients . jedis . CONFIG , Keyword . GET . raw , pattern ) ; }
org . junit . Assert . assertNotNull ( info )
shouldUseContainerForNewComponent ( ) { final br . com . caelum . vraptor . view . DogController myDog = new br . com . caelum . vraptor . view . DogController ( ) ; br . com . caelum . vraptor . interceptor . InstanceContainer container = new br . com . caelum . vraptor . interceptor . InstanceContainer ( myDog ) ; br...
org . junit . Assert . assertTrue ( container . isEmpty ( ) )
testInvalidRange ( ) { java . lang . String [ ] invalidRangeValues = new java . lang . String [ ] { null , "1-" 4 , "1-" 8 , "1-" 3 , "1d" , "1.0" , "1.0" 4 , "%" , "1.0" 3 , "1-" 6 , "&" , "1.0" 5 , "1.0" 7 , "1.0" 9 , "1-" 0 , "1-" , "1.0" 6 , "1+2" , "**" , "*-" , "1-" 9 , "1-" 7 , "1.0" 2 , "1.0" 0 , "1-" 2 , "1.0"...
org . junit . Assert . assertFalse ( ( "1.0" 1 + invalidRange ) , accepts )
isUnauthenticated_nullSubject ( ) { "<AssertPlaceHolder>" ; } isUnauthenticated ( javax . security . auth . Subject ) { if ( ( com . ibm . websphere . ras . TraceComponent . isAnyTracingEnabled ( ) ) && ( com . ibm . ws . messaging . security . utility . MessagingSecurityUtility . tc . isEntryEnabled ( ) ) ) { com . ib...
org . junit . Assert . assertTrue ( subjectHelper . isUnauthenticated ( null ) )
testNoError ( ) { boolean result = checkNoError ( "Social_Files_Get_My_Files" ) ; "<AssertPlaceHolder>" ; } getNoErrorMsg ( ) { return noErrorMsg ; }
org . junit . Assert . assertTrue ( getNoErrorMsg ( ) , result )
testStringToHexArray ( ) { java . lang . String hex = "019f314a" ; byte [ ] hexArray = org . apache . flink . util . StringUtils . hexStringToByte ( hex ) ; byte [ ] expectedArray = new byte [ ] { 1 , - 97 , 49 , 74 } ; "<AssertPlaceHolder>" ; } hexStringToByte ( java . lang . String ) { final byte [ ] bts = new byte [...
org . junit . Assert . assertArrayEquals ( expectedArray , hexArray )
containShouldReturnTrueWhenElementWithIdPresent ( ) { adapter . put ( "1" , object1 , org . springframework . data . map . MapKeyValueAdapterUnitTests . COLLECTION_1 ) ; "<AssertPlaceHolder>" ; } contains ( java . lang . Object , java . lang . String ) { return ( get ( id , keyspace ) ) != null ; }
org . junit . Assert . assertThat ( adapter . contains ( "1" , org . springframework . data . map . MapKeyValueAdapterUnitTests . COLLECTION_1 ) , org . hamcrest . core . Is . is ( true ) )
shouldGetElementAt ( ) { com . orange . dgil . trail . core . common . TrailPoint [ ] points = new com . orange . dgil . trail . core . common . TrailPoint [ 3 ] ; points [ 0 ] = new com . orange . dgil . trail . core . common . TrailPoint ( ) ; com . orange . dgil . trail . TestTools . setObj ( "points" , com . orange...
org . junit . Assert . assertEquals ( points [ 0 ] , ret )
testRefScenario ( ) { com . sap . core . odata . api . edm . provider . EdmProvider testProvider = new com . sap . core . odata . testutil . mock . EdmTestProvider ( ) ; com . sap . core . odata . api . processor . ODataResponse response = com . sap . core . odata . api . ep . EntityProvider . writeMetadata ( testProvi...
org . junit . Assert . assertEquals ( stream , streamAfterParse )
canDisplayGeorgian ( ) { "<AssertPlaceHolder>" ; } findFontFor ( java . lang . String ) { try { return org . sejda . impl . sambox . util . FontUtils . findFontFor ( new org . sejda . sambox . pdmodel . PDDocument ( ) , s ) ; } finally { org . sejda . impl . sambox . util . FontUtils . clearLoadedFontCache ( ) ; } }
org . junit . Assert . assertNotNull ( findFontFor ( "<sp>" ) )
verifyMaxClusterSizeForStaticCluster ( ) { oracle . kubernetes . operator . wlsconfig . WlsClusterConfig wlsClusterConfig = new oracle . kubernetes . operator . wlsconfig . WlsClusterConfig ( "cluster1" ) ; wlsClusterConfig . addServerConfig ( createWlsServerConfig ( "ms-0" , 8011 , null ) ) ; "<AssertPlaceHolder>" ; }...
org . junit . Assert . assertThat ( wlsClusterConfig . getMaxClusterSize ( ) , org . hamcrest . Matchers . equalTo ( 1 ) )
testGetWhiteBoardMissingCallbackHandler ( ) { org . apache . jackrabbit . oak . spi . security . authentication . AbstractLoginModule loginModule = org . apache . jackrabbit . oak . spi . security . authentication . AbstractLoginModuleTest . initLoginModule ( org . apache . jackrabbit . oak . spi . security . authentic...
org . junit . Assert . assertNull ( loginModule . getWhiteboard ( ) )
test ( ) { io . katharsis . jpa . JpaRepositoryFilterBase filter = org . mockito . Mockito . spy ( new io . katharsis . jpa . JpaRepositoryFilterBase ( ) ) ; module . addFilter ( filter ) ; io . katharsis . queryspec . QuerySpec querySpec = new io . katharsis . queryspec . QuerySpec ( io . katharsis . jpa . model . Tes...
org . junit . Assert . assertEquals ( 5 , list . size ( ) )
testTeaserWithoutLink ( ) { com . adobe . cq . wcm . core . components . models . Teaser teaser = getTeaserUnderTest ( com . adobe . cq . wcm . core . components . internal . models . v1 . TeaserImplTest . TEASER_4 ) ; verify ( teaserLogger ) . debug ( "Teaser<sp>component<sp>from<sp>/content/teasers/jcr:content/root/r...
org . junit . Assert . assertNull ( teaser . getLinkURL ( ) )
testIsAuthoritativeCompatibilityItemToPathMetadata ( ) { com . amazonaws . services . dynamodbv2 . document . Item item = org . mockito . Mockito . spy ( org . apache . hadoop . fs . s3a . s3guard . TestPathMetadataDynamoDBTranslation . TEST_DIR_ITEM ) ; item . withBoolean ( org . apache . hadoop . fs . s3a . s3guard ....
org . junit . Assert . assertFalse ( meta . isAuthoritativeDir ( ) )
test_getProperty_nest ( ) { navigator . setAllowPrivate ( true ) ; { java . lang . Class < ? > type = navigator . getPropertyType ( com . gh . mygreen . xlsmapper . util . PropertyTypeNavigatorTest . Person . class , "nest.price" ) ; "<AssertPlaceHolder>" . isEqualTo ( long . class ) ; } } getPropertyType ( java . lang...
org . junit . Assert . assertThat ( type )
testBuildWithDisabledDefaultConstraints ( ) { unit . setSecurity ( false ) ; unit . setActive ( false ) ; org . lnu . is . domain . degree . type . DegreeType context = new org . lnu . is . domain . degree . type . DegreeType ( ) ; java . lang . String expectedQuery = "SELECT<sp>e<sp>FROM<sp>DegreeType<sp>e<sp>" ; org ...
org . junit . Assert . assertEquals ( expectedQuery , actualQuery )
singleCrossHierarchEdge_needsNoCrossHierarchy ( ) { org . eclipse . elk . alg . layered . graph . LNode leftNode = addNodeToLayer ( makeLayer ( ) ) ; org . eclipse . elk . alg . layered . graph . LNode rightOuterNode = addNodeToLayer ( makeLayer ( ) ) ; org . eclipse . elk . alg . layered . graph . LPort [ ] rightOuter...
org . junit . Assert . assertFalse ( data . dontSweepInto ( ) )
testIOException ( ) { java . io . IOException test = new java . io . IOException ( "test" ) ; org . apache . nifi . toolkit . s2s . DataPacketDto dataPacketDto = new org . apache . nifi . toolkit . s2s . DataPacketDto ( "test-data" . getBytes ( StandardCharsets . UTF_8 ) ) . putAttribute ( "key" , "value" ) ; objectMap...
org . junit . Assert . assertEquals ( test , e )
testE2ETokenRenewal ( ) { org . apache . hadoop . yarn . api . ApplicationMasterProtocol client ; try ( org . apache . hadoop . yarn . server . MiniYARNCluster cluster = new org . apache . hadoop . yarn . server . MiniYARNCluster ( "testE2ETokenRenewal" , 1 , 1 , 1 ) ; org . apache . hadoop . yarn . client . api . Yarn...
org . junit . Assert . assertFalse ( response . getAMRMToken ( ) . equals ( lastToken ) )
write ( ) { org . apache . oltu . oauth2 . jwt . JWT jwt = new org . apache . oltu . oauth2 . jwt . JWT . Builder ( ) . setHeaderAlgorithm ( "accounts.google.com" 1 ) . setHeaderCustomField ( "kid" , "be1da0b3567bd265a25098fbcc2b09f21345b3a2" ) . setClaimsSetAudience ( "accounts.google.com" 5 ) . setClaimsSetIssuer ( "...
org . junit . Assert . assertEquals ( org . apache . oltu . oauth2 . jwt . JWT , encodedJWT )
setInputRangeValue ( ) { org . openqa . selenium . WebElement rangeField = driver . findElement ( org . openqa . selenium . By . id ( "range" ) ) ; rangeField . sendKeys ( "20" ) ; "<AssertPlaceHolder>" ; } getAttribute ( java . lang . String ) { assertElementNotStale ( ) ; if ( attribute . equalsIgnoreCase ( "value" )...
org . junit . Assert . assertThat ( rangeField . getAttribute ( "value" ) , org . hamcrest . CoreMatchers . is ( "20" ) )
testGetScrollPanel ( ) { final com . google . gwt . user . client . ui . AbsolutePanel expectedPanel = mock ( com . google . gwt . user . client . ui . AbsolutePanel . class ) ; doReturn ( expectedPanel ) . when ( gridLienzoPanel ) . getScrollPanel ( ) ; final com . google . gwt . user . client . ui . AbsolutePanel act...
org . junit . Assert . assertEquals ( expectedPanel , actualPanel )
testEquals ( ) { opennlp . tools . parser . Parse p1 = opennlp . tools . parser . Parse . parseParse ( opennlp . tools . parser . ParseTest . PARSE_STRING ) ; "<AssertPlaceHolder>" ; } equals ( java . lang . Object ) { if ( ( this ) == obj ) { return true ; } if ( obj instanceof opennlp . tools . tokenize . TokenSample...
org . junit . Assert . assertTrue ( p1 . equals ( p1 ) )
shouldReturnFalseForEmptyArray ( ) { int [ ] nums = new int [ ] { } ; "<AssertPlaceHolder>" ; } containsDuplicate ( int [ ] ) { java . util . Set < java . lang . Integer > set = new java . util . HashSet < java . lang . Integer > ( ) ; for ( int i = 0 ; i < ( nums . length ) ; i ++ ) { if ( ! ( set . add ( nums [ i ] )...
org . junit . Assert . assertFalse ( containsDuplicate . containsDuplicate ( nums ) )
getValueStringByKeyValueNull ( ) { java . util . HashMap < java . lang . String , java . lang . String > map = new java . util . HashMap < java . lang . String , java . lang . String > ( ) ; map . put ( "key2" , null ) ; java . lang . String keyName = "key2" ; java . lang . String expResult = "" ; java . lang . String ...
org . junit . Assert . assertEquals ( expResult , result )
testGetVertices ( ) { com . puresoltechnologies . ductiledb . core . graph . StarWarsGraph . addStarWarsFiguresData ( com . puresoltechnologies . ductiledb . core . graph . DuctileDBGraphIT . graph ) ; java . lang . Iterable < com . puresoltechnologies . ductiledb . core . graph . DuctileDBVertex > vertices = com . pur...
org . junit . Assert . assertEquals ( 10 , count )
getInitializer ( ) { org . springframework . context . annotation . AnnotationConfigApplicationContext cxt = new org . springframework . context . annotation . AnnotationConfigApplicationContext ( org . springframework . web . issues . MyConfig . class ) ; org . springframework . web . bind . support . ConfigurableWebB...
org . junit . Assert . assertNotNull ( validator )
testBrpPersoonslijstGetterZonderInhoud ( ) { final nl . moderniseringgba . isc . esb . message . brp . generated . ErkenningNotarieelVerzoekType erkenningNotarieelVerzoek = new nl . moderniseringgba . isc . esb . message . brp . generated . ErkenningNotarieelVerzoekType ( ) ; final nl . moderniseringgba . isc . esb . m...
org . junit . Assert . assertNull ( erkenningNotarieelVerzoekBericht . getBrpPersoonslijst ( ) )
nullStringToDate ( ) { "<AssertPlaceHolder>" ; } stringToDate ( java . lang . String ) { org . sentilo . common . utils . DateUtils . LOCK_TZ_PSAB_DF . lock ( ) ; try { return org . springframework . util . StringUtils . hasText ( date ) ? org . sentilo . common . utils . DateUtils . TZ_PSAB_DF . parse ( org . sentilo ...
org . junit . Assert . assertNull ( org . sentilo . common . utils . DateUtils . stringToDate ( null ) )
testConstructors ( ) { net . sourceforge . pmd . properties . PropertyDescriptor < T > desc = createProperty ( ) ; "<AssertPlaceHolder>" ; try { createBadProperty ( ) ; } catch ( java . lang . Exception ex ) { return ; } org . junit . Assert . fail ( "uncaught<sp>constructor<sp>exception" ) ; } createProperty ( ) { ret...
org . junit . Assert . assertNotNull ( desc )
testBinaryEncodedToBase64 ( ) { com . vmware . xenon . common . TestGsonConfiguration . BinaryHolder instance = new com . vmware . xenon . common . TestGsonConfiguration . BinaryHolder ( ) ; instance . picture = "ssdfgsdgsdg" . getBytes ( ) ; java . lang . String base64encoded = java . util . Base64 . getEncoder ( ) . ...
org . junit . Assert . assertTrue ( json . contains ( base64encoded ) )
testTranslateContextSuccessfull7 ( ) { ichunk . setContext ( ExplanationChunk . WARNING ) ; java . lang . String expResult = "WARNING" ; java . lang . String result = org . goodoldai . jeff . report . rtf . RTFChunkUtility . translateContext ( ichunk ) ; "<AssertPlaceHolder>" ; } translateContext ( org . goodoldai . je...
org . junit . Assert . assertEquals ( expResult , result )
testSerialization ( ) { org . jfree . chart . labels . IntervalCategoryItemLabelGenerator g1 = new org . jfree . chart . labels . IntervalCategoryItemLabelGenerator ( "{3}<sp>-<sp>{4}" , java . text . DateFormat . getInstance ( ) ) ; org . jfree . chart . labels . IntervalCategoryItemLabelGenerator g2 = ( ( org . jfree...
org . junit . Assert . assertEquals ( g1 , g2 )
initShouldCreateTheDatabaseIfItNotExists ( ) { java . lang . String database = "test" + ( java . lang . System . currentTimeMillis ( ) ) ; try { executeStatement ( ( "DROP<sp>DATABASE<sp>" + database ) ) ; } catch ( java . lang . Exception e ) { } url = "jdbc:mysql://127.0.0.1:3306/" + database ; props . put ( "karaf.l...
org . junit . Assert . assertFalse ( connection . isClosed ( ) )
Should_apply_flags_on_config ( ) { com . artemis . WorldConfiguration configuration = builder . alwaysDelayComponentRemoval ( true ) . build ( ) ; "<AssertPlaceHolder>" ; } isAlwaysDelayComponentRemoval ( ) { return alwaysDelayComponentRemoval ; }
org . junit . Assert . assertTrue ( configuration . isAlwaysDelayComponentRemoval ( ) )
testEmpty ( ) { java . lang . String delimiter = "\r\n" ; final java . lang . String boundary = "MockMultiPartTestBoundary" ; java . lang . String str = ( ( ( delimiter + "--" ) + boundary ) + "--" ) + delimiter ; javax . servlet . MultipartConfigElement config = new javax . servlet . MultipartConfigElement ( _dirname ...
org . junit . Assert . assertTrue ( mpis . getParts ( ) . isEmpty ( ) )
unconfiguredAdminServer_hasNoEnvironmentVariables ( ) { oracle . kubernetes . weblogic . domain . model . ServerSpec spec = domain . getAdminServerSpec ( ) ; "<AssertPlaceHolder>" ; } getEnvironmentVariables ( ) { return withStateAdjustments ( server . getEnv ( ) ) ; }
org . junit . Assert . assertThat ( spec . getEnvironmentVariables ( ) , org . hamcrest . Matchers . empty ( ) )
testSize ( ) { org . apache . tajo . datum . Datum d = org . apache . tajo . datum . DatumFactory . createInt4 ( 5 ) ; "<AssertPlaceHolder>" ; } size ( ) { return taskRequestQueue . size ( ) ; }
org . junit . Assert . assertEquals ( 4 , d . size ( ) )
InheritanceImplementsInterface ( ) { java . lang . String fromClass = "Domain.Direct.Violating.InheritanceImplementsInterface" ; java . lang . String toClass = "Technology.Direct.Dao.IMapDAO" ; java . util . ArrayList < java . lang . String > typesToFind = new java . util . ArrayList < java . lang . String > ( ) ; type...
org . junit . Assert . assertTrue ( areDependencyTypesDetected ( fromClass , toClass , typesToFind , false ) )
testRollover ( ) { final long start = Long . MAX_VALUE ; final long now = start + 2 ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertEquals ( 2 , ( now - start ) )
escapePercent ( ) { java . lang . String testString = "claim%" ; java . lang . String resultString = "claim\\%" ; java . lang . String convertedTestString = ch . puzzle . itc . mobiliar . business . utils . JpaWildcardConverter . convertWildCards ( testString ) ; "<AssertPlaceHolder>" ; } convertWildCards ( java . lang...
org . junit . Assert . assertEquals ( convertedTestString , resultString )
testLinkedList ( ) { org . mapdb . elsa . Collection c = new java . util . LinkedList ( ) ; for ( int i = 0 ; i < 2000 ; i ++ ) { c . add ( i ) ; "<AssertPlaceHolder>" ; } } clone ( E ) { return org . mapdb . elsa . ElsaSerializerBaseTest . clonePojo ( value ) ; }
org . junit . Assert . assertEquals ( c , org . mapdb . elsa . ElsaSerializerBaseTest . clone ( c ) )
testSerdeEmpty ( ) { boolean print = false ; org . deeplearning4j . eval . org . nd4j [ ] arr = new org . nd4j . evaluation . IEvaluation [ ] { new org . deeplearning4j . eval . Evaluation ( ) , new org . deeplearning4j . eval . EvaluationBinary ( ) , new org . deeplearning4j . eval . ROCBinary ( 10 ) , new org . deepl...
org . junit . Assert . assertEquals ( e . toJson ( ) , fromJson . toJson ( ) )
testSimpleSchema ( ) { io . cdap . cdap . api . data . schema . Schema simpleSchema = io . cdap . cdap . api . data . schema . Schema . of ( Schema . Type . INT ) ; java . util . Set < java . lang . String > expected = java . util . Collections . singleton ( "properties:schema" ) ; io . cdap . cdap . data2 . metadata ....
org . junit . Assert . assertEquals ( expected , actual )
testGetUserDnFromArray ( ) { java . lang . String userDnForTest = "snd1" ; java . lang . String [ ] array = new java . lang . String [ ] { userDnForTest , "idn" } ; java . lang . String userDN = datawave . security . util . DnUtils . getUserDN ( array ) ; "<AssertPlaceHolder>" ; } getUserDN ( java . lang . String [ ] )...
org . junit . Assert . assertEquals ( userDnForTest , userDN )
getSharedPlaylistContent ( ) { java . util . List < com . github . felixgail . gplaymusic . model . Playlist > playlists = getApi ( ) . getPlaylistApi ( ) . listPlaylists ( ) ; assume ( playlists ) ; java . util . Optional < com . github . felixgail . gplaymusic . model . Playlist > sharedPlaylistOptional = playlists ....
org . junit . Assert . assertNotNull ( entries )
testGetCourseSetMembers ( ) { java . util . Set members = cm . getCourseSetMemberships ( "BIO_DEPT" ) ; "<AssertPlaceHolder>" ; try { cm . getCourseSetMemberships ( "bad<sp>eid" ) ; org . junit . Assert . fail ( ) ; } catch ( org . sakaiproject . coursemanagement . api . exception . IdNotFoundException ide ) { } } size...
org . junit . Assert . assertEquals ( 1 , members . size ( ) )
testIsLoggingEnabled ( ) { herdRestControllerAdvice . afterPropertiesSet ( ) ; "<AssertPlaceHolder>" ; } isLoggingEnabled ( ) { return loggingEnabled ; }
org . junit . Assert . assertTrue ( herdRestControllerAdvice . isLoggingEnabled ( ) )
testAllItemIDsCSV ( ) { java . lang . String response = target ( "/item/allIDs" ) . request ( ) . get ( java . lang . String . class ) ; "<AssertPlaceHolder>" ; } get ( java . lang . String ) { java . util . Map < java . lang . String , java . lang . Integer > map = getModel ( ) . getWords ( ) ; java . lang . Integer c...
org . junit . Assert . assertEquals ( 9 , response . split ( "\n" ) . length )
testDoubleEqConjunction ( ) { org . hisp . dhis . query . Query query = org . hisp . dhis . query . Query . from ( schemaService . getDynamicSchema ( org . hisp . dhis . dataelement . DataElement . class ) ) ; org . hisp . dhis . query . Conjunction conjunction = query . conjunction ( ) ; conjunction . add ( org . hisp...
org . junit . Assert . assertEquals ( 0 , objects . size ( ) )
test2Crossing8Vertex ( ) { final org . kie . workbench . common . stunner . core . graph . processing . layout . sugiyama . GraphLayerImpl top = new org . kie . workbench . common . stunner . core . graph . processing . layout . sugiyama . GraphLayerImpl ( 0 ) ; top . addNewVertex ( "A" ) ; top . addNewVertex ( "B" ) ;...
org . junit . Assert . assertEquals ( 2 , result )
testBufferOverflow ( ) { int port = org . fluentd . logger . util . MockFluentd . randomPort ( ) ; org . fluentd . logger . util . MockFluentd fluentd = new org . fluentd . logger . util . MockFluentd ( port , new org . fluentd . logger . util . MockFluentd . MockProcess ( ) { public void process ( org . msgpack . Mess...
org . junit . Assert . assertFalse ( success )
listArrayIndexOutOfBoundsShouldResolveAsEmpty ( ) { com . github . jknack . handlebars . Handlebars handlebars = new com . github . jknack . handlebars . Handlebars ( ) ; com . github . jknack . handlebars . Template template = handlebars . compileInline ( "{{list.[10]}}" ) ; java . util . Map < java . lang . String , ...
org . junit . Assert . assertEquals ( "" , template . apply ( context ) )
testSerialization ( ) { org . jfree . data . general . DefaultPieDataset d1 = new org . jfree . data . general . DefaultPieDataset ( ) ; d1 . setValue ( "C1" , new java . lang . Double ( 234.2 ) ) ; d1 . setValue ( "C2" , null ) ; d1 . setValue ( "C3" , new java . lang . Double ( 345.9 ) ) ; d1 . setValue ( "C4" , new ...
org . junit . Assert . assertEquals ( d1 , d2 )
size_cyclophane_even ( ) { int [ ] [ ] cyclophane_even = org . openscience . cdk . graph . InitialCyclesTest . cyclophane_even ( ) ; org . openscience . cdk . graph . VertexShortCycles vsc = new org . openscience . cdk . graph . VertexShortCycles ( cyclophane_even ) ; "<AssertPlaceHolder>" ; } size ( ) { return this . ...
org . junit . Assert . assertThat ( vsc . size ( ) , org . hamcrest . CoreMatchers . is ( 3 ) )
testGradient ( ) { cn . edu . hit . ir . JNN . Model m = new cn . edu . hit . ir . JNN . Model ( ) ; cn . edu . hit . ir . JNN . Trainers . SimpleSGDTrainer sgd = new cn . edu . hit . ir . JNN . Trainers . SimpleSGDTrainer ( m ) ; cn . edu . hit . ir . JNN . ComputationGraph cg = new cn . edu . hit . ir . JNN . Computa...
org . junit . Assert . assertEquals ( true , m . gradientCheck ( ) )
testDefaultPipelineIsUsedWhenSetInConfiguration ( ) { resetSingleton ( ) ; try ( org . neo4j . graphdb . Transaction tx = getDatabase ( ) . beginTx ( ) ) { getNLPManager ( ) . setDefaultPipeline ( TextProcessor . DEFAULT_PIPELINE ) ; getNLPManager ( ) . annotateTextAndPersist ( "some<sp>text" , "id1" , null , null , fa...
org . junit . Assert . assertTrue ( true )
testScriptField ( ) { com . liferay . portal . search . script . ScriptField scriptField = com . liferay . portal . search . script . test . ScriptsInstantiationTest . _scripts . scriptField ( "field" , com . liferay . portal . search . script . test . ScriptsInstantiationTest . _scripts . script ( "Math.min(1,<sp>1)" ...
org . junit . Assert . assertNotNull ( scriptField )
testField ( ) { org . apache . openjpa . meta . FieldMetaData . MemberProvider b = new org . apache . openjpa . meta . FieldMetaData . MemberProvider ( getClass ( ) . getDeclaredField ( "field" ) ) ; org . apache . openjpa . meta . FieldMetaData . MemberProvider b2 = roundtrip ( b ) ; "<AssertPlaceHolder>" ; } getMembe...
org . junit . Assert . assertEquals ( b . getMember ( ) , b2 . getMember ( ) )
shouldInstantiateFieldWithPrivateDefaultConstructor ( ) { org . mockito . internal . util . reflection . FieldInitializer fieldInitializer = new org . mockito . internal . util . reflection . FieldInitializer ( this , this . getClass ( ) . getDeclaredField ( "privateDefaultConstructor" ) ) ; "<AssertPlaceHolder>" ; } i...
org . junit . Assert . assertNotNull ( fieldInitializer . initialize ( ) )
whenInitializedWithDeclarationAndThenInitalizationUsingUserInputs_thenCorrect ( ) { java . io . InputStream is = new java . io . ByteArrayInputStream ( "1<sp>2<sp>3<sp>4<sp>5<sp>6<sp>7<sp>8<sp>9" . getBytes ( ) ) ; java . lang . System . setIn ( is ) ; "<AssertPlaceHolder>" ; java . lang . System . setIn ( System . in ...
org . junit . Assert . assertArrayEquals ( new int [ ] [ ] { new int [ ] { 1 , 2 } , new int [ ] { 3 , 4 , 5 } , new int [ ] { 6 , 7 , 8 , 9 } } , obj . declarationAndThenInitializationUsingUserInputs ( ) )
testGetWebAppRootURL ( ) { java . lang . String returnValue = xaConfigUtil . getWebAppRootURL ( ) ; "<AssertPlaceHolder>" ; } getWebAppRootURL ( ) { return webappRootURL ; }
org . junit . Assert . assertEquals ( returnValue , xaConfigUtil . webappRootURL )
testCompareLess ( ) { int result = com . annimon . stream . Objects . compare ( 10 , 20 , com . annimon . stream . Functions . naturalOrder ( ) ) ; "<AssertPlaceHolder>" ; } naturalOrder ( ) { return new java . util . Comparator < java . lang . Integer > ( ) { @ com . annimon . stream . Override public int compare ( ja...
org . junit . Assert . assertEquals ( ( - 1 ) , result )
testReadExtended ( ) { org . switchyard . config . model . composite . CompositeModel cm = org . switchyard . config . model . composite . CompositeModelTests . _puller . pull ( org . switchyard . config . model . composite . CompositeModelTests . EXTENDED_XML , getClass ( ) ) ; org . switchyard . config . model . comp...
org . junit . Assert . assertEquals ( "bar" , bim . getFoo ( ) )
testForm_02 ( ) { org . apache . jena . sparql . sse . Item item = org . apache . jena . sparql . sse . SSE . parse ( "(base<sp><http://example/>)" ) ; "<AssertPlaceHolder>" ; } parse ( java . lang . String ) { return org . apache . jena . sparql . sse . SSE . parse ( str , null ) ; }
org . junit . Assert . assertNull ( item )
testApplyStyle ( ) { java . util . TreeMap < org . odftoolkit . odfdom . dom . style . props . OdfStyleProperty , java . lang . String > searchProps = new java . util . TreeMap < org . odftoolkit . odfdom . dom . style . props . OdfStyleProperty , java . lang . String > ( ) ; searchProps . put ( StyleTextPropertiesElem...
org . junit . Assert . assertTrue ( ( i == j ) )
testGetParameters ( ) { java . lang . Long personId = 2L ; org . lnu . is . domain . person . Person person = new org . lnu . is . domain . person . Person ( ) ; person . setId ( personId ) ; java . lang . Long languageId = 3L ; org . lnu . is . domain . language . Language language = new org . lnu . is . domain . lang...
org . junit . Assert . assertEquals ( expected , actual )
testGetInstanceFromFactory ( ) { org . irods . jargon . core . connection . IRODSAccount irodsAccount = org . irods . jargon . core . pub . CollectionAndDataObjectListAndSearchAOImplTest . testingPropertiesHelper . buildIRODSAccountFromTestProperties ( org . irods . jargon . core . pub . CollectionAndDataObjectListAndS...
org . junit . Assert . assertNotNull ( actual )
escapeJSON_f ( ) { java . lang . String input = "\f" ; java . lang . String escaped = org . oscm . json . EscapeUtils . escapeJSON ( input ) ; "<AssertPlaceHolder>" ; } escapeJSON ( java . lang . String ) { if ( aText == null ) { return null ; } final java . lang . StringBuilder result = new java . lang . StringBuilder...
org . junit . Assert . assertEquals ( "\\f" , escaped )
genotypeInformationTest ( ) { this . patientEdit . expandGenotypeInformation ( ) ; this . patientEdit . openNewEntryListOfCandidateGenes ( ) ; "<AssertPlaceHolder>" ; this . patientEdit . setGeneCandidateComment ( "Genes" ) ; this . patientEdit . openNewEntryPreviouslyTested ( ) ; } checkGeneCandidateSearchHideSuggesti...
org . junit . Assert . assertTrue ( ( ( this . patientEdit . checkGeneCandidateSearchHideSuggestions ( "a" ) ) > 0 ) )
testSortingOnModTime ( ) { java . lang . String testBasePath = ( ( ( org . apache . flink . hdfstests . ContinuousFileProcessingTest . hdfsURI ) + "/" ) + ( java . util . UUID . randomUUID ( ) ) ) + "/" ; final long [ ] modTimes = new long [ org . apache . flink . hdfstests . ContinuousFileProcessingTest . NO_OF_FILES ...
org . junit . Assert . assertEquals ( splits . length , context . getCounter ( ) )
test_getAllRelationTags ( ) { "<AssertPlaceHolder>" ; } getAllBuildingTags ( ) { final java . util . List < io . github . data4all . model . data . Tag > result = new java . util . ArrayList < io . github . data4all . model . data . Tag > ( ) ; for ( io . github . data4all . model . data . Tag t : io . github . data4al...
org . junit . Assert . assertEquals ( 4 , io . github . data4all . model . data . Tags . getAllBuildingTags ( ) . size ( ) )
testIndexer ( ) { java . io . File indexDirectory = testFolder . newFolder ( ) ; java . lang . String indexDirectoryName = indexDirectory . getPath ( ) ; ner_dictionary . indexing . Indexer indexer = new ner_dictionary . indexing . Indexer ( indexDirectoryName ) ; "<AssertPlaceHolder>" ; } getIndexWriter ( ) { return t...
org . junit . Assert . assertNotNull ( indexer . getIndexWriter ( ) )
testGetHex ( ) { byte [ ] raw = new byte [ ] { 0 , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 10 , 11 , 12 , 13 , 14 , 15 , 16 } ; java . lang . String expResult = "000102030405060708090a0b0c0d0e0f10" ; java . lang . String result = org . owasp . dependencycheck . utils . Checksum . getHex ( raw ) ; "<AssertPlaceHolder>" ; } ...
org . junit . Assert . assertEquals ( expResult , result )
testConvertAll ( ) { java . lang . Long id = 1L ; java . lang . Long departmentId = 2L ; java . lang . Long specialtyId = 3L ; org . lnu . is . domain . specialty . Specialty specialty = new org . lnu . is . domain . specialty . Specialty ( ) ; specialty . setId ( specialtyId ) ; org . lnu . is . domain . department . ...
org . junit . Assert . assertEquals ( expecteds , actual )
testFtpCommandsOneCommandWithComma ( ) { java . lang . String inputString = ",quote<sp>SITE<sp>RDW<sp>READTAPEFORMAT=V" ; java . lang . String [ ] expected = new java . lang . String [ ] { "quote<sp>SITE<sp>RDW<sp>READTAPEFORMAT=V" } ; java . lang . String [ ] cmds = org . apache . sqoop . util . MainframeFTPClientUtil...
org . junit . Assert . assertArrayEquals ( cmds , expected )
initFromPackageWithoutAnnotatedClasses ( ) { org . apache . olingo . odata2 . annotation . processor . core . datasource . AnnotationInMemoryDs ds = new org . apache . olingo . odata2 . annotation . processor . core . datasource . AnnotationInMemoryDs ( this . getClass ( ) . getPackage ( ) . getName ( ) , false ) ; "<A...
org . junit . Assert . assertNotNull ( ds )
testSize ( ) { org . apache . tajo . datum . Datum d = org . apache . tajo . datum . DatumFactory . createBit ( ( ( byte ) ( 1 ) ) ) ; "<AssertPlaceHolder>" ; } size ( ) { return casesMap . size ( ) ; }
org . junit . Assert . assertEquals ( 1 , d . size ( ) )
testHasEditableColumns ( ) { final org . drools . workbench . screens . guided . dtable . client . widget . table . GuidedDecisionTablePresenter . Access access = mock ( GuidedDecisionTablePresenter . Access . class ) ; doReturn ( access ) . when ( dtPresenter ) . getAccess ( ) ; doReturn ( true ) . when ( access ) . h...
org . junit . Assert . assertTrue ( hasEditableColumns )