input
stringlengths
28
18.7k
output
stringlengths
39
1.69k
getPartsShouldReturnCurrentPart ( ) { "<AssertPlaceHolder>" ; } getParts ( ) { return java . util . Collections . unmodifiableSet ( partTabIndex . keySet ( ) ) ; }
org . junit . Assert . assertFalse ( view . getParts ( ) . isEmpty ( ) )
testEquals ( ) { org . talend . designer . xmlmap . model . emf . xmlmap . XmlMapData data1 = XmlmapFactory . eINSTANCE . createXmlMapData ( ) ; org . talend . designer . xmlmap . model . emf . xmlmap . XmlMapData data2 = XmlmapFactory . eINSTANCE . createXmlMapData ( ) ; "<AssertPlaceHolder>" ; test1 ( ) ; test2 ( ) ;...
org . junit . Assert . assertTrue ( data1 . equals ( data2 ) )
shouldCoerceATargetWithASingleFlavor ( ) { com . facebook . buck . core . model . BuildTarget seen = new com . facebook . buck . rules . coercer . BuildTargetTypeCoercer ( unconfiguredBuildTargetTypeCoercer ) . coerce ( createCellRoots ( filesystem ) , filesystem , basePath , EmptyTargetConfiguration . INSTANCE , "//fo...
org . junit . Assert . assertEquals ( com . facebook . buck . core . model . BuildTargetFactory . newInstance ( "//foo:bar#baz" ) , seen )
testIntersectionWithTwoContainedElementsReversed ( ) { org . antlr . misc . IntervalSet s = org . antlr . misc . IntervalSet . of ( 10 , 20 ) ; org . antlr . misc . IntervalSet s2 = org . antlr . misc . IntervalSet . of ( 2 , 2 ) ; s2 . add ( 15 ) ; s2 . add ( 18 ) ; java . lang . String expecting = "{15,<sp>18}" ; jav...
org . junit . Assert . assertEquals ( result , expecting )
testRemoveValidatorLatitudeNonExist ( ) { "<AssertPlaceHolder>" ; } removeValidator ( com . tech . configurations . tools . ValidationScopes , int ) { if ( i == 0 ) { return false ; } switch ( scope ) { case LONGITUDE : if ( ( com . tech . models . dtos . chatroom . ChatroomCheckInsideDTO . LONGITUDE_VALIDATORS . size ...
org . junit . Assert . assertFalse ( com . tech . models . dtos . chatroom . ChatroomCheckInsideDTO . removeValidator ( ValidationScopes . LATITUDE , 20 ) )
testCreate_modifires ( ) { com . github . mygreen . supercsv . builder . BeanMapping < com . github . mygreen . supercsv . builder . BeanMappingFactoryTest . AllModifiresBean > beanMapping = factory . create ( com . github . mygreen . supercsv . builder . BeanMappingFactoryTest . AllModifiresBean . class , groupEmpty )...
org . junit . Assert . assertThat ( beanMapping . getColumns ( ) )
testSomeMethod ( ) { byte [ ] testArray = org . spf4j . base . Base64Test . generateTestArray ( 2048 ) ; java . lang . String encodeBase64 = org . spf4j . base . Base64 . encodeBase64 ( testArray ) ; byte [ ] parseBase64 = org . spf4j . base . Base64 . decodeBase64 ( encodeBase64 ) ; "<AssertPlaceHolder>" ; } decodeBas...
org . junit . Assert . assertArrayEquals ( testArray , parseBase64 )
testCreateConnectionCallUnknwonUser ( ) { org . apache . qpid . jms . JmsConnectionFactory factory = new org . apache . qpid . jms . JmsConnectionFactory ( getBrokerAmqpConnectionURI ( ) ) ; connection = factory . createQueueConnection ( "unknown" , "unknown" ) ; "<AssertPlaceHolder>" ; connection . start ( ) ; } creat...
org . junit . Assert . assertNotNull ( connection )
testCheckAndMutateWithBuilder ( ) { try ( org . apache . hadoop . hbase . client . Table table = createTable ( ) ) { putOneRow ( table ) ; getOneRowAndAssertAllExist ( table ) ; org . apache . hadoop . hbase . client . RowMutations rm = makeRowMutationsWithColumnCDeleted ( ) ; boolean res = table . checkAndMutate ( org...
org . junit . Assert . assertTrue ( res )
validIntegerGreaterThanConstraintShouldNotCreateViolations ( ) { java . util . Set < javax . validation . ConstraintViolation < org . alien4cloud . tosca . model . definitions . PropertyDefinition > > violations = validator . validate ( createGreaterThanDefinition ( ToscaTypes . INTEGER . toString ( ) , 42 ) , alien4cl...
org . junit . Assert . assertEquals ( 0 , violations . size ( ) )
testEmpty ( ) { formatter = new org . apache . accumulo . shell . format . DeleterFormatter ( writer , java . util . Collections . < org . apache . accumulo . core . data . Key , org . apache . accumulo . core . data . Value > emptyMap ( ) . entrySet ( ) , new org . apache . accumulo . core . util . format . FormatterC...
org . junit . Assert . assertFalse ( formatter . hasNext ( ) )
testRecordinality ( ) { final int numRuns = 10000 ; final int [ ] kSizes = new int [ ] { 4 , 8 , 16 , 32 , 64 , 128 , 256 , 512 } ; final java . lang . String msnd = "/midsummer-nights-dream-gutenberg.txt" ; final java . net . URI uri = getClass ( ) . getResource ( msnd ) . toURI ( ) ; final java . util . List < java ....
org . junit . Assert . assertTrue ( ( ( result . stdError ) <= ( errorBounds [ errorBoundIdx ] ) ) )
testRetryMaxAttemptsFileAuditDisabled ( ) { datawave . microservice . audit . AuditServiceTest . isFileAuditEnabled = false ; int maxAttempts = 2 ; long backoffIntervalMillis = 50L ; datawave . microservice . audit . config . AuditProperties . Retry retry = new datawave . microservice . audit . config . AuditProperties...
org . junit . Assert . assertTrue ( ( ( stopTimeMillis - startTimeMillis ) >= ( maxAttempts * backoffIntervalMillis ) ) )
testEquals_equalsWithSameValues ( ) { org . eclipse . rap . rwt . template . Position position1 = new org . eclipse . rap . rwt . template . Position ( 3.14F , 42 ) ; org . eclipse . rap . rwt . template . Position position2 = new org . eclipse . rap . rwt . template . Position ( 3.14F , 42 ) ; "<AssertPlaceHolder>" ; ...
org . junit . Assert . assertTrue ( position1 . equals ( position2 ) )
serialize ( ) { com . google . gson . Gson gson = com . github . seratch . jslack . common . json . GsonFactory . createSnakeCase ( ) ; com . github . seratch . jslack . api . model . event . GridMigrationStartedEvent event = new com . github . seratch . jslack . api . model . event . GridMigrationStartedEvent ( ) ; ja...
org . junit . Assert . assertThat ( generatedJson , org . hamcrest . CoreMatchers . is ( expectedJson ) )
shouldGPS ( ) { java . lang . String regex = "([0-9]{3}\\.[0-9]{3}\\,[0-9]{3}\\.[0-9]{3})" ; for ( int i = 0 ; i < 100 ; i ++ ) { java . lang . String text = com . github . jsonzou . jmockdata . util . RandomUtils . nextStringFromRegex ( regex ) ; System . out . println ( text ) ; "<AssertPlaceHolder>" ; } } nextString...
org . junit . Assert . assertTrue ( text . matches ( regex ) )
testJDBCSQLVTI ( ) { java . lang . String sql = java . lang . String . format ( ( "select<sp>*<sp>from<sp>table<sp>(JDBCSQLVTI('jdbc:splice://localhost:1527/splicedb;create=true;" + ( "user=splice;password=admin',<sp>" + "'select<sp>*<sp>from<sp>%s.%s'))a" ) ) , com . splicemachine . derby . impl . sql . execute . oper...
org . junit . Assert . assertEquals ( 2 , count )
addMultiWordCrossFailTest ( ) { this . crossword . addWord ( new de . unima . dws . semanta . crossword . model . HAWord ( new de . unima . dws . semanta . model . HAEntity ( null , "test" , null , null , null ) ) , 0 , 1 , 3 , 1 ) ; this . crossword . addWord ( new de . unima . dws . semanta . crossword . model . HAWo...
org . junit . Assert . assertEquals ( 1 , this . crossword . size ( ) )
testFindByPrimaryKeyExisting ( ) { com . liferay . asset . tag . stats . model . AssetTagStats newAssetTagStats = addAssetTagStats ( ) ; com . liferay . asset . tag . stats . model . AssetTagStats existingAssetTagStats = _persistence . findByPrimaryKey ( newAssetTagStats . getPrimaryKey ( ) ) ; "<AssertPlaceHolder>" ; ...
org . junit . Assert . assertEquals ( existingAssetTagStats , newAssetTagStats )
testTaskRequestWithOldStartMsGetsUpdated ( ) { org . apache . kafka . common . utils . MockTime time = new org . apache . kafka . common . utils . MockTime ( 0 , 0 , 0 ) ; org . apache . kafka . common . utils . Scheduler scheduler = new org . apache . kafka . common . utils . MockScheduler ( time ) ; try ( org . apach...
org . junit . Assert . assertEquals ( expectedState , resp )
listenerExceptionAddAfterRunTest ( ) { org . threadly . test . concurrent . TestRunnable listener = new org . threadly . concurrent . TestRuntimeFailureRunnable ( ) ; org . threadly . concurrent . future . ListenableFutureTask < java . lang . Object > future = makeFutureTask ( org . threadly . concurrent . DoNothingRun...
org . junit . Assert . assertTrue ( listener . ranOnce ( ) )
connectRepositoryAuthenticationInfo ( ) { this . wagon . connect ( this . repository , this . authenticationInfo ) ; "<AssertPlaceHolder>" ; verify ( this . sessionListenerSupport ) . fireSessionOpening ( ) ; verify ( this . wagon ) . connectToRepository ( this . repository , this . authenticationInfo , null ) ; verify...
org . junit . Assert . assertEquals ( this . repository , this . wagon . getRepository ( ) )
test_Issuer_Derived_Inequality ( ) { com . ripple . core . coretypes . Amount a = com . ripple . core . AmountTest . amt ( "1/USD/rNDKeo9RrCiRdfsMG8AdoZvNZxHASGzbZL" ) ; com . ripple . core . coretypes . Amount b = com . ripple . core . AmountTest . amt ( "1/USD/rH5aWQJ4R7v4Mpyf4kDBUvDFT5cbpFq3XP" ) ; "<AssertPlaceHold...
org . junit . Assert . assertFalse ( a . equals ( b ) )
getAccessInfos ( ) { final java . lang . String id = "asyncSubscriptionId" ; subscribeAsync ( id ) ; java . lang . String orgId = tpAndSupplier . getOrganizationId ( ) ; container . login ( java . lang . String . valueOf ( supplierUser . getKey ( ) ) , org . oscm . subscriptionservice . dao . ROLE_TECHNOLOGY_MANAGER ) ...
org . junit . Assert . assertEquals ( 1 , result . size ( ) )
testValidateSignedZip ( ) { boolean result = zipValidator . validateZipFile ( org . codice . ddf . catalog . transformer . zip . ZipValidatorTest . SIGNED_ZIP_PATH ) ; "<AssertPlaceHolder>" ; } validateZipFile ( java . lang . String ) { try ( java . util . jar . JarFile jarFile = new java . util . jar . JarFile ( fileP...
org . junit . Assert . assertThat ( result , org . hamcrest . CoreMatchers . is ( true ) )
sharedPaymentMethodToken ( ) { com . braintreegateway . integrationtest . BraintreeGateway sharerGateway = new com . braintreegateway . integrationtest . BraintreeGateway ( Environment . DEVELOPMENT , "integration_merchant_public_id" , "oauth_app_partner_user_public_key" , "oauth_app_partner_user_private_key" ) ; com ....
org . junit . Assert . assertTrue ( result . isSuccess ( ) )
testIsComplexType ( ) { "<AssertPlaceHolder>" ; } isComplexType ( ) { return true ; }
org . junit . Assert . assertFalse ( this . simple . isComplexType ( ) )
testToDBObject_Expression ( ) { final org . apache . rya . mongodb . document . visibility . DocumentVisibility dv = new org . apache . rya . mongodb . document . visibility . DocumentVisibility ( "A&B&C" ) ; final com . mongodb . BasicDBObject dbObject = org . apache . rya . mongodb . document . visibility . DocumentV...
org . junit . Assert . assertEquals ( expected , dbObject )
testExpireAt ( ) { org . redisson . api . RSetCache < java . lang . String > cache = redisson . getSetCache ( "simple" ) ; cache . add ( "8" , 1 , TimeUnit . SECONDS ) ; cache . expireAt ( ( ( java . lang . System . currentTimeMillis ( ) ) + 100 ) ) ; java . lang . Thread . sleep ( 500 ) ; "<AssertPlaceHolder>" ; cache...
org . junit . Assert . assertEquals ( 0 , cache . size ( ) )
testExpressionLikeLangauge ( ) { org . eclipse . xtend2 . lib . StringConcatenation _builder = new org . eclipse . xtend2 . lib . StringConcatenation ( ) ; _builder . append ( "grammar<sp>test<sp>with<sp>org.eclipse.xtext.common.Terminals<sp>generate<sp>test<sp>\'http://test\'" ) ; java . lang . String grammar = _build...
org . junit . Assert . assertEquals ( 0 , this . features ( classifier ) . size ( ) )
qlAddressBeginswithAndSexFulltext ( ) { java . lang . String sqlite = "SELECT<sp>*<sp>FROM<sp>users<sp>WHERE<sp>(address<sp>LIKE<sp>'D%'<sp>and<sp>sex<sp>LIKE<sp>'%male%')<sp>LIMIT<sp>10" ; java . lang . String api = "select<sp>*<sp>where<sp>address<sp>=<sp>'D*'<sp>and<sp>sex<sp>contains<sp>'male'" ; org . apache . use...
org . junit . Assert . assertTrue ( response . toString ( ) , response . result ( ) )
templateTrailing$ ( ) { java . lang . String orig = ( com . sun . btrace . ArgsMapTest . KEY1 ) + "$" ; java . lang . String value = instance . template ( orig ) ; "<AssertPlaceHolder>" ; } template ( java . lang . String ) { if ( value == null ) { return null ; } if ( value . isEmpty ( ) ) { return value ; } java . ut...
org . junit . Assert . assertEquals ( orig , value )
cssMerge__when_merging_to_NULL_OBJECT_should_return_NULL_OBJECT2 ( ) { io . github . seleniumquery . by . secondgen . finder . CssFinder mergedCss = CssFinder . CSS_NOT_NATIVELY_SUPPORTED . merge ( io . github . seleniumquery . by . secondgen . finder . CssFinder . universalSelector ( ) ) ; "<AssertPlaceHolder>" ; } is...
org . junit . Assert . assertThat ( mergedCss , org . hamcrest . CoreMatchers . is ( CssFinder . CSS_NOT_NATIVELY_SUPPORTED ) )
defaultTest2 ( ) { com . zaxxer . hikari . HikariDataSource dataSource = new com . zaxxer . hikari . HikariDataSource ( ) ; dataSource . setDataSourceClassName ( com . navercorp . pinpoint . plugin . hikaricp . HikariCpIT . DATA_SOURCE_CLASS_NAME ) ; dataSource . addDataSourceProperty ( "url" , com . navercorp . pinpoi...
org . junit . Assert . assertNotNull ( connection )
testExpm1Definition ( ) { double epsilon = 3.0E-16 ; for ( int maxOrder = 0 ; maxOrder < 5 ; ++ maxOrder ) { org . hipparchus . analysis . differentiation . DSFactory factory = new org . hipparchus . analysis . differentiation . DSFactory ( 1 , maxOrder ) ; for ( double x = 0.1 ; x < 1.2 ; x += 0.001 ) { org . hipparch...
org . junit . Assert . assertEquals ( 0 , zero . getPartialDerivative ( n ) , epsilon )
createBlackTest ( ) { final net . violet . platform . datamodel . User mainUser = Factories . USER . find ( 1 ) ; final net . violet . platform . datamodel . User blackUser = Factories . USER . find ( 2 ) ; Factories . BLACK . createNewBlack ( mainUser , blackUser ) ; "<AssertPlaceHolder>" ; } getBlackList ( ) { if ( (...
org . junit . Assert . assertTrue ( mainUser . getBlackList ( ) . containsKey ( blackUser ) )
testGetP2RepURIFromCompFile_other ( ) { java . io . File compFile = java . io . File . createTempFile ( "testcomp.text" , null ) ; java . net . URI p2RepURI = org . talend . updates . runtime . utils . PathUtils . getP2RepURIFromCompFile ( compFile ) ; "<AssertPlaceHolder>" ; compFile . delete ( ) ; } getP2RepURIFromCo...
org . junit . Assert . assertNull ( p2RepURI )
serializeBroadcastSubscriptionRequest ( ) { java . lang . String subscriptionId = "1234" ; java . lang . String subscribedToName = "myEvent" ; testBroadcastInterface . LocationUpdateWithSpeedSelectiveBroadcastFilterParameters filterParameters = new testBroadcastInterface . LocationUpdateWithSpeedSelectiveBroadcastFilte...
org . junit . Assert . assertEquals ( broadcastSubscription , receivedbroadcastSubscription )
resolveArtifactWithLocalRepoFromSettings ( ) { java . lang . String localRepoPath = "target/local-repo-settings" ; java . lang . System . setProperty ( "org.ops4j.pax.url.mvn.settings" , "src/test/resources/settings-local-repo.xml" ) ; java . io . File localRepo = new java . io . File ( localRepoPath ) ; localRepo . mk...
org . junit . Assert . assertThat ( artifact . exists ( ) , org . hamcrest . CoreMatchers . is ( true ) )
findSmileysShouldFindTextWithOnlyASmiley ( ) { final java . util . List < net . usikkert . kouchat . android . smiley . Smiley > smileys = locator . findSmileys ( ":)" ) ; "<AssertPlaceHolder>" ; verifySmiley ( smileys , ":)" , 0 , 2 ) ; } size ( ) { return userList . size ( ) ; }
org . junit . Assert . assertEquals ( 1 , smileys . size ( ) )
escapeString ( ) { final java . lang . String [ ] testPairs = new java . lang . String [ ] { "" , "" , "plain<sp>string" , "plain<sp>string" , "string<sp>with<sp>\"quotes\"" , "string<sp>with<sp>\"quotes\"" , "string<sp>with<sp>'quotes'" , "string<sp>with<sp>'quotes'" , "string<sp>with<sp>'quotes'" , "string<sp>with<sp...
org . junit . Assert . assertEquals ( com . google . gerrit . server . ioutil . StringUtil . escapeString ( testPairs [ i ] ) , testPairs [ ( i + 1 ) ] )
testIfftshiftComplex_inplace ( ) { double [ ] shiftVectorTemp_EXPECTED = org . jlinda . core . utils . SpectralUtilsTest . shiftVector_EXPECTED . clone ( ) ; org . jblas . ComplexDoubleMatrix matrixCplx_ACTUAL = new org . jblas . ComplexDoubleMatrix ( new org . jblas . DoubleMatrix ( shiftVectorTemp_EXPECTED ) , new or...
org . junit . Assert . assertEquals ( matrixCplx_EXPECTED , matrixCplx_ACTUAL )
testEncryptDecrypt ( ) { com . google . crypto . tink . Aead aead = createInstance ( com . google . crypto . tink . subtle . Random . randBytes ( com . google . crypto . tink . subtle . XChaCha20Poly1305Test . KEY_SIZE ) ) ; for ( int i = 0 ; i < 100 ; i ++ ) { byte [ ] message = com . google . crypto . tink . subtle ....
org . junit . Assert . assertArrayEquals ( message , decrypted )
pluralFormOne ( ) { final org . apache . isis . applib . services . i18n . TranslatableString ts = org . apache . isis . applib . services . i18n . TranslatableString . trn ( "You<sp>can't<sp>do<sp>that<sp>because<sp>there<sp>is<sp>a<sp>dependent<sp>object" , "You<sp>can't<sp>do<sp>that<sp>because<sp>there<sp>are<sp>de...
org . junit . Assert . assertThat ( ts . getPattern ( ) , org . hamcrest . CoreMatchers . is ( "You<sp>can't<sp>do<sp>that<sp>because<sp>there<sp>is<sp>a<sp>dependent<sp>object" ) )
testEncryptDecrypt ( ) { com . google . crypto . tink . Aead aead = getAead ( com . google . crypto . tink . subtle . Random . randBytes ( 16 ) , com . google . crypto . tink . subtle . Random . randBytes ( 16 ) , 16 , 16 , "HMACSHA256" ) ; byte [ ] plaintext = com . google . crypto . tink . subtle . Random . randBytes...
org . junit . Assert . assertArrayEquals ( plaintext , plaintext1 )
shouldSumStrengthsOfConstituents ( ) { org . pitest . highwheel . model . Dependency testee = new org . pitest . highwheel . model . Dependency ( ) ; org . pitest . highwheel . model . AccessPoint source = org . pitest . highwheel . model . AccessPoint . create ( org . pitest . highwheel . model . ElementName . fromStr...
org . junit . Assert . assertEquals ( ( ( AccessType . COMPOSED . getStrength ( ) ) + ( AccessType . USES . getStrength ( ) ) ) , testee . getStrength ( ) )
testJoinRemovedAsParent ( ) { final J instance = getJoiningInstance ( "instance" ) ; final org . apache . oozie . fluentjob . api . dag . NodeBase child = new org . apache . oozie . fluentjob . api . dag . ExplicitNode ( "child" , null ) ; child . addParent ( instance ) ; child . removeParent ( instance ) ; "<AssertPla...
org . junit . Assert . assertEquals ( null , instance . getChild ( ) )
testGetBandDataType_uint8 ( ) { product . addBand ( "unsigned" , ProductData . TYPE_UINT8 ) ; final org . esa . beam . dataio . bigtiff . internal . TiffIFD tiffIFD = new org . esa . beam . dataio . bigtiff . internal . TiffIFD ( product ) ; "<AssertPlaceHolder>" ; } getBandDataType ( ) { return maxElemSizeBandDataType...
org . junit . Assert . assertEquals ( ProductData . TYPE_UINT8 , tiffIFD . getBandDataType ( ) )
whenPerformBinomialOnTwoIntegerValues_shouldReturnResultIfUnderInt ( ) { int result = com . google . common . math . IntMath . binomial ( 6 , 3 ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertEquals ( 20 , result )
testGetDocument ( ) { cache . add ( list ) ; "<AssertPlaceHolder>" ; } getDocument ( ) { com . findwise . hydra . local . LocalDocument doc = new com . findwise . hydra . local . LocalDocument ( ) ; doc . putContentField ( "in1" , "in1" ) ; doc . putContentField ( "in2" , "in2" ) ; doc . putContentField ( "in3" , "in3"...
org . junit . Assert . assertNotNull ( cache . getDocument ( ) )
testNamedKieBase ( ) { org . kie . api . KieBase kieBase = org . kie . spring . tests . KieSpringImportKieTest . context . getBean ( "kbase1" , org . kie . api . KieBase . class ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertNotNull ( kieBase )
testUnionPlan ( ) { org . apache . tajo . storage . fragment . FileFragment [ ] frags = org . apache . tajo . engine . planner . physical . StorageManager . splitNG ( org . apache . tajo . engine . planner . physical . TestPhysicalPlanner . conf , "employee" , org . apache . tajo . engine . planner . physical . TestPhy...
org . junit . Assert . assertEquals ( 200 , count )
playerQualifiesWithNoUserIDReturnsFalse ( ) { when ( linker . getUserID ( player ) ) . thenReturn ( "" ) ; "<AssertPlaceHolder>" ; } playerQualifies ( org . bukkit . entity . Player , org . communitybridge . achievement . PlayerAchievementState ) { return false ; }
org . junit . Assert . assertFalse ( achievement . playerQualifies ( player , state ) )
testParseCookieMissingValue1 ( ) { final org . apache . hc . client5 . http . impl . cookie . RFC6265CookieSpec cookiespec = new org . apache . hc . client5 . http . impl . cookie . RFC6265CookieSpec ( ) ; final org . apache . hc . core5 . http . Header header = new org . apache . hc . core5 . http . message . BasicHea...
org . junit . Assert . assertEquals ( 0 , cookies . size ( ) )
testMember ( ) { org . gitlab4j . api . models . Member member = org . gitlab4j . api . JsonUtils . unmarshalResource ( org . gitlab4j . api . models . Member . class , "member.json" ) ; "<AssertPlaceHolder>" ; } compareJson ( T , java . lang . String ) { java . io . InputStreamReader reader = new java . io . InputStre...
org . junit . Assert . assertTrue ( org . gitlab4j . api . JsonUtils . compareJson ( member , "member.json" ) )
testArchiveZipLive ( ) { underTest . setArchive ( true ) ; underTest . setArxStreamFactory ( new org . dataconservancy . packaging . tool . impl . ZipArchiveStreamFactory ( ) ) ; java . io . ByteArrayOutputStream result = new java . io . ByteArrayOutputStream ( ) ; underTest . serialize ( state , StreamId . APPLICATION...
org . junit . Assert . assertTrue ( ( ( result . size ( ) ) > 1 ) )
testDeleteTenant ( ) { org . thingsboard . server . common . data . Tenant tenant = new org . thingsboard . server . common . data . Tenant ( ) ; tenant . setTitle ( "My<sp>tenant" ) ; org . thingsboard . server . common . data . Tenant savedTenant = tenantService . saveTenant ( tenant ) ; tenantService . deleteTenant ...
org . junit . Assert . assertNull ( foundTenant )
testGetDatasourceFullWithLargeInterval ( ) { java . util . Map < java . lang . String , java . lang . Object > actual = resource . getDatasource ( dataSource , "m3" 7 , "m3" 3 ) ; java . util . Map < java . lang . String , java . lang . Object > expected = com . google . common . collect . ImmutableMap . < java . lang ...
org . junit . Assert . assertEquals ( expected , actual )
testAutoLongKeys ( ) { com . google . appengine . api . datastore . Key parent = com . dotweblabs . twirl . object . KeyStructure . createKey ( "TestKind" , com . dotweblabs . twirl . object . KeyStructure . autoLongId ( "TestKind" ) ) ; "<AssertPlaceHolder>" ; } autoLongId ( java . lang . String ) { return com . googl...
org . junit . Assert . assertNotNull ( parent )
testSubEpochs ( ) { System . out . println ( "getSubEpochs" ) ; jsat . classifiers . svm . extended . AMM instance = new jsat . classifiers . svm . extended . AMM ( ) ; instance . setSubEpochs ( 10 ) ; "<AssertPlaceHolder>" ; for ( int i = - 3 ; i < 1 ; i ++ ) try { instance . setSubEpochs ( i ) ; org . junit . Assert ...
org . junit . Assert . assertEquals ( 10 , instance . getSubEpochs ( ) )
testGetLoadSchemasCatalogs ( ) { classUnderTest . setLoadSchemasCatalogs ( true ) ; "<AssertPlaceHolder>" ; } getLoadSchemasCatalogs ( ) { return _loadSchemasCatalogs ; }
org . junit . Assert . assertEquals ( true , classUnderTest . getLoadSchemasCatalogs ( ) )
shouldSerializeGenericClass ( ) { java . lang . String expectedResult = "{\"genericWrapper\":{\"entityList\":[{\"name\":\"washington<sp>botelho\"},{\"name\":\"washington<sp>botelho\"}],\"total\":2}}" ; java . util . Collection < br . com . caelum . vraptor . serialization . gson . GsonJSONSerializationTest . Client > e...
org . junit . Assert . assertThat ( result ( ) , org . hamcrest . Matchers . is ( org . hamcrest . Matchers . equalTo ( expectedResult ) ) )
wrapTest ( ) { cn . hutool . core . io . IORuntimeException e = cn . hutool . core . exceptions . ExceptionUtil . wrap ( new java . io . IOException ( ) , cn . hutool . core . io . IORuntimeException . class ) ; "<AssertPlaceHolder>" ; } wrap ( java . lang . Throwable , java . lang . Class ) { if ( wrapThrowable . isIn...
org . junit . Assert . assertNotNull ( e )
givenHashtable_whenModifyUnderlyingCollection_thenItHasNoEffectOnIteratedCollection ( ) { java . util . Hashtable < java . lang . String , java . lang . String > table = new java . util . Hashtable < java . lang . String , java . lang . String > ( ) ; table . put ( "key1" , "value1" ) ; table . put ( "key2" , "value2" ...
org . junit . Assert . assertEquals ( 2 , keysSelected . size ( ) )
shouldHandleCharacterWhenCaseSensitive ( ) { content = "<sp>and" ; makeCaseSensitive ( ) ; tokens . consume ( "" ) ; tokens . consume ( "and" ) ; "<AssertPlaceHolder>" ; } hasNext ( ) { return ( index ) < ( size ) ; }
org . junit . Assert . assertThat ( tokens . hasNext ( ) , org . hamcrest . core . Is . is ( false ) )
testExecuteMetGewijzigdeCategorieen ( ) { final java . util . Map < java . lang . String , java . lang . Object > parameters = new java . util . HashMap ( ) ; final nl . bzk . migratiebrp . bericht . model . lo3 . impl . Tb02Bericht bericht = tb02Factory . maakTb02Bericht ( Tb02Factory . Soort . OMZETTING_INCORRECT ) ;...
org . junit . Assert . assertFalse ( result . isEmpty ( ) )
test8 ( ) { com . creactiviti . piper . core . MapObject mo = new com . creactiviti . piper . core . MapObject ( java . util . Collections . singletonMap ( "hello" , "world" ) ) { } ; "<AssertPlaceHolder>" ; } get ( javax . servlet . http . HttpServletRequest ) { java . lang . String path = ( ( java . lang . String ) (...
org . junit . Assert . assertEquals ( "world" , mo . get ( "hello" ) )
testEmptyItemEquals ( ) { com . vaadin . v7 . data . util . PropertysetItem item1 = createPropertySetItem ( ) ; com . vaadin . v7 . data . util . PropertysetItem item2 = createPropertySetItem ( ) ; "<AssertPlaceHolder>" ; } equals ( java . lang . Object ) { if ( ( this ) == obj ) { return true ; } else if ( obj instanc...
org . junit . Assert . assertTrue ( item1 . equals ( item2 ) )
testRecommendPatterns_secondPattern_twoDates ( ) { java . util . List < java . lang . String [ ] > patternCombinations = org . esa . snap . opendap . utils . PatternProvider . recommendPatterns ( "sth__20100101_192345_20110101_192345.nc" ) ; "<AssertPlaceHolder>" ; org . esa . snap . opendap . utils . PatternProviderTe...
org . junit . Assert . assertTrue ( ( ( patternCombinations . size ( ) ) >= 6 ) )
getDetails ( ) { final java . lang . String instanceName = getRyaInstanceName ( ) ; final org . apache . rya . api . client . Install . InstallConfiguration installConfig = org . apache . rya . api . client . Install . InstallConfiguration . builder ( ) . setEnableTableHashPrefix ( true ) . setEnableEntityCentricIndex ...
org . junit . Assert . assertEquals ( expectedDetails , details . get ( ) )
testFilteredNodeIterator ( ) { java . util . HashSet < org . graphstream . graph . Node > expected = new java . util . HashSet < org . graphstream . graph . Node > ( ) ; java . util . HashSet < org . graphstream . graph . Node > reached = new java . util . HashSet < org . graphstream . graph . Node > ( ) ; org . graphs...
org . junit . Assert . assertEquals ( expected , reached )
testElasticIndex ( ) { com . msd . gin . halyard . sail . HBaseSailConfig cfg = new com . msd . gin . halyard . sail . HBaseSailConfig ( ) ; cfg . setElasticIndexURL ( "http://localhost:12345/index" ) ; "<AssertPlaceHolder>" ; } getElasticIndexURL ( ) { return elasticIndexURL ; }
org . junit . Assert . assertEquals ( "http://localhost:12345/index" , cfg . getElasticIndexURL ( ) )
shouldConsiderChildPathToNotBeAncestorOfParent ( ) { "<AssertPlaceHolder>" ; } isAncestorOf ( org . modeshape . jcr . value . Path ) { org . modeshape . common . util . CheckArg . isNotNull ( descendant , "descendant" ) ; return descendant . isDescendantOf ( this ) ; }
org . junit . Assert . assertThat ( path . isAncestorOf ( parent ) , org . hamcrest . core . Is . is ( false ) )
httpRequestWasMade_returnsTrueIfRequestMatchingGivenRuleWasMade ( ) { makeRequest ( "http://example.com" ) ; "<AssertPlaceHolder>" ; } httpRequestWasMade ( java . lang . String ) { return org . robolectric . shadows . httpclient . FakeHttp . getFakeHttpLayer ( ) . hasRequestMatchingRule ( new org . robolectric . shadow...
org . junit . Assert . assertTrue ( org . robolectric . shadows . httpclient . FakeHttp . httpRequestWasMade ( "http://example.com" ) )
testGetEmrClusterDefinitionEntity ( ) { org . finra . herd . model . jpa . NamespaceEntity namespaceEntity = new org . finra . herd . model . jpa . NamespaceEntity ( ) ; org . finra . herd . model . jpa . EmrClusterDefinitionEntity emrClusterDefinitionEntity = new org . finra . herd . model . jpa . EmrClusterDefinition...
org . junit . Assert . assertEquals ( emrClusterDefinitionEntity , result )
testTwoNull ( ) { org . openscience . cdk . tools . diff . tree . IDifference result = org . openscience . cdk . tools . diff . tree . BooleanArrayDifference . construct ( "Foo" , null , null ) ; "<AssertPlaceHolder>" ; } construct ( java . lang . String , boolean [ ] , boolean [ ] ) { if ( ( first == null ) && ( secon...
org . junit . Assert . assertNull ( result )
testToNullWidgetValue ( ) { java . lang . Object value = converter . toWidgetValue ( null ) ; "<AssertPlaceHolder>" ; } toWidgetValue ( java . lang . Integer ) { return modelValue != null ? modelValue . doubleValue ( ) : null ; }
org . junit . Assert . assertNull ( value )
multipleUrlResultParsing ( ) { doc = com . rosaloves . bitlyj . Utils . classpathXmlIS ( "clicks_2_urls.xml" ) ; java . util . Set < com . rosaloves . bitlyj . UrlClicks > clicks = com . rosaloves . bitlyj . Bitly . clicks ( "http://tcrn.ch/a4MSUH" , "http://bit.ly/1YKMfY" ) . apply ( bitly , doc ) ; "<AssertPlaceHolde...
org . junit . Assert . assertEquals ( 2 , clicks . size ( ) )
shouldNotEquals ( ) { byte [ ] bytes = "string" . getBytes ( ) ; co . nstant . in . cbor . model . ByteString byteString = new co . nstant . in . cbor . model . ByteString ( bytes ) ; "<AssertPlaceHolder>" ; } equals ( java . lang . Object ) { if ( ( object instanceof co . nstant . in . cbor . model . UnicodeString ) &...
org . junit . Assert . assertFalse ( byteString . equals ( new java . lang . Object ( ) ) )
testLenientParsing ( ) { final org . opendaylight . yangtools . yang . model . api . SchemaContext schemaContext = org . opendaylight . yangtools . yang . test . util . YangParserTestUtils . parseYangResource ( "/strict-parsing-mode-test/foo.yang" ) ; final org . opendaylight . yangtools . yang . model . api . Module f...
org . junit . Assert . assertNotNull ( transformedInput )
testMapStringReturn ( ) { io . vertx . rx . java . test . gen . Map < java . lang . String , java . lang . String > map = obj . methodWithMapStringReturn ( ( s ) -> { } ) ; "<AssertPlaceHolder>" ; } get ( examples . HttpClient ) { examples . Single < examples . HttpClientResponse > get = client . rxGetNow ( "http://the...
org . junit . Assert . assertEquals ( "bar" , map . get ( "foo" ) )
xStream11Compatibility ( ) { hudson . util . XStream2Test . Bar b = ( ( hudson . util . XStream2Test . Bar ) ( new hudson . util . XStream2 ( ) . fromXML ( "<hudson.util.XStream2Test-Bar><s>foo</s></hudson.util.XStream2Test-Bar>" ) ) ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertEquals ( "foo" , b . s )
testFromEbXMLObjRef ( ) { org . openehealth . ipf . commons . ihe . xds . core . ebxml . EbXMLQueryResponse ebXML = transformer . toEbXML ( responseObjRef ) ; org . openehealth . ipf . commons . ihe . xds . core . responses . QueryResponse result = transformer . fromEbXML ( ebXML ) ; "<AssertPlaceHolder>" ; } fromEbXML...
org . junit . Assert . assertEquals ( responseObjRef , result )
appendsAccessTokenToBody ( ) { java . lang . String expectedBodyContent = "access_token=" + ( profileWithOnlyAccessToken . getAccessToken ( ) ) ; profileWithOnlyAccessToken . setAccessTokenPosition ( OAuth2Profile . AccessTokenPosition . BODY ) ; oltuClientFacade . applyAccessToken ( profileWithOnlyAccessToken , httpRe...
org . junit . Assert . assertThat ( actualContent , org . hamcrest . CoreMatchers . is ( expectedBodyContent ) )
testMapKeyValuePartial ( ) { one . util . streamex . Map < java . lang . Integer , java . lang . Integer > original = new one . util . streamex . HashMap ( ) ; original . put ( 1 , 1 ) ; original . put ( 2 , 5 ) ; original . put ( 3 , 3 ) ; original . put ( 4 , 4 ) ; one . util . streamex . List < java . lang . Integer...
org . junit . Assert . assertEquals ( expected , actual )
testLogicalLogPrepared ( ) { javax . transaction . xa . Xid xid = new org . neo4j . kernel . impl . transaction . XidImpl ( new byte [ 2 ] , new byte [ 2 ] ) ; javax . transaction . xa . XAResource xaRes = xaCon . getXaResource ( ) ; xaRes . start ( xid , XAResource . TMNOFLAGS ) ; long node1 = ds . nextId ( org . neo4...
org . junit . Assert . assertEquals ( 1 , xaRes . recover ( XAResource . TMNOFLAGS ) . length )
getFourth_A$ ( ) { java . lang . String _1 = "foo" ; java . lang . Integer _2 = 123 ; java . lang . Long _3 = 456L ; java . lang . Boolean _4 = true ; java . lang . Double _5 = 7.8 ; com . m3 . scalaflavor4j . Tuple5 < java . lang . String , java . lang . Integer , java . lang . Long , java . lang . Boolean , java . la...
org . junit . Assert . assertThat ( actual , org . hamcrest . CoreMatchers . is ( org . hamcrest . CoreMatchers . equalTo ( expected ) ) )
testFetchByPrimaryKeysWithMultiplePrimaryKeysWhereNoPrimaryKeysExist ( ) { long pk1 = com . liferay . portal . kernel . test . util . RandomTestUtil . nextLong ( ) ; long pk2 = com . liferay . portal . kernel . test . util . RandomTestUtil . nextLong ( ) ; java . util . Set < java . io . Serializable > primaryKeys = ne...
org . junit . Assert . assertTrue ( assetTags . isEmpty ( ) )
testThrowOnNullSubjectWithQueue ( ) { try ( io . nats . client . NatsTestServer ts = new io . nats . client . NatsTestServer ( false ) ; io . nats . client . Connection nc = io . nats . client . Nats . connect ( ts . getURI ( ) ) ) { io . nats . client . Dispatcher d = nc . createDispatcher ( ( msg ) -> { } ) ; d . sub...
org . junit . Assert . assertFalse ( true )
testJaccardCompare2 ( ) { final double EXPECT = 0.9357849740192014 ; java . lang . String inputStr = "account" ; java . lang . String outputStr = "account<sp>status<sp>c" ; double result = org . talend . utils . string . Jaccard . JaccardCompare ( inputStr , outputStr ) ; "<AssertPlaceHolder>" ; } JaccardCompare ( java...
org . junit . Assert . assertTrue ( ( result == EXPECT ) )
testGetReferencedGroups ( ) { java . lang . String [ ] expected = new java . lang . String [ ] { "item" } ; doReturn ( expected ) . when ( expressionPropertyCore ) . getReferencedGroups ( metaData , element , null ) ; java . lang . String [ ] result = metaData . getReferencedGroups ( element , null ) ; "<AssertPlaceHol...
org . junit . Assert . assertThat ( result , org . hamcrest . CoreMatchers . is ( org . hamcrest . CoreMatchers . equalTo ( expected ) ) )
testSshKey ( ) { org . gitlab4j . api . models . SshKey sshKey = org . gitlab4j . api . JsonUtils . unmarshalResource ( org . gitlab4j . api . models . SshKey . class , "sshkey.json" ) ; "<AssertPlaceHolder>" ; } compareJson ( T , java . lang . String ) { java . io . InputStreamReader reader = new java . io . InputStre...
org . junit . Assert . assertTrue ( org . gitlab4j . api . JsonUtils . compareJson ( sshKey , "sshkey.json" ) )
runInTransactionShouldCallFunctionAndCommit ( ) { final com . spotify . styx . storage . DatastoreStorage storage = new com . spotify . styx . storage . DatastoreStorage ( datastore , java . time . Duration . ZERO , storageTransactionFactory , executor ) ; final com . spotify . styx . storage . CheckedDatastoreTransact...
org . junit . Assert . assertThat ( result , org . hamcrest . Matchers . is ( "foo" ) )
testState ( ) { executor . assign ( "two" , "2" , message ) ; executor . assign ( "four" , "4" , message ) ; executor . assign ( "sum" , "two<sp>+<sp>four" , message ) ; java . lang . Object var = executor . getState ( ) . get ( "sum" ) ; "<AssertPlaceHolder>" ; } get ( org . apache . hadoop . hbase . client . Get ) { ...
org . junit . Assert . assertEquals ( 6 , var )
visitFreeFormLine ( ) { visitor . visit ( new org . drools . workbench . models . datamodel . rule . FreeFormLine ( ) ) ; "<AssertPlaceHolder>" ; } getRHSClasses ( ) { return classes ; }
org . junit . Assert . assertTrue ( visitor . getRHSClasses ( ) . isEmpty ( ) )
testGetContentType ( ) { ninja . Result result = new ninja . Result ( 200 ) ; result . contentType ( "text/my-funky-content-type" ) ; "<AssertPlaceHolder>" ; } getContentType ( ) { return contentType ; }
org . junit . Assert . assertEquals ( "text/my-funky-content-type" , result . getContentType ( ) )
t04_oneToOne ( ) { com . jajja . jorm . Transaction moria = psql . Moria . open ( ) ; try { moria . Goblin goblin = moria . select ( moria . Goblin . class , "SELECT<sp>*<sp>FROM<sp>#1#<sp>WHERE<sp>name<sp>=<sp>'Bolg'" , moria . Goblin . class ) ; moria . Tribe tribe = goblin . getTribe ( ) ; "<AssertPlaceHolder>" ; } ...
org . junit . Assert . assertNotNull ( tribe )
testEmptyStatement ( ) { org . wikidata . wdtk . datamodel . interfaces . ItemIdValue i = org . wikidata . wdtk . datamodel . interfaces . ItemIdValue . NULL ; org . wikidata . wdtk . datamodel . interfaces . PropertyIdValue p = org . wikidata . wdtk . datamodel . interfaces . PropertyIdValue . NULL ; org . wikidata . ...
org . junit . Assert . assertEquals ( stmt1 , stmt2 )
testAddFactory ( ) { java . lang . String id = "java2" ; flex . messaging . factories . JavaFactory expected = new flex . messaging . factories . JavaFactory ( ) ; broker . addFactory ( "java2" , expected ) ; flex . messaging . factories . JavaFactory actual = ( ( flex . messaging . factories . JavaFactory ) ( broker ....
org . junit . Assert . assertEquals ( expected , actual )
testGetAdapterWithShellAdapter ( ) { java . lang . Object adapter = shell . getAdapter ( org . eclipse . swt . internal . widgets . IShellAdapter . class ) ; "<AssertPlaceHolder>" ; } getAdapter ( org . eclipse . swt . widgets . Shell ) { return shell . getAdapter ( org . eclipse . swt . internal . widgets . IShellAdap...
org . junit . Assert . assertNotNull ( adapter )