input
stringlengths
28
18.7k
output
stringlengths
39
1.69k
testWrongIndexOfMultilineM_Message ( ) { java . lang . String line1 = "M:00,02,VgIMAQpXb2huemltbWVyCvMrAgtUb2lsZXR0ZSBFRwrenQMOVG9pbGV0dGUgMS4gT0cK3rgECkJhZGV6aW1tZXIK3qoFDFNjaGxhZnppbW1lcgresQYDSmFuD4lCBwlDaHJpc3RpbmEPiTYIBEZsdXIPiT0KEEJhZGV6aW1tZXIgMi4gT0cPiRwLBULDvHJvD4k/DAxHw6RzdGV6aW1tZXIPiRoJC1dhc2Noa8O8Y2hlD4lXN...
org . junit . Assert . assertFalse ( this . processor . addReceivedLine ( line1 ) )
testInvalidHexCodeString ( ) { java . awt . Color c = au . gov . ga . worldwind . common . layers . model . gocad . GocadColor . gocadLineToColor ( "*solid*color:#00GG00" ) ; "<AssertPlaceHolder>" ; } gocadLineToColor ( java . lang . String ) { if ( gocadLine == null ) { return null ; } java . util . regex . Matcher ma...
org . junit . Assert . assertNull ( c )
testGetReferencedColumnFunction ( ) { org . sagebionetworks . table . query . model . DerivedColumn element = org . sagebionetworks . table . query . util . SqlElementUntils . createDerivedColumn ( "max(bar)" ) ; "<AssertPlaceHolder>" ; } getReferencedColumnName ( ) { org . sagebionetworks . table . query . model . Col...
org . junit . Assert . assertEquals ( "bar" , element . getReferencedColumnName ( ) )
testQtz395_CopyConstructorMustPreserveTimeZone ( ) { java . util . TimeZone nonDefault = java . util . TimeZone . getTimeZone ( "Europe/Brussels" ) ; if ( nonDefault . equals ( java . util . TimeZone . getDefault ( ) ) ) { nonDefault = org . jboss . elasticsearch . river . remote . CronExpressionTest . EST_TIME_ZONE ; ...
org . junit . Assert . assertEquals ( nonDefault , copyCronExpression . getTimeZone ( ) )
testFindByPrimaryKeyExisting ( ) { com . liferay . polls . model . PollsChoice newPollsChoice = addPollsChoice ( ) ; com . liferay . polls . model . PollsChoice existingPollsChoice = _persistence . findByPrimaryKey ( newPollsChoice . getPrimaryKey ( ) ) ; "<AssertPlaceHolder>" ; } getPrimaryKey ( ) { return _amImageEnt...
org . junit . Assert . assertEquals ( existingPollsChoice , newPollsChoice )
usesFirstCacheAbsolutePath ( ) { com . facebook . buck . io . filesystem . ProjectFilesystem filesystem = com . facebook . buck . io . filesystem . impl . FakeProjectFilesystem . createJavaOnlyFilesystem ( ) ; java . nio . file . Path path = filesystem . getPath ( "world.txt" ) ; filesystem . touch ( path ) ; java . ni...
org . junit . Assert . assertTrue ( innerCache . willGet ( path ) )
testGetBuffer ( ) { io . netty . buffer . ByteBuf buffer = io . netty . buffer . Unpooled . buffer ( 1024 ) ; io . vertx . proton . impl . ProtonWritableBufferImpl writable = new io . vertx . proton . impl . ProtonWritableBufferImpl ( buffer ) ; "<AssertPlaceHolder>" ; } getBuffer ( ) { return nettyBuffer ; }
org . junit . Assert . assertSame ( buffer , writable . getBuffer ( ) )
buildFromGetReponse ( ) { org . elasticsearch . action . get . GetResponse response = mock ( org . elasticsearch . action . get . GetResponse . class , Mockito . RETURNS_DEEP_STUBS ) ; when ( response . getType ( ) ) . thenReturn ( ESEntityType . NODE . getIndiceName ( ) ) ; when ( response . getId ( ) ) . thenReturn (...
org . junit . Assert . assertEquals ( expected , actual )
testAsInt4 ( ) { org . apache . tajo . datum . Datum d = org . apache . tajo . datum . DatumFactory . createDate ( org . apache . tajo . datum . TestDateDatum . DATE ) ; org . apache . tajo . datum . Datum copy = org . apache . tajo . datum . DatumFactory . createDate ( d . asInt4 ( ) ) ; "<AssertPlaceHolder>" ; } asIn...
org . junit . Assert . assertEquals ( d , copy )
getActive_shouldReturnTrueIfNotVoidedAndDateInRangeWithNullStartDate ( ) { org . openmrs . PatientState patientState = new org . openmrs . PatientState ( ) ; patientState . setStartDate ( null ) ; patientState . setEndDate ( rightRange ) ; patientState . setVoided ( false ) ; boolean active = patientState . getActive (...
org . junit . Assert . assertTrue ( active )
testIndexZero ( ) { java . lang . String regex = "/([^/]{4})/" ; org . apache . druid . query . extraction . ExtractionFn extractionFn = new org . apache . druid . query . extraction . RegexDimExtractionFn ( regex , 0 , true , null ) ; java . util . Set < java . lang . String > extracted = new java . util . LinkedHashS...
org . junit . Assert . assertEquals ( expected , extracted )
existsWithExistingUser ( ) { "<AssertPlaceHolder>" ; } exists ( ) { return false ; }
org . junit . Assert . assertTrue ( this . user . exists ( ) )
shouldRejectImmutableAttributesForReassigningHost ( ) { host = new org . openstack . atlas . docs . loadbalancers . api . management . v1 . Host ( ) ; host . setId ( 23 ) ; host . setName ( "name" ) ; host . setClusterId ( 2 ) ; host . setCoreDeviceId ( "43" ) ; host . setManagementIp ( "119.9.9.9" ) ; host . setMaxCon...
org . junit . Assert . assertFalse ( resultMessage ( res , ReassignHostContext . REASSIGN_HOST ) , res . passedValidation ( ) )
mustFlushAsFastAsPossibleDuringTryCheckPoint ( ) { java . util . concurrent . atomic . AtomicBoolean doneDisablingLimits = new java . util . concurrent . atomic . AtomicBoolean ( ) ; limiter = new org . neo4j . io . pagecache . IOLimiter ( ) { @ org . neo4j . kernel . impl . transaction . log . checkpoint . Override pu...
org . junit . Assert . assertTrue ( doneDisablingLimits . get ( ) )
testCheckInvalidCRLF1 ( ) { com . erudika . para . utils . filters . MockHttpServletRequest request = new com . erudika . para . utils . filters . MockHttpServletRequest ( ) ; request . setHeader ( CORSFilter . REQUEST_HEADER_ORIGIN , "http://www.w3.org\r\n" ) ; request . setMethod ( "GET" ) ; com . erudika . para . ut...
org . junit . Assert . assertEquals ( CORSFilter . CORSRequestType . INVALID_CORS , requestType )
addSameElementTwiceAfterTransformation ( ) { filter . transform ( from , to ) ; java . lang . String s = "aa" ; from . add ( s ) ; from . add ( "bb" ) ; from . add ( s ) ; "<AssertPlaceHolder>" ; } add ( jetbrains . jetpad . model . event . EventSource ) { myEventSources . add ( source ) ; }
org . junit . Assert . assertEquals ( java . util . Arrays . asList ( "aa" , "bb" , "aa" ) , to )
twoIRIs ( ) { org . apache . clerezza . commons . rdf . Graph mGraph = new org . apache . clerezza . commons . rdf . impl . utils . simple . SimpleGraph ( ) ; org . apache . clerezza . commons . rdf . IRI mbox1 = new org . apache . clerezza . commons . rdf . IRI ( "mailto:foo@example.org" ) ; final org . apache . clere...
org . junit . Assert . assertEquals ( 4 , mGraph . size ( ) )
testSubtraction ( ) { org . hipparchus . analysis . polynomials . PolynomialFunction p1 = new org . hipparchus . analysis . polynomials . PolynomialFunction ( new double [ ] { - 2 , 1 } ) ; checkNullPolynomial ( p1 . subtract ( p1 ) ) ; org . hipparchus . analysis . polynomials . PolynomialFunction p2 = new org . hippa...
org . junit . Assert . assertEquals ( 1 , p1 . degree ( ) )
check_platform_and_db_with_different_maintenance_version_is_accepted ( ) { given_DB_Jar_Home_Versions ( "6.2.0" , "6.2.1" ) ; java . lang . Boolean sameVersion = checkPlatformVersion . call ( ) ; "<AssertPlaceHolder>" ; } call ( ) { try { org . bonitasoft . engine . commons . JavaMethodInvoker jmi = new org . bonitasof...
org . junit . Assert . assertTrue ( sameVersion )
shouldBeAbleToRetrieveAllKeys ( ) { uk . gov . gchq . gaffer . cache . impl . JcsDistributedCacheTest . cache1 . put ( "test1" , 1 ) ; uk . gov . gchq . gaffer . cache . impl . JcsDistributedCacheTest . cache1 . put ( "test2" , 2 ) ; uk . gov . gchq . gaffer . cache . impl . JcsDistributedCacheTest . cache2 . put ( "te...
org . junit . Assert . assertEquals ( 3 , keys . size ( ) )
shouldLogAppropriateMessagesIfLog4jSetToErrorLevel ( ) { log4jLogger . setLevel ( org . apache . log4j . Level . ERROR ) ; logger . error ( org . modeshape . common . logging . LoggerTest . errorMessageWithNoParameters ) ; logger . warn ( org . modeshape . common . logging . LoggerTest . warningMessageWithNoParameters ...
org . junit . Assert . assertEquals ( false , log . hasEvents ( ) )
testRetrieve ( ) { java . lang . String [ ] expected = new java . lang . String [ ] { "the" , "quick" , "brown" , "fox" , "jumps" , "over" , "lazy" , "dog" } ; for ( int i = 0 ; i < ( expected . length ) ; i ++ ) { "<AssertPlaceHolder>" ; } } get ( int ) { return new nl . inl . blacklab . search . Hit ( doc [ i ] , sta...
org . junit . Assert . assertEquals ( expected [ i ] , t . get ( i ) )
testHudsonDiffBackup ( ) { final org . jvnet . hudson . plugins . thinbackup . ThinBackupPluginImpl mockPlugin = org . jvnet . hudson . plugins . thinbackup . TestHelper . createMockPlugin ( jenkinsHome , backupDir ) ; performHudsonDiffBackup ( mockPlugin ) ; final java . io . File lastDiffBackup = backupDir . listFile...
org . junit . Assert . assertEquals ( 1 , lastDiffBackup . list ( ) . length )
testViewInitialization ( ) { org . dashbuilder . dataset . date . TimeInstant beginMonth = new org . dashbuilder . dataset . date . TimeInstant ( TimeInstant . TimeMode . BEGIN , org . dashbuilder . dataset . group . DateIntervalType . MONTH , org . dashbuilder . dataset . date . Month . JANUARY , new org . dashbuilder...
org . junit . Assert . assertEquals ( timeInstantView , timeInstantEditor . view )
testGradientWeightDecay ( ) { org . nd4j . linalg . activations . Activation [ ] activFns = new org . nd4j . linalg . activations . Activation [ ] { org . nd4j . linalg . activations . Activation . SIGMOID , org . nd4j . linalg . activations . Activation . TANH , org . nd4j . linalg . activations . Activation . THRESHO...
org . junit . Assert . assertTrue ( msg , gradOK1 )
testShouldCallSpecCreateForEachMethod ( ) { jdave . runner . SpecRunnerTest . BooleanSpec . specCreateCalled = 0 ; runner . run ( jdave . runner . SpecRunnerTest . BooleanSpec . class , new jdave . SpecVisitorAdapter ( new jdave . ResultsAdapter ( ) ) ) ; "<AssertPlaceHolder>" ; } run ( java . lang . Class , jdave . ru...
org . junit . Assert . assertEquals ( 5 , jdave . runner . SpecRunnerTest . BooleanSpec . specCreateCalled )
testExonic ( ) { java . lang . String [ ] legacyVariantStrings = new java . lang . String [ ] { "XXX:EX3+3ins" , "XXX:EX3-3insT" , "XXX:EX3-3insTCT" , "XXX:EX3-3ins3" } ; for ( java . lang . String legacyVariantString : legacyVariantStrings ) { de . charite . compbio . jannovar . hgvs . legacy . LegacyVariant variant =...
org . junit . Assert . assertEquals ( legacyVariantString , variant . toLegacyString ( ) )
testSort ( ) { double [ ] vals = new double [ ] { 12 , 32 , 31 , 11 , 52 , 13 , - 1 , - 222 , 2 } ; org . apache . hama . commons . math . DoubleVector vec = new org . apache . hama . commons . math . DenseDoubleVector ( vals ) ; java . util . Comparator < java . lang . Double > comparator = new java . util . Comparato...
org . junit . Assert . assertTrue ( ( ( previous . getFirst ( ) ) <= ( cur . getFirst ( ) ) ) )
correctlySetsLongVersionProperty ( ) { org . springframework . data . mongodb . core . PersonWithVersionPropertyOfTypeLong person = new org . springframework . data . mongodb . core . PersonWithVersionPropertyOfTypeLong ( ) ; person . firstName = "Dave" ; template . save ( person ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertThat ( person . version , is ( 0L ) )
customCollector_whenResultContainsAllElementsFrSource_thenCorrect ( ) { com . baeldung . java8 . Collector < com . baeldung . stream . Product , ? , com . baeldung . java8 . LinkedList < com . baeldung . stream . Product > > toLinkedList = com . baeldung . java8 . Collector . of ( LinkedList :: new , LinkedList :: add ...
org . junit . Assert . assertTrue ( linkedListOfPersons . containsAll ( productList ) )
startProcess ( ) { ninja . build . RunClassInSeparateJvmMachine rcsjm = new ninja . build . RunClassInSeparateJvmMachine ( "FakeDaemon" , ninja . build . FakeDaemonMain . class . getName ( ) , getOurClassPath ( ) , java . util . Collections . EMPTY_LIST , new java . io . File ( "." ) ) ; final java . io . ByteArrayOutp...
org . junit . Assert . assertTrue ( isAlive ( startedProcess . getProcess ( ) ) )
shouldReturnEmptyPropertyInfosWhenSuppliedValidUrlAndAllPropertiesWithRepositoriesInHTTP ( ) { java . util . Properties validProperties = new java . util . Properties ( ) ; validProperties . put ( JcrDriver . WORKSPACE_PROPERTY_NAME , org . modeshape . jdbc . delegate . HttpRepositoryDelegateTest . WORKSPACE ) ; validP...
org . junit . Assert . assertThat ( infos . length , org . hamcrest . core . Is . is ( 0 ) )
getFirst_A$ ( ) { java . lang . String _1 = "foo" ; java . lang . Integer _2 = 123 ; java . lang . Long _3 = 456L ; java . lang . Boolean _4 = true ; com . m3 . scalaflavor4j . Tuple4 < java . lang . String , java . lang . Integer , java . lang . Long , java . lang . Boolean > tuple = com . m3 . scalaflavor4j . Tuple ....
org . junit . Assert . assertThat ( actual , org . hamcrest . CoreMatchers . is ( org . hamcrest . CoreMatchers . equalTo ( expected ) ) )
testReset ( ) { this . dupIndicator . reset ( ) ; "<AssertPlaceHolder>" ; } getDuplicateMap ( ) { return this . distinctMap ; }
org . junit . Assert . assertTrue ( ( ( dupIndicator . getDuplicateMap ( ) . size ( ) ) < 1 ) )
testReadUuid ( ) { final com . allanbank . mongodb . bson . Document seed = com . allanbank . mongodb . bson . builder . BuilderFactory . start ( ) . addBinary ( "juuid" , ( ( byte ) ( 3 ) ) , com . allanbank . mongodb . bson . io . BsonInputStreamTest . LEGACY_UUID_BYTES ) . addBinary ( "uuid" , ( ( byte ) ( 4 ) ) , c...
org . junit . Assert . assertEquals ( expected , doc )
testCantDeleteDirWithOpenDirStreamAndChild ( ) { java . nio . file . Path dir = root . resolve ( "dir" ) ; java . nio . file . Files . createDirectories ( dir ) ; java . nio . file . Path child = dir . resolve ( "child" ) ; java . nio . file . Files . createDirectories ( child ) ; try ( java . nio . file . DirectoryStr...
org . junit . Assert . assertFalse ( java . nio . file . Files . exists ( child ) )
testDeleteWithoutItem ( ) { eu . abc4trust . db . SimpleParamTypes table = SimpleParamTypes . TEST_TABLE ; java . lang . String prefix = java . util . UUID . randomUUID ( ) . toString ( ) ; java . net . URI key = java . net . URI . create ( ( "test-" + prefix ) ) ; eu . abc4trust . db . TestJdbcPersistentStorage . ps ....
org . junit . Assert . assertFalse ( eu . abc4trust . db . TestJdbcPersistentStorage . ps . deleteItem ( table , key ) )
testCreateScan ( ) { final org . csstudio . scan . log . derby . DerbyDataLogger log = new org . csstudio . scan . log . derby . DerbyDataLogger ( ) ; org . csstudio . scan . log . derby . DerbyDataLogUnitTest . setScan ( log . createScan ( "Demo" ) ) ; log . close ( ) ; System . out . println ( ( "New<sp>scan:<sp>" + ...
org . junit . Assert . assertNotNull ( org . csstudio . scan . log . derby . DerbyDataLogUnitTest . scan )
testMonitorRunningAnalysesSuccessErrorStillRunning ( ) { analysisSubmission . setAnalysisState ( AnalysisState . RUNNING ) ; java . util . Map < ca . corefacility . bioinformatics . irida . model . workflow . execution . galaxy . GalaxyWorkflowState , java . util . Set < java . lang . String > > stateIds = ca . corefac...
org . junit . Assert . assertEquals ( AnalysisState . ERROR , analysisSubmission . getAnalysisState ( ) )
testIsDocumentExists_DocumentNominalLabelIdDTO ( ) { boolean result = qa . qcri . aidr . dbmanager . ejb . remote . facade . imp . TestDocumentNominalLabelResourceFacadeImp . documentNominalLabelResourceFacadeImp . isDocumentExists ( qa . qcri . aidr . dbmanager . ejb . remote . facade . imp . TestDocumentNominalLabelR...
org . junit . Assert . assertEquals ( true , result )
transform_testXmlToXml_xsl ( ) { org . ikasan . component . converter . xml . XsltConverter < java . lang . String , java . lang . String > uut = new org . ikasan . component . converter . xml . XsltConverter < java . lang . String , java . lang . String > ( org . apache . xalan . xsltc . trax . TransformerFactoryImpl ...
org . junit . Assert . assertEquals ( outboundPayloadContent , result )
getAllLocations_shouldReturnAllLocationsWhenIncludeRetiredIsTrue ( ) { java . util . List < org . openmrs . Location > locations = org . openmrs . api . context . Context . getLocationService ( ) . getAllLocations ( true ) ; "<AssertPlaceHolder>" ; } size ( ) { return getMemberships ( ) . stream ( ) . filter ( ( m ) ->...
org . junit . Assert . assertEquals ( 6 , locations . size ( ) )
execute ( ) { java . io . File in = folder . newFile ( "in" ) ; java . io . File out = folder . newFile ( "out" ) ; put ( in , "aaa" , "bbb" , "ccc" ) ; try ( com . asakusafw . windgate . core . GateTask task = new com . asakusafw . windgate . core . GateTask ( profile ( ) , script ( p ( "testing" , "fs1" , in , "fs2" ...
org . junit . Assert . assertThat ( results , is ( java . util . Arrays . asList ( "aaa" , "bbb" , "ccc" ) ) )
stateMachineTraits058Test ( ) { cruise . umple . compiler . UmpleModel model = getModelByFilename ( "trait_test_data_0016.ump" ) ; boolean result = false ; try { model . run ( ) ; } catch ( java . lang . Exception e ) { result = e . getMessage ( ) . contains ( "236" ) ; } finally { "<AssertPlaceHolder>" ; cruise . umpl...
org . junit . Assert . assertTrue ( result )
testPutReadOnly ( ) { setStackStatus ( StatusEnum . READ_ONLY , org . sagebionetworks . repo . web . StackStatusInterceptorTest . MSG_FORMAT ) ; "<AssertPlaceHolder>" ; servletTestHelper . updateEntity ( dispatchServlet , sampleProject , adminUserId ) ; org . junit . Assert . fail ( ) ; } getCurrentStatus ( ) { return ...
org . junit . Assert . assertEquals ( StatusEnum . READ_ONLY , stackStatusDao . getCurrentStatus ( ) )
testListAttributeLocaleInheritance ( ) { java . util . List < org . apache . tiles . request . ApplicationResource > urls = new java . util . ArrayList < org . apache . tiles . request . ApplicationResource > ( ) ; urls . add ( url21 ) ; definitionDao . setSources ( urls ) ; org . apache . tiles . request . Application...
org . junit . Assert . assertEquals ( 2 , attributes . size ( ) )
testZstdFileIsNotSplittable ( ) { java . lang . String baseName = "test-input" ; java . io . File compressedFile = tmpFolder . newFile ( ( baseName + ".zst" ) ) ; writeFile ( compressedFile , generateInput ( 10 ) , CompressionMode . ZSTD ) ; org . apache . beam . sdk . io . CompressedSource < java . lang . Byte > sourc...
org . junit . Assert . assertFalse ( source . isSplittable ( ) )
testIsRequestedSessionIdValidFalse ( ) { javax . servlet . http . HttpServletRequest wrappedSimple = mock ( javax . servlet . http . HttpServletRequest . class ) ; com . amadeus . session . servlet . HttpRequestWrapper req = spy ( new com . amadeus . session . servlet . HttpRequestWrapper ( wrappedSimple , servletConte...
org . junit . Assert . assertFalse ( req . isRequestedSessionIdValid ( ) )
storeKey ( ) { eu . abc4trust . xml . SecretKey inspectorSecretKey = new eu . abc4trust . xml . SecretKey ( ) ; eu . abc4trust . xml . CryptoParams cryptoParams = new eu . abc4trust . xml . CryptoParams ( ) ; cryptoParams . getContent ( ) . add ( "TestString1" ) ; inspectorSecretKey . setCryptoParams ( cryptoParams ) ;...
org . junit . Assert . assertEquals ( inspectorSecretKey . getCryptoParams ( ) . getContent ( ) . get ( 0 ) , storedInspectorSecretKey . getCryptoParams ( ) . getContent ( ) . get ( 0 ) )
shouldMatchMetadataByStreamId ( ) { final uk . gov . justice . services . messaging . Metadata metadata = metadataWithRandomUUID ( uk . gov . justice . services . test . utils . core . matchers . JsonEnvelopeMetadataMatcherTest . EVENT_NAME ) . withStreamId ( uk . gov . justice . services . test . utils . core . matche...
org . junit . Assert . assertThat ( metadata , uk . gov . justice . services . test . utils . core . matchers . JsonEnvelopeMetadataMatcher . metadata ( ) . withStreamId ( uk . gov . justice . services . test . utils . core . matchers . JsonEnvelopeMetadataMatcherTest . STREAM_ID ) )
testDao ( ) { "<AssertPlaceHolder>" ; } getContadorDao ( ) { return fwktd_sir_contadorDao ; }
org . junit . Assert . assertNotNull ( getContadorDao ( ) )
testEnsureSetIndexes ( ) { java . lang . String result = org . slc . sli . ingestion . util . MongoCommander . ensureIndexes ( indexes , dbName , mockedMongoTemplate ) ; "<AssertPlaceHolder>" ; for ( java . lang . String collection : shardCollections ) { com . mongodb . DBObject asskeys = new com . mongodb . BasicDBObj...
org . junit . Assert . assertNull ( result )
createWritesItemSource ( ) { org . appenders . log4j2 . elasticsearch . StringItemSourceFactory factory = createDefaultTestStringItemSourceFactory ( ) ; org . apache . logging . log4j . core . LogEvent logEvent = mock ( org . apache . logging . log4j . core . LogEvent . class ) ; com . fasterxml . jackson . databind . ...
org . junit . Assert . assertNotNull ( itemSource )
testFindAttribute ( ) { com . freedomotic . rules . PayloadTest . LOG . info ( "Produce<sp>a<sp>list<sp>of<sp>statements<sp>searching<sp>by<sp>statement<sp>attribute<sp>name" ) ; com . freedomotic . rules . Payload payload = new com . freedomotic . rules . Payload ( ) ; payload . addStatement ( "no" , "value1" ) ; payl...
org . junit . Assert . assertEquals ( 4 , payload . getStatements ( "yes" ) . size ( ) )
testExecDescribeTriplesForZeroResult ( ) { java . lang . String queryString = "describe<sp>?s<sp>?p<sp>?o<sp>where<sp>{<sp>?s<sp>?p<sp>'madhu'<sp>.<sp>}<sp>limit<sp>1" ; com . franz . agraph . jena . AGQuery query = com . franz . agraph . jena . AGQueryFactory . create ( queryString ) ; try ( com . franz . agraph . jen...
org . junit . Assert . assertFalse ( iter . hasNext ( ) )
iteratorStep_6 ( ) { org . apache . jena . atlas . iterator . Iterator < ? > iter = org . apache . jena . atlas . iterator . TestIter . iterator ( 5 ) ; int x = org . apache . jena . atlas . iterator . Iter . step ( iter , 6 ) ; "<AssertPlaceHolder>" ; } iterator ( int ) { return java . util . stream . IntStream . rang...
org . junit . Assert . assertEquals ( 5 , x )
containerShouldStopGracefullyOnUnsubscribeErrors ( ) { when ( connectionFactoryMock . getConnection ( ) ) . thenReturn ( connectionMock ) ; doThrow ( new java . lang . IllegalStateException ( ) ) . when ( subscriptionMock ) . pUnsubscribe ( ) ; doAnswer ( ( it ) -> { java . lang . Runnable r = it . getArgument ( 0 ) ; ...
org . junit . Assert . assertThat ( container . isRunning ( ) , org . hamcrest . core . Is . is ( false ) )
testFindByPrimaryKeyExisting ( ) { com . liferay . asset . list . model . AssetListEntryUsage newAssetListEntryUsage = addAssetListEntryUsage ( ) ; com . liferay . asset . list . model . AssetListEntryUsage existingAssetListEntryUsage = _persistence . findByPrimaryKey ( newAssetListEntryUsage . getPrimaryKey ( ) ) ; "<...
org . junit . Assert . assertEquals ( existingAssetListEntryUsage , newAssetListEntryUsage )
testCommentDefault ( ) { com . mitchellbosecke . pebble . PebbleEngine pebble = new com . mitchellbosecke . pebble . PebbleEngine . Builder ( ) . loader ( new com . mitchellbosecke . pebble . loader . StringLoader ( ) ) . build ( ) ; com . mitchellbosecke . pebble . template . PebbleTemplate template = pebble . getTemp...
org . junit . Assert . assertEquals ( "" , writer . toString ( ) )
testRemoveFromEmpty ( ) { org . hipparchus . util . OpenIntToFieldHashMap < org . hipparchus . fraction . Fraction > map = new org . hipparchus . util . OpenIntToFieldHashMap < org . hipparchus . fraction . Fraction > ( field ) ; "<AssertPlaceHolder>" ; } getZero ( ) { return org . hipparchus . geometry . euclidean . t...
org . junit . Assert . assertTrue ( field . getZero ( ) . equals ( map . remove ( 50 ) ) )
testDynamicQueryByPrimaryKeyMissing ( ) { com . liferay . portal . kernel . dao . orm . DynamicQuery dynamicQuery = com . liferay . portal . kernel . dao . orm . DynamicQueryFactoryUtil . forClass ( com . liferay . asset . list . model . AssetListEntryUsage . class , _dynamicQueryClassLoader ) ; dynamicQuery . add ( co...
org . junit . Assert . assertEquals ( 0 , result . size ( ) )
copyAttributes_PARTNER_SUBSCRIPTION ( ) { org . oscm . domobjects . Product prod = new org . oscm . domobjects . Product ( ) ; prod . setType ( ServiceType . PARTNER_SUBSCRIPTION ) ; prod . setConfiguratorUrl ( "some<sp>value" ) ; org . oscm . serviceprovisioningservice . assembler . ProductAssembler . copyAttributes (...
org . junit . Assert . assertNull ( prod . getConfiguratorUrl ( ) )
createBotTrigger ( ) { ai . labs . models . BotTriggerConfiguration expected = createExpectedBotTriggerConfiguration ( ) ; javax . ws . rs . core . Response response = restBotTriggerStore . createBotTrigger ( expected ) ; "<AssertPlaceHolder>" ; org . mockito . Mockito . verify ( botTriggerStore , times ( 1 ) ) . creat...
org . junit . Assert . assertEquals ( 200 , response . getStatus ( ) )
testUnCapitalize1 ( ) { java . lang . Object target = "ABC" ; java . lang . String expResult = "aBC" ; java . lang . String result = org . thymeleaf . util . StringUtils . unCapitalize ( target ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertEquals ( expResult , result )
testSetFontListWithTwoElements ( ) { org . eclipse . swt . widgets . FontDialog fontDialog = new org . eclipse . swt . widgets . FontDialog ( shell ) ; fontDialog . setFontList ( new org . eclipse . swt . graphics . FontData [ 0 ] ) ; "<AssertPlaceHolder>" ; } getFontList ( ) { org . eclipse . swt . graphics . FontData...
org . junit . Assert . assertNull ( fontDialog . getFontList ( ) )
builderShouldCreatePopulatedOperation ( ) { final uk . gov . gchq . gaffer . operation . impl . job . GetJobResults op = new uk . gov . gchq . gaffer . operation . impl . job . GetJobResults . Builder ( ) . jobId ( "jobId" ) . build ( ) ; "<AssertPlaceHolder>" ; } getJobId ( ) { return jobId ; }
org . junit . Assert . assertEquals ( "jobId" , op . getJobId ( ) )
errorMarkerMessageArgs ( ) { uk . org . lidalia . slf4jtest . LoggingEvent event = uk . org . lidalia . slf4jtest . LoggingEvent . error ( marker , message , arg1 , arg2 ) ; uk . org . lidalia . slf4jtest . LoggingEvent expected = new uk . org . lidalia . slf4jtest . LoggingEvent ( ERROR , marker , message , arg1 , arg...
org . junit . Assert . assertThat ( event , org . hamcrest . core . Is . is ( expected ) )
testPDDeferredReqSetInboundStandardMode ( ) { gov . hhs . fha . nhinc . configuration . jmx . PassthruMXBeanRegistry registry = gov . hhs . fha . nhinc . configuration . jmx . PassthruMXBeanRegistry . getInstance ( ) ; gov . hhs . fha . nhinc . configuration . IConfiguration . serviceEnum serviceName = gov . hhs . fha ...
org . junit . Assert . assertEquals ( true , standard )
getLocationManagerForPartitionedTableWithBaseOverride ( ) { org . apache . hadoop . hive . metastore . api . StorageDescriptor sd = new org . apache . hadoop . hive . metastore . api . StorageDescriptor ( ) ; sd . setLocation ( ( ( com . hotels . bdp . circustrain . core . source . SourceTest . TABLE_BASE_PATH ) + "/pa...
org . junit . Assert . assertThat ( locationManager . getTableLocation ( ) , org . hamcrest . CoreMatchers . is ( new org . apache . hadoop . fs . Path ( com . hotels . bdp . circustrain . core . source . SourceTest . TABLE_BASE_PATH ) ) )
testZero ( ) { tested = new codeine . command_peer . ExponentialProgressiveRateClaculator ( 0 , 9 ) ; "<AssertPlaceHolder>" ; } getTimeToSleep ( long ) { return getTimeToSleep ( ratio ( ) , loopTime ) ; }
org . junit . Assert . assertEquals ( 0 , tested . getTimeToSleep ( 0 ) )
testLevenstein ( ) { annotatorResult = org . aksw . gerbil . utils . DocumentTextEditRevoker . revokeTextEdits ( annotatorResult , documentWithOrigText . getText ( ) ) ; "<AssertPlaceHolder>" ; } revokeTextEdits ( org . aksw . gerbil . transfer . nif . Document , java . lang . String ) { if ( ! ( document . getText ( )...
org . junit . Assert . assertEquals ( documentWithOrigText , annotatorResult )
nullValue ( ) { final org . jboss . msc . value . ImmediateValue < java . lang . Object > immediateValue = new org . jboss . msc . value . ImmediateValue < java . lang . Object > ( null ) ; "<AssertPlaceHolder>" ; } getValue ( ) { synchronized ( this ) { if ( ( injector ) != null ) return injector . getValue ( ) ; if (...
org . junit . Assert . assertNull ( immediateValue . getValue ( ) )
testInsertRetrieveEmptyList ( ) { net . vz . mongodb . jackson . mock . MockObject object = new net . vz . mongodb . jackson . mock . MockObject ( ) ; object . simpleList = java . util . Collections . emptyList ( ) ; coll . insert ( object ) ; net . vz . mongodb . jackson . mock . MockObject result = coll . findOne ( )...
org . junit . Assert . assertEquals ( object . simpleList , result . simpleList )
listHostsFilterBySelectors ( ) { final java . util . List < java . lang . String > hosts = com . google . common . collect . ImmutableList . of ( "foo1" , "foo2" , "foo3" ) ; mockResponse ( "GET" , org . hamcrest . Matchers . allOf ( com . spotify . helios . client . HeliosClientTest . hasPath ( "/hosts/" ) , com . spo...
org . junit . Assert . assertThat ( client . listHosts ( selectors ) . get ( ) , org . hamcrest . Matchers . equalTo ( hosts ) )
textDB_8_bnode_subject ( ) { org . apache . jena . query . text . Dataset ds = create ( ) ; org . apache . jena . query . text . TestTextNonTxn . dataTurtle ( ds , org . apache . jena . atlas . lib . StrUtils . strjoinNL ( "PREFIX<sp>rdfs:<sp><http://www.w3.org/2000/01/rdf-schema#>" , "[]<sp>a<sp><http://example.org/En...
org . junit . Assert . assertEquals ( 1 , x . size ( ) )
test_return_octet ( ) { byte result = server . return_octet ( ) ; "<AssertPlaceHolder>" ; } return_octet ( ) { return ( ( byte ) ( 240 ) ) ; }
org . junit . Assert . assertEquals ( ( ( byte ) ( 240 ) ) , result )
testLowWatermark ( ) { final int childType = 3 ; com . twitter . crunch . Node child = mockChildNode ( childType ) ; com . twitter . crunch . Node root = mockRootNode ( childType , child ) ; com . twitter . crunch . AssignmentTracker tracker = new com . twitter . crunch . AssignmentTrackerImpl ( root , ( ( int ) ( ( As...
org . junit . Assert . assertFalse ( tracker . trackAssignment ( child ) )
testDynamicQueryByProjectionMissing ( ) { com . liferay . portal . kernel . dao . orm . DynamicQuery dynamicQuery = com . liferay . portal . kernel . dao . orm . DynamicQueryFactoryUtil . forClass ( com . liferay . marketplace . model . Module . class , _dynamicQueryClassLoader ) ; dynamicQuery . setProjection ( com . ...
org . junit . Assert . assertEquals ( 0 , result . size ( ) )
upgradeActivitiesToVrc3Test ( ) { javax . xml . bind . JAXBContext jaxbContext1 = javax . xml . bind . JAXBContext . newInstance ( org . orcid . jaxb . model . record . summary_rc4 . ActivitiesSummary . class ) ; javax . xml . bind . JAXBContext jaxbContext2 = javax . xml . bind . JAXBContext . newInstance ( org . orci...
org . junit . Assert . assertEquals ( rc4Activities1 , rc4Activities2 )
testRuleEventListener ( ) { java . lang . String str = ( ( ( ( ( ( ( "import<sp>" + ( org . drools . compiler . Person . class . getCanonicalName ( ) ) ) + "onDeleteMatch:<sp>20" 7 ) + "onDeleteMatch:<sp>20" 0 ) + "rule<sp>R<sp>when\n" ) + "<sp>$p:<sp>Person(<sp>$age:<sp>age<sp><<sp>20<sp>)\n" ) + "then\n" ) + "onDelet...
org . junit . Assert . assertEquals ( expected , list )
unquote_3 ( ) { final java . lang . String input = "h" ; final java . lang . String expected = "h" ; final java . lang . String actual = org . erlide . util . StringUtils . unquote ( input ) ; "<AssertPlaceHolder>" ; } unquote ( java . lang . String ) { final int length = s . length ( ) ; if ( ( ( length > 2 ) && ( ( s...
org . junit . Assert . assertEquals ( expected , actual )
testNegativeIntegerKey ( ) { java . io . File file = net . openhft . chronicle . map . ChronicleMapTest . getPersistenceFile ( ) ; try ( net . openhft . chronicle . map . ChronicleMap < java . lang . Integer , java . lang . Integer > map = net . openhft . chronicle . map . ChronicleMap . of ( net . openhft . chronicle ...
org . junit . Assert . assertEquals ( java . lang . Integer . valueOf ( ( - 1 ) ) , map . get ( ( - 1 ) ) )
CallInstanceInterfaceGenericInterface ( ) { java . lang . String fromClass = "Domain.Direct.Violating.CallInstanceInterfaceGenericInterface" ; java . lang . String toClass = "Technology.Direct.Dao.CallInstanceInterfaceDAO<p1>" ; java . util . ArrayList < java . lang . String > typesToFind = new java . util . ArrayList ...
org . junit . Assert . assertTrue ( areDependencyTypesDetected ( fromClass , toClass , typesToFind , false ) )
testConvertToDataModelTypeWithoutGtCount ( ) { stats . getGenotypeCount ( ) . clear ( ) ; stats . getGenotypeFreq ( ) . clear ( ) ; stats . setAlleleCount ( ( - 1 ) ) ; stats . setRefAlleleCount ( ( - 1 ) ) ; stats . setAltAlleleCount ( ( - 1 ) ) ; org . opencb . opencga . storage . mongodb . variant . converters . Doc...
org . junit . Assert . assertEquals ( stats , converted )
testGetTagsWithExtraTagFields ( ) { com . streamsets . pipeline . stage . destination . influxdb . GenericRecordConverterConfigBean conf = new com . streamsets . pipeline . stage . destination . influxdb . GenericRecordConverterConfigBean ( ) ; conf . tagFields . add ( "/extraTag" ) ; java . util . Map < java . lang . ...
org . junit . Assert . assertEquals ( expectedTags , tags )
mapCancelOrderFailureReturnsFalse ( ) { java . lang . String data = "{\"success\":0}" ; boolean result = mapper . mapCancelOrder ( data ) ; "<AssertPlaceHolder>" ; } mapCancelOrder ( java . lang . String ) { int success = gson . fromJson ( cancelOrderResult , com . cf . data . map . poloniex . JsonObject . class ) . ge...
org . junit . Assert . assertFalse ( result )
setCertificateSavesCerts ( ) { com . microsoft . azure . sdk . iot . deps . auth . IotHubCertificateManager testCertManager = mockit . Deencapsulation . newInstance ( com . microsoft . azure . sdk . iot . deps . auth . IotHubCertificateManager . class ) ; mockit . Deencapsulation . invoke ( testCertManager , "setCertif...
org . junit . Assert . assertTrue ( ( ( certificates . size ( ) ) == 1 ) )
testEvaluationError ( ) { java . lang . String errorMessage = "something<sp>failed" ; mockQueryPlanner . setQueryPlan ( createQueryPlan ( ( previousTaskResult ) -> { throw new java . sql . SQLException ( errorMessage ) ; } , QueryType . SELECT ) ) ; java . util . List < org . meridor . perspective . sql . impl . QueryR...
org . junit . Assert . assertThat ( results , contains ( evaluationErrorResult ) )
testGetVirtualServersList ( ) { java . util . List < org . rackspace . stingray . client . list . Child > children = client . getVirtualServers ( ) ; "<AssertPlaceHolder>" ; } size ( ) { return size ; }
org . junit . Assert . assertTrue ( ( ( children . size ( ) ) > 0 ) )
testInterleavedCancellationBarriers ( ) { org . apache . flink . runtime . io . network . partition . consumer . BufferOrEvent [ ] sequence = new org . apache . flink . runtime . io . network . partition . consumer . BufferOrEvent [ ] { org . apache . flink . streaming . runtime . io . BarrierTrackerTest . createBarrie...
org . junit . Assert . assertEquals ( boe , tracker . getNextNonBlocked ( ) )
shouldFindTestUnitsInCustomJUnit3Class ( ) { final java . util . Collection < org . pitest . testapi . TestUnit > actual = this . testee . findTestUnits ( org . pitest . junit . JUnitCustomRunnerTestUnitFinderTest . JMockTest . class ) ; "<AssertPlaceHolder>" ; } isEmpty ( ) { return this . members . isEmpty ( ) ; }
org . junit . Assert . assertFalse ( actual . isEmpty ( ) )
testRegistrationOfExecutionsFailing ( ) { try { final org . apache . flink . runtime . jobgraph . JobVertexID jid1 = new org . apache . flink . runtime . jobgraph . JobVertexID ( ) ; final org . apache . flink . runtime . jobgraph . JobVertexID jid2 = new org . apache . flink . runtime . jobgraph . JobVertexID ( ) ; or...
org . junit . Assert . assertEquals ( 0 , executions . size ( ) )
testUnwrapDecryptPlainText ( ) { final java . lang . String wrappedEncryptedValue = "plaintext" ; ddf . security . encryption . impl . EncryptionServiceImplTest . LOGGER . debug ( "Original<sp>value<sp>is:<sp>{}" , wrappedEncryptedValue ) ; final ddf . security . encryption . impl . EncryptionServiceImpl encryptionServ...
org . junit . Assert . assertEquals ( wrappedEncryptedValue , decryptedValue )
testGetAndSetJMSCorrelationID ( ) { org . apache . qpid . jms . message . JmsMessage msg = factory . createMessage ( ) ; msg . setJMSCorrelationID ( this . jmsCorrelationID ) ; "<AssertPlaceHolder>" ; } getJMSCorrelationID ( ) { return correlationId ; }
org . junit . Assert . assertTrue ( msg . getJMSCorrelationID ( ) . equals ( this . jmsCorrelationID ) )
testGetTargetClusterEnd ( ) { java . util . Map < java . lang . String , java . lang . String > props = new java . util . HashMap ( ) ; org . apache . ambari . server . controller . ivory . Feed feed = new org . apache . ambari . server . controller . ivory . Feed ( "Feed1" , "d" , "s" , "sch" , "source" , "st" , "send...
org . junit . Assert . assertEquals ( "d" 0 , feed . getTargetClusterEnd ( ) )
testBaseEquality1 ( ) { org . wildfly . security . auth . client . AuthenticationConfiguration c1 ; org . wildfly . security . auth . client . AuthenticationConfiguration c2 ; c1 = org . wildfly . security . auth . client . AuthenticationConfiguration . empty ( ) . useName ( "name1" ) . usePort ( 1234 ) . useProtocol (...
org . junit . Assert . assertEquals ( c1 , c2 )
testGetAllData1 ( ) { int samplingRate = 16000 ; javax . sound . sampled . AudioFormat af = new javax . sound . sampled . AudioFormat ( AudioFormat . Encoding . PCM_SIGNED , samplingRate , 16 , 1 , 2 , samplingRate , false ) ; double [ ] testSignal = marytts . util . math . FFTTest . getSampleSignal ( 16000 ) ; marytts...
org . junit . Assert . assertTrue ( ( ( result . length ) == ( testSignal . length ) ) )
ackTransaction ( ) { eu . icolumbo . breeze . TestBean . Data record1 = new eu . icolumbo . breeze . TestBean . Data ( ) ; record1 . setId ( 0 ) ; record1 . setMessage ( "ding" ) ; eu . icolumbo . breeze . TestBean . Data record2 = new eu . icolumbo . breeze . TestBean . Data ( ) ; record2 . setId ( 1 ) ; record2 . set...
org . junit . Assert . assertEquals ( asList ( ( ( java . lang . Object ) ( "ding" ) ) , "dong" ) , bean )
getNumRows ( ) { cn . edu . hit . ir . JNN . Dim dim = new cn . edu . hit . ir . JNN . Dim ( java . util . Arrays . asList ( 100 , 200 ) , 1 ) ; "<AssertPlaceHolder>" ; } getNumRows ( ) { return d [ 0 ] ; }
org . junit . Assert . assertEquals ( dim . getNumRows ( ) , 100 )
testSetMaxRowsHigherThanQueryLimit ( ) { try ( java . sql . Statement stmt = org . apache . drill . jdbc . StatementMaxRowsTest . connection . createStatement ( ) ) { int valueToSet = ( org . apache . drill . jdbc . StatementMaxRowsTest . RANDOMIZER . nextInt ( 10 ) ) + 11 ; stmt . setMaxRows ( valueToSet ) ; stmt . ex...
org . junit . Assert . assertTrue ( ( valueToSet > rowCount ) )