input
stringlengths
28
18.7k
output
stringlengths
39
1.69k
isGreaterThanWorking ( ) { if ( isBatoo ( ) ) { return ; } final java . lang . String query = "select<sp>r<sp>from<sp>RegularEntityTwo<sp>r<sp>" + "<sp>where<sp>r.stringAttribute<sp>in<sp>(select<sp>sub.stringAttribute<sp>from<sp>RegularEntityTwo<sp>sub<sp>where<sp>sub.id<sp>><sp>2)" ; final java . util . List < com . ...
org . junit . Assert . assertTrue ( ( ( resultFromJPQL . size ( ) ) > 0 ) )
testStaticSetRanges ( ) { int N = 256 ; for ( int end = 1 ; end < N ; ++ end ) { for ( int start = 0 ; start < end ; ++ start ) { org . roaringbitmap . buffer . MutableRoaringBitmap bs1 = new org . roaringbitmap . buffer . MutableRoaringBitmap ( ) ; for ( int k = start ; k < end ; ++ k ) { bs1 . add ( k ) ; } org . roa...
org . junit . Assert . assertEquals ( bs1 , bs2 )
testGetSaveAndRenameServiceCaller ( ) { final org . jboss . errai . common . client . api . Caller < ? extends org . uberfire . ext . editor . commons . service . support . SupportsSaveAndRename < org . guvnor . common . services . project . model . ProjectImports , org . guvnor . common . services . shared . metadata ...
org . junit . Assert . assertEquals ( this . serviceCaller , serviceCaller )
updateServiceListContainsChargeableResellerService_noService ( ) { serviceListingBean . updateServiceListContainsChargeableResellerService ( new java . util . ArrayList < org . oscm . internal . vo . VOService > ( ) ) ; "<AssertPlaceHolder>" ; } isServiceListContainsChargeableResellerService ( ) { return serviceListCon...
org . junit . Assert . assertFalse ( serviceListingBean . isServiceListContainsChargeableResellerService ( ) )
unicodeEscape ( ) { java . util . Map < java . lang . String , java . lang . String > actual = io . strimzi . operator . cluster . model . OrderedPropertiesTest . propertiesCompatibility ( "unicode=\\u0123X\\uAbBa" ) ; io . strimzi . operator . cluster . model . OrderedProperties expected = new io . strimzi . operator ...
org . junit . Assert . assertEquals ( expected . asMap ( ) , actual )
shouldReturnEqualForSameInstance ( ) { org . eclipse . egit . ui . internal . synchronize . model . GitModelCache left = new org . eclipse . egit . ui . internal . synchronize . model . GitModelCache ( createModelRepository ( ) , lookupRepository ( leftRepoFile ) , null ) ; boolean actual = left . equals ( left ) ; "<A...
org . junit . Assert . assertTrue ( actual )
canEstimateRegressionParameters ( ) { double [ ] beta = regression . estimateRegressionParameters ( ) ; "<AssertPlaceHolder>" ; } getNumberOfRegressors ( ) { return ( x [ 0 ] . length ) + 1 ; }
org . junit . Assert . assertEquals ( getNumberOfRegressors ( ) , beta . length )
testAndereBetrokkenheid ( ) { nl . bzk . brp . model . hisvolledig . momentview . kern . PersoonView persoon = bouwHuidigeSituatie ( true , true ) ; org . springframework . test . util . ReflectionTestUtils . setField ( org . springframework . test . util . ReflectionTestUtils . getField ( persoon . getBetrokkenheden (...
org . junit . Assert . assertEquals ( 0 , berichtEntiteiten . size ( ) )
givenAnnotatedLoginResult_whenSameApiToken_thenEqualInstances ( ) { java . lang . String theSameApiToken = "testapitoken" ; com . baeldung . lombok . intro . LoginResult loginResult1 = new com . baeldung . lombok . intro . LoginResult ( java . time . Instant . now ( ) , theSameApiToken , java . time . Duration . ofHour...
org . junit . Assert . assertEquals ( loginResult1 , loginResult2 )
testOnceFiresExactlyOnce ( ) { com . google . firebase . database . DatabaseReference ref = com . google . firebase . testing . IntegrationTestUtils . getRandomNode ( com . google . firebase . database . integration . EventTestIT . masterApp ) ; final java . util . concurrent . atomic . AtomicInteger called = new java ...
org . junit . Assert . assertEquals ( 1 , called . get ( ) )
testGetByteBodyContents_2 ( ) { org . jinstagram . http . Request fixture = new org . jinstagram . http . Request ( Verbs . DELETE , "" ) ; fixture . setConnectionKeepAlive ( true ) ; fixture . setCharset ( "UTF-8" ) ; fixture . addPayload ( ( ( java . lang . String ) ( null ) ) ) ; fixture . setConnection ( mockHttpCo...
org . junit . Assert . assertNotNull ( result )
loginSucceeded ( ) { final java . lang . String userName = "mockUserName" ; final org . sentilo . common . cache . LRUCache < java . lang . String , java . lang . Integer > attemptsCache = ( ( org . sentilo . common . cache . LRUCache ) ( org . springframework . test . util . ReflectionTestUtils . getField ( loginServi...
org . junit . Assert . assertFalse ( attemptsCache . contains ( userName ) )
string ( ) { com . groupon . lex . metrics . GroupName group_name = com . groupon . lex . metrics . GroupName . valueOf ( com . groupon . lex . metrics . GroupNameTest . PATH ) ; "<AssertPlaceHolder>" ; } toString ( ) { return ( ( ( "SimpleMapEntry{" + ( key_ ) ) + "<sp>=><sp>" ) + ( value_ ) ) + '}' ; }
org . junit . Assert . assertEquals ( com . groupon . lex . metrics . GroupNameTest . PATH . toString ( ) , group_name . toString ( ) )
testFloatValueZero ( ) { java . lang . String a = "0" ; float result = 0.0F ; float aNumber = new java . math . BigInteger ( a ) . floatValue ( ) ; "<AssertPlaceHolder>" ; } floatValue ( ) { return value ; }
org . junit . Assert . assertTrue ( ( aNumber == result ) )
setMeasurand_energyActiveExportRegister_measurandIsSet ( ) { java . lang . String measurand = "Energy.Active.Export.Register" ; sampledValue . setMeasurand ( measurand ) ; "<AssertPlaceHolder>" ; } getMeasurand ( ) { return measurand ; }
org . junit . Assert . assertThat ( sampledValue . getMeasurand ( ) , org . hamcrest . CoreMatchers . equalTo ( measurand ) )
shards_data_should_be_ignored ( ) { com . lordofthejars . nosqlunit . mongodb . integration . WhenExpectedDataShouldBeCompared . mongoOperation . insert ( new java . io . ByteArrayInputStream ( com . lordofthejars . nosqlunit . mongodb . integration . WhenExpectedDataShouldBeCompared . DATA_SHARD . getBytes ( ) ) ) ; b...
org . junit . Assert . assertThat ( isEquals , org . hamcrest . CoreMatchers . is ( true ) )
testCanGetAccessToAttendance ( ) { org . slc . sli . api . security . context . validator . Set < java . lang . String > studentIds = new org . slc . sli . api . security . context . validator . HashSet < java . lang . String > ( ) ; org . slc . sli . api . security . context . validator . Set < java . lang . String > ...
org . junit . Assert . assertTrue ( validator . validate ( EntityNames . ATTENDANCE , attendances ) . equals ( attendances ) )
testValidateXMLNoentity ( ) { java . lang . String metadataInvalid = com . onelogin . saml2 . util . Util . getFileAsString ( "data/metadata/noentity_metadata_settings1.xml" ) ; org . w3c . dom . Document docMetadataInvalid = com . onelogin . saml2 . util . Util . loadXML ( metadataInvalid ) ; boolean isValid = com . o...
org . junit . Assert . assertFalse ( isValid )
shouldFindShortestPathsWithStartEndVertexFilter ( ) { final org . apache . tinkerpop . gremlin . process . computer . ComputerResult result = graph . compute ( graphProvider . getGraphComputer ( graph ) . getClass ( ) ) . program ( org . apache . tinkerpop . gremlin . process . computer . search . path . ShortestPathVe...
org . junit . Assert . assertTrue ( result . memory ( ) . exists ( ShortestPathVertexProgram . SHORTEST_PATHS ) )
testOpenOpenDescending ( ) { org . apache . commons . functor . range . FloatRange range = org . apache . commons . functor . range . Ranges . floatRange ( 5.0F , BoundType . OPEN , ( - 5.0F ) , BoundType . OPEN , ( - 3.0F ) ) ; java . util . List < java . lang . Float > expected = java . util . Arrays . asList ( 2.0F ...
org . junit . Assert . assertEquals ( expected , elements )
testHandleNotifyExpand ( ) { org . eclipse . nebula . widgets . grid . Grid spyGrid = spy ( grid ) ; handler = new org . eclipse . nebula . widgets . grid . internal . gridkit . GridOperationHandler ( spyGrid ) ; org . eclipse . nebula . widgets . grid . GridItem item = new org . eclipse . nebula . widgets . grid . Gri...
org . junit . Assert . assertEquals ( item , captor . getValue ( ) . item )
saveReturnEntity ( ) { org . fastquery . bean . UserInfo u1 = new org . fastquery . bean . UserInfo ( "" , 2558 ) ; org . fastquery . bean . UserInfo u2 = db . save ( u1 ) ; org . fastquery . test . DefaultMethodTest . LOG . debug ( "{}" , u2 ) ; long id = u2 . getId ( ) ; int effect = db . delete ( "UserInfo" , "id" ,...
org . junit . Assert . assertThat ( effect , is ( 1 ) )
testLocalSauvola ( ) { ops . run ( net . imagej . ops . threshold . localSauvola . LocalSauvolaThreshold . class , out , in , new net . imglib2 . algorithm . neighborhood . RectangleShape ( 2 , false ) , new net . imglib2 . outofbounds . OutOfBoundsMirrorFactory < net . imglib2 . type . numeric . integer . ByteType , n...
org . junit . Assert . assertEquals ( false , out . firstElement ( ) . get ( ) )
dispatchVServerManualOperation_VSERVER_CREATION ( ) { paramHandler . setOperation ( Operation . VSERVER_CREATION ) ; org . oscm . app . iaas . data . FlowState newState = null ; setParameters ( ) ; doReturn ( "" ) . when ( platformService ) . getEventServiceUrl ( ) ; newState = vServerProcessor . dispatchVServerManualO...
org . junit . Assert . assertEquals ( FlowState . MANUAL , newState )
testLoadEmptyProperties ( ) { com . liferay . portal . configuration . ConfigurationImplTest . TestResourceClassLoader testResourceClassLoader = new com . liferay . portal . configuration . ConfigurationImplTest . TestResourceClassLoader ( ) ; testResourceClassLoader . addPropertiesResource ( com . liferay . portal . c...
org . junit . Assert . assertTrue ( properties . isEmpty ( ) )
withDocumentSnapshotCursor ( ) { doAnswer ( com . google . cloud . firestore . LocalFirestoreHelper . queryResponse ( ) ) . when ( firestoreMock ) . streamRequest ( runQuery . capture ( ) , streamObserverCapture . capture ( ) , org . mockito . Matchers . < com . google . api . gax . rpc . ServerStreamingCallable > any ...
org . junit . Assert . assertEquals ( queryRequest , runQuery . getValue ( ) )
callingAutomationSendsAnHttpRequest ( ) { client . setResponse ( "application/json+nxentity" , HttpResponses . DOC_WORKSPACE ) ; org . nuxeo . ecm . automation . client . Session session = client . getSession ( "Administrator" , "Administrator" ) ; org . nuxeo . ecm . automation . client . model . Documents docs = ( ( ...
org . junit . Assert . assertTrue ( ( ( docs . size ( ) ) > 0 ) )
shouldCorrectlyExecuteScoreOperationChainWhenNamedOperationScoreIsNull ( ) { final uk . gov . gchq . gaffer . store . operation . handler . ScoreOperationChainHandler handler = new uk . gov . gchq . gaffer . store . operation . handler . ScoreOperationChainHandler ( ) ; final java . util . Map < java . lang . Class < ?...
org . junit . Assert . assertEquals ( 7 , result )
testToString ( ) { com . cedarsoftware . util . TrackingMap < java . lang . String , java . lang . Object > map = new com . cedarsoftware . util . TrackingMap ( mockedBackingMap ) ; "<AssertPlaceHolder>" ; } toString ( ) { return map . keySet ( ) . toString ( ) ; }
org . junit . Assert . assertNotNull ( map . toString ( ) )
anyOf ( ) { "<AssertPlaceHolder>" ; } or ( com . querydsl . core . types . dsl . Predicate ) { right = ( ( com . querydsl . core . types . dsl . Predicate ) ( com . querydsl . core . types . dsl . ExpressionUtils . extract ( right ) ) ) ; if ( right != null ) { return com . querydsl . core . types . dsl . Expressions ....
org . junit . Assert . assertEquals ( a . or ( b ) . or ( c ) , com . querydsl . core . types . dsl . Expressions . anyOf ( a , b , c ) )
testDensity ( ) { double [ ] points = new double [ ] { - 2.0 , - 1.0 , 0.0 , 1.0 , 2.0 , 3.0 , 4.0 , 5.0 , 6.0 , 7.0 , 8.0 } ; double [ ] results = new double [ ] { 0 , 0.2 , 0 , 0 , 0 , 0.5 , 0 , 0 , 0 , 0.3 , 0 } ; for ( int p = 0 ; p < ( points . length ) ; p ++ ) { double density = testDistribution . density ( poin...
org . junit . Assert . assertEquals ( results [ p ] , density , 0.0 )
extractsAssertion ( ) { gov . hhs . fha . nhinc . common . nhinccommon . AssertionType mock = mock ( gov . hhs . fha . nhinc . common . nhinccommon . AssertionType . class ) ; builder . setArguments ( mock ) ; "<AssertPlaceHolder>" ; } getAssertion ( ) { return assertionType ; }
org . junit . Assert . assertEquals ( mock , builder . getAssertion ( ) . get ( ) )
testTwoSeriesPerIsin ( ) { "<AssertPlaceHolder>" ; } getAvailableSeries ( ) { return series ; }
org . junit . Assert . assertEquals ( instance . getAvailableSeries ( ) . size ( ) , 4 )
whenDomPersistedTheLoadFunctionReturnsTheSameDom ( ) { java . lang . String dom = "Some<sp>DOM<sp>string" ; builder . persistDom ( "test-state" , dom ) ; "<AssertPlaceHolder>" ; } getDom ( java . lang . String ) { try { return com . google . common . io . Files . toString ( new java . io . File ( doms , ( name + ".html...
org . junit . Assert . assertThat ( builder . getDom ( "test-state" ) , org . hamcrest . core . Is . is ( dom ) )
testNederlandseNationaliteitWelNamenreeks ( ) { final java . util . List < nl . bzk . brp . model . basis . BerichtEntiteit > overtreders = brby0151 . voerRegelUit ( bouwHuidigeSituatie ( true ) , bouwNieuweSituatie ( NationaliteitcodeAttribuut . NL_NATIONALITEIT_CODE ) , null , null ) ; "<AssertPlaceHolder>" ; } size ...
org . junit . Assert . assertEquals ( 1 , overtreders . size ( ) )
setSubscriptionOwnerTest_emptyOwner ( ) { final java . lang . String ownerId = "" ; final java . lang . String tenantId = "someTenantId" ; org . oscm . domobjects . Tenant tenant = new org . oscm . domobjects . Tenant ( ) ; tenant . setTenantId ( tenantId ) ; org . oscm . domobjects . Organization organization = new or...
org . junit . Assert . assertTrue ( ( ( subscriptionToModify . getOwner ( ) ) == null ) )
shouldReturnMySqlConnection ( ) { fr . xephi . authme . settings . Settings settings = mock ( fr . xephi . authme . settings . Settings . class ) ; fr . xephi . authme . TestHelper . returnDefaultsForAllProperties ( settings ) ; com . zaxxer . hikari . HikariDataSource dataSource = mock ( com . zaxxer . hikari . Hikari...
org . junit . Assert . assertThat ( result , org . hamcrest . Matchers . equalTo ( connection ) )
testDbFailureUnderLoad ( ) { cnx . runUpdate ( "TestModule" 1 , 50 , TestHelpers . dpVip . getId ( ) ) ; cnx . commit ( ) ; com . enioka . jqm . test . helpers . TestHelpers . setNodesLogLevel ( "INFO" , cnx ) ; com . enioka . jqm . test . helpers . CreationTools . createJobDef ( null , true , "TestModule" 2 , null , "...
org . junit . Assert . assertEquals ( 1000 , com . enioka . jqm . test . helpers . TestHelpers . getOkCount ( this . getNewDbSession ( ) ) )
flat ( ) { org . smurn . jsift . Octave octave = new org . smurn . jsift . Octave ( java . util . Arrays . asList ( new org . smurn . jsift . Image ( 3 , 3 ) , new org . smurn . jsift . Image ( 3 , 3 ) , new org . smurn . jsift . Image ( 3 , 3 ) , new org . smurn . jsift . Image ( 3 , 3 ) ) , java . util . Arrays . asL...
org . junit . Assert . assertEquals ( expected , actual )
shouldGetAllDoublePropertyValues ( ) { int label = token . nodeLabel ( "Node" ) ; int prop = token . propertyKey ( "prop" ) ; int prip = token . propertyKey ( "prip" ) ; org . neo4j . internal . kernel . api . IndexReference index = schemaRead . index ( label , prop , prip ) ; try ( org . neo4j . internal . kernel . ap...
org . junit . Assert . assertEquals ( doublePropValues . get ( i ) , values . get ( i ) )
testSend ( ) { final net . violet . platform . api . actions . Action theAction = new net . violet . platform . api . actions . messages . SendMusicMessage ( ) ; final net . violet . platform . datamodel . Files theFile = new net . violet . platform . datamodel . mock . FilesMock ( "message" , MimeType . MIME_TYPES . A...
org . junit . Assert . assertNull ( theResult )
testListByProduct ( ) { createLink ( ) ; net . magja . model . product . Product product = products . get ( 0 ) ; try { final java . util . Set < net . magja . model . product . ProductLink > links = service . list ( product ) ; for ( net . magja . model . product . ProductLink productLink : links ) { net . magja . ser...
org . junit . Assert . assertFalse ( links . isEmpty ( ) )
testIsItemExist ( ) { wd . open ( org . finra . jtaf . ewd . widget . element . html . TableTest . url ) ; org . finra . jtaf . ewd . widget . ITable table = new org . finra . jtaf . ewd . widget . element . html . Table ( tableLocator ) ; java . util . Map < java . lang . String , java . lang . String > map = new java...
org . junit . Assert . assertTrue ( isExist )
testWithMsg ( ) { com . ieven . ext . response . DefaultResponse response = new com . ieven . ext . response . DefaultResponse ( 0 , "" ) ; System . out . println ( response ) ; "<AssertPlaceHolder>" ; } getMsg ( ) { return msg ; }
org . junit . Assert . assertEquals ( "" , response . getMsg ( ) )
timeComponent1 ( ) { net . time4j . PlainTimestamp tsp = net . time4j . PlainTimestamp . of ( 2014 , 8 , 21 , 14 , 30 ) ; tsp = tsp . with ( PlainTime . COMPONENT , net . time4j . PlainTime . of ( 23 , 59 ) ) ; "<AssertPlaceHolder>" ; } of ( int , int , int , int , int ) { return net . time4j . PlainTimestamp . of ( ye...
org . junit . Assert . assertThat ( tsp , org . hamcrest . CoreMatchers . is ( net . time4j . PlainTimestamp . of ( 2014 , 8 , 21 , 23 , 59 ) ) )
testTruncatedRequest ( ) { startTestServer ( ( request ) -> request . getBody ( ) . map ( ( body ) -> io . datakernel . http . HttpResponse . ok200 ( ) . withBody ( body ) ) ) ; java . lang . String crlf = new java . lang . String ( CRLF , UTF_8 ) ; java . lang . String chunkedRequest = ( ( ( ( ( ( ( ( "POST<sp>/<sp>HT...
org . junit . Assert . assertNull ( body )
testGetInstance_applicationContext_returnsSameInstance ( ) { org . eclipse . rap . rwt . internal . SingletonManager . install ( applicationContext ) ; org . eclipse . rap . rwt . internal . SingletonManager instance1 = org . eclipse . rap . rwt . internal . SingletonManager . getInstance ( applicationContext ) ; org ....
org . junit . Assert . assertSame ( instance1 , instance2 )
shouldFailWebSocketConnectionWhenServerSendsMaskWithTextFrame ( ) { final org . apache . mina . core . service . IoHandler handler = context . mock ( org . apache . mina . core . service . IoHandler . class ) ; context . checking ( new org . kaazing . gateway . transport . test . Expectations ( ) { { oneOf ( handler ) ...
org . junit . Assert . assertTrue ( connectFuture . isConnected ( ) )
isGreaterOrEqualToWorking ( ) { if ( isBatoo ( ) ) { return ; } final java . lang . String query = "select<sp>r<sp>from<sp>RegularEntityTwo<sp>r<sp>" + "<sp>where<sp>r.stringAttribute<sp>in<sp>(select<sp>sub.stringAttribute<sp>from<sp>RegularEntityTwo<sp>sub<sp>where<sp>sub.id<sp>>=<sp>2)" ; final java . util . List < ...
org . junit . Assert . assertTrue ( ( ( resultFromJPQL . size ( ) ) > 0 ) )
testSerialization ( ) { org . jfree . chart . title . TextTitle t = new org . jfree . chart . title . TextTitle ( "Title" ) ; org . jfree . chart . annotations . XYTitleAnnotation a1 = new org . jfree . chart . annotations . XYTitleAnnotation ( 1.0 , 2.0 , t ) ; org . jfree . chart . annotations . XYTitleAnnotation a2 ...
org . junit . Assert . assertEquals ( a1 , a2 )
compareTestEmpty ( ) { io . toast . tk . runtime . block . TestBlockRunner blockRunner = new io . toast . tk . runtime . block . TestBlockRunner ( ) ; java . lang . String actionSentence = "Comparer<sp>**<sp>a<sp>*$var1*" ; io . toast . tk . runtime . bean . ActionCommandDescriptor actionDescriptor = blockRunner . find...
org . junit . Assert . assertNotNull ( actionDescriptor )
typical ( ) { java . util . Set < javax . validation . ConstraintViolation < com . hotels . bdp . circustrain . api . conf . ReplicaCatalog > > violations = validator . validate ( replicaCatalog ) ; "<AssertPlaceHolder>" ; } validate ( com . hotels . bdp . circustrain . metrics . conf . Graphite ) { if ( graphite == nu...
org . junit . Assert . assertThat ( violations . size ( ) , org . hamcrest . CoreMatchers . is ( 0 ) )
setAria ( ) { org . mixer2 . jaxb . xhtml . Html html = org . mixer2 . xhtml . DataAttrTest . m2e . loadHtmlTemplate ( new java . io . File ( templateFilePath ) ) ; html . getById ( "span2" , org . mixer2 . jaxb . xhtml . Span . class ) . setAria ( "hoge" , "" ) ; html = org . mixer2 . xhtml . DataAttrTest . m2e . load...
org . junit . Assert . assertThat ( ariaHoge , org . hamcrest . CoreMatchers . is ( "" ) )
testNames ( ) { com . gistlabs . mechanize . util . css_query . NodeSelector < com . gistlabs . mechanize . document . json . node . JsonNode > selector = build ( "{<sp>\"a\"<sp>:<sp>2,<sp>\"b\"<sp>:<sp>{<sp>\"x\"<sp>:<sp>\"y\"<sp>},<sp>\"results\"<sp>:<sp>[<sp>{<sp>\"a\"<sp>:<sp>1<sp>},<sp>{<sp>\"b\"<sp>:<sp>2<sp>}<sp...
org . junit . Assert . assertEquals ( 4 , result . size ( ) )
testGetWikiPage ( ) { System . out . println ( "getWikiPage" ) ; kg . apc . jmeter . vizualizers . ResponseCodesPerSecondGui instance = new kg . apc . jmeter . vizualizers . ResponseCodesPerSecondGui ( ) ; java . lang . String expResult = "" ; java . lang . String result = instance . getWikiPage ( ) ; "<AssertPlaceHold...
org . junit . Assert . assertTrue ( ( ( result . length ( ) ) > 0 ) )
testUpdateIncreasing ( ) { final org . neo4j . graphalgo . core . utils . queue . IntPriorityQueue queue = org . neo4j . graphalgo . core . utils . queue . IntPriorityQueue . min ( ) ; final int iterations = com . carrotsearch . randomizedtesting . RandomizedTest . between ( 5 , 50 ) ; for ( int i = 1 ; i <= iterations...
org . junit . Assert . assertEquals ( top , queue . top ( ) )
shouldProperlyAckTuples ( ) { ackTuplesPolicy . addTupleMessageIds ( tuple1 , java . util . Collections . singletonList ( "message1" ) ) ; ackTuplesPolicy . addTupleMessageIds ( tuple2 , java . util . Collections . singletonList ( "message2" ) ) ; org . apache . metron . common . writer . BulkWriterResponse response = ...
org . junit . Assert . assertEquals ( 0 , ackTuplesPolicy . getTupleMessageMap ( ) . size ( ) )
whenAddTwoChildAndTwoSubChildToEachChildThenBalancedTree ( ) { tree . addChild ( nodeOne , "1" ) ; tree . addChild ( nodeTwo , "2" ) ; nodeOne . addChild ( new vkaretko . TreeNode ( ) , "3" ) ; nodeOne . addChild ( new vkaretko . TreeNode ( ) , "4" ) ; nodeTwo . addChild ( new vkaretko . TreeNode ( ) , "5" ) ; nodeTwo ...
org . junit . Assert . assertThat ( tree . isBalancedTree ( ) , org . hamcrest . core . Is . is ( true ) )
testSetSourceVersionHigherThanDefaultTargetVersion ( ) { commandController . initialize ( ) ; commandController . setValueFor ( "sourceVersion" , CompilerVersion . JAVA_1_8 ) ; commandController . setValueFor ( "targetVersion" , CompilerVersion . JAVA_1_7 ) ; "<AssertPlaceHolder>" ; } isValid ( ) { return isInstalled (...
org . junit . Assert . assertFalse ( commandController . isValid ( ) )
testSimpleRepositoryDefinitionClass ( ) { org . eclipse . jdt . core . IType type = javaProject . findType ( "org.ClassWithRepositoryDefinition" ) ; "<AssertPlaceHolder>" ; } isSpringDataRepository ( org . eclipse . jdt . core . IType ) { if ( type == null ) { return false ; } try { org . eclipse . jdt . core . IAnnota...
org . junit . Assert . assertTrue ( org . springframework . ide . eclipse . data . jdt . core . RepositoryInformation . isSpringDataRepository ( type ) )
testResolveRepositoryNameWithNamespaceAndSHA256 ( ) { com . github . dockerjava . core . NameParser . HostnameReposName resolved = com . github . dockerjava . core . NameParser . resolveRepositoryName ( "namespace/repository@sha256:sha256" ) ; "<AssertPlaceHolder>" ; } resolveRepositoryName ( java . lang . String ) { i...
org . junit . Assert . assertEquals ( resolved , new com . github . dockerjava . core . NameParser . HostnameReposName ( com . github . dockerjava . api . model . AuthConfig . DEFAULT_SERVER_ADDRESS , "namespace/repository@sha256:sha256" ) )
testStringLiteralExp01 ( ) { testpackage . Class1 class1 ; class1 = new testpackage . Class1 ( ) ; "<AssertPlaceHolder>" ; } testStringLiteralExp01 ( ) { testpackage . Class1 class1 ; class1 = new testpackage . Class1 ( ) ; org . junit . Assert . assertEquals ( "some" , class1 . testStringLiteralExp01 ( ) ) ; }
org . junit . Assert . assertEquals ( "some" , class1 . testStringLiteralExp01 ( ) )
testAnd2Expression ( ) { com . hundredwordsgof . interpreter . Context context = new com . hundredwordsgof . interpreter . Context ( ) ; com . hundredwordsgof . interpreter . TerminalExpression firstTerminalExpression = new com . hundredwordsgof . interpreter . TerminalExpression ( false ) ; com . hundredwordsgof . int...
org . junit . Assert . assertEquals ( false , context . isResult ( ) )
concurrentInsertionsAndReads ( ) { org . apache . bookkeeper . util . collections . ConcurrentLongLongPairHashMap map = new org . apache . bookkeeper . util . collections . ConcurrentLongLongPairHashMap ( ) ; java . util . concurrent . ExecutorService executor = java . util . concurrent . Executors . newCachedThreadPoo...
org . junit . Assert . assertEquals ( map . size ( ) , ( n * nThreads ) )
brownReaderTest2 ( ) { java . io . File referenceFile = new java . io . File ( "src/test/resources/brown_ims.txt" ) ; java . io . File outputFile = new java . io . File ( "target/test-output/brown_ims.txt" ) ; org . apache . uima . collection . CollectionReaderDescription reader = createReaderDescription ( de . tudarms...
org . junit . Assert . assertEquals ( reference , output )
shouldMakeContextAvailable ( ) { org . neo4j . kernel . api . proc . Key < java . lang . String > someKey = key ( "someKey" , java . lang . String . class ) ; procs . register ( new org . neo4j . kernel . api . proc . CallableUserFunction . BasicUserFunction ( signature ) { @ org . neo4j . kernel . impl . proc . Overri...
org . junit . Assert . assertThat ( result , org . hamcrest . CoreMatchers . equalTo ( org . neo4j . values . storable . Values . of ( "hello,<sp>world" ) ) )
itShouldNotBeCreatedWhenThereAreNotEnoughSubSenders ( ) { io . datakernel . rpc . client . sender . helper . RpcClientConnectionPoolStub pool = new io . datakernel . rpc . client . sender . helper . RpcClientConnectionPoolStub ( ) ; io . datakernel . rpc . client . sender . helper . RpcSenderStub connection1 = new io ....
org . junit . Assert . assertNull ( roundRobin . createSender ( pool ) )
should_get_yml_file_content ( ) { java . lang . String yml = getResourceContent ( "yml/demo_flow.yaml" ) ; com . flow . platform . api . domain . node . Node flow = nodeService . find ( flowName ) . root ( ) ; setFlowToReady ( flow ) ; nodeService . updateByYml ( com . flow . platform . api . util . PathUtil . build ( ...
org . junit . Assert . assertEquals ( yml , content )
testSetTempLeader ( ) { java . lang . String timestamp = java . lang . String . valueOf ( java . lang . System . nanoTime ( ) ) ; net . floodlightcontroller . hasupport . HAServerTest . tc . send ( ( "IWON<sp>2<sp>" + timestamp ) ) ; net . floodlightcontroller . hasupport . HAServerTest . tc . send ( ( "LEADER<sp>2<sp>...
org . junit . Assert . assertEquals ( net . floodlightcontroller . hasupport . HAServerTest . ae . gettempLeader ( ) , "2" )
shouldCloseExhaustedCursors ( ) { org . neo4j . cursor . RawCursor < org . neo4j . index . internal . gbptree . Hit < org . neo4j . kernel . impl . index . labelscan . LabelScanKey , org . neo4j . kernel . impl . index . labelscan . LabelScanValue > , java . io . IOException > cursor = mock ( org . neo4j . cursor . Raw...
org . junit . Assert . assertTrue ( toRemoveFrom . isEmpty ( ) )
testFlush ( ) { try ( org . apache . accumulo . core . client . AccumuloClient client = org . apache . accumulo . core . client . Accumulo . newClient ( ) . from ( getClientProperties ( ) ) . build ( ) ) { java . lang . String [ ] tableNames = init ( client ) ; writeSome ( client , tableNames [ 1 ] , org . apache . acc...
org . junit . Assert . assertEquals ( org . apache . accumulo . test . functional . DurabilityIT . N , readSome ( client , tableNames [ 1 ] ) )
testEncodeUri1 ( ) { java . lang . String pattern = "mailto:venus@163.com?subject={}&body={}" ; java . lang . String uriString = com . feilong . tools . slf4j . Slf4jUtil . format ( pattern , "" , "<br>" ) ; java . lang . String result = com . feilong . core . net . URIUtil . encodeUri ( uriString , com . feilong . cor...
org . junit . Assert . assertEquals ( com . feilong . tools . slf4j . Slf4jUtil . format ( pattern , com . feilong . core . net . URIUtil . encode ( "" , com . feilong . core . CharsetType . UTF8 ) , com . feilong . core . net . URIUtil . encode ( "<br>" , com . feilong . core . CharsetType . UTF8 ) ) , result )
givenPatternIsEmpty_whenGetMatchSpecificity_thenReturnsZero ( ) { com . brandwatch . robots . matching . Matcher < java . lang . String > matcher = com . brandwatch . robots . matching . MatcherUtilsImplTest . newPatternMatcher ( "" ) ; java . lang . String agent = "googlebot" ; com . google . common . base . Optional ...
org . junit . Assert . assertThat ( specificity . get ( ) , org . hamcrest . Matchers . equalTo ( 0.0 ) )
invalidArrayIndex ( ) { try { singleElemArrayState ( ) . childFor ( "key" ) ; org . junit . Assert . fail ( "did<sp>not<sp>throw<sp>exception" ) ; } catch ( org . everit . json . schema . SchemaException e ) { org . everit . json . schema . SchemaException expected = new org . everit . json . schema . SchemaException (...
org . junit . Assert . assertEquals ( expected , e )
testEmptyLinesInLabelWithAutoWrap ( ) { org . geotools . renderer . label . LabelPainter painter = new org . geotools . renderer . label . LabelPainter ( graphics , org . geotools . renderer . label . LabelCacheImpl . LabelRenderingMode . STRING ) ; org . geotools . renderer . label . LabelCacheItem labelItem = new org...
org . junit . Assert . assertEquals ( 3 , painter . getLineCount ( ) )
subscribeToAttributeCallCallsSubscriptionManagerWithCorrectArguments ( ) { io . joynr . pubsub . subscription . AttributeSubscriptionListener < java . lang . String > listener = new io . joynr . pubsub . subscription . AttributeSubscriptionAdapter ( ) ; io . joynr . pubsub . SubscriptionQos subscriptionQos = new joynr ...
org . junit . Assert . assertNotNull ( connector )
testBytes2Double ( ) { double [ ] testVals = new double [ ] { Double . MIN_VALUE , - 1.1 , 0 , 1.1 , Double . MAX_VALUE } ; for ( double testVal : testVals ) { byte [ ] convertedBytes = com . tc . util . Conversion . double2Bytes ( testVal ) ; double convertedDouble = com . tc . util . Conversion . bytes2Double ( conve...
org . junit . Assert . assertTrue ( ( testVal == convertedDouble ) )
shouldIsEmptyReturnTrueForEmptyStringValue ( ) { lookup . setFieldValue ( "" ) ; boolean result = lookup . isEmpty ( ) ; "<AssertPlaceHolder>" ; } isEmpty ( ) { return ( org . apache . commons . lang3 . StringUtils . isEmpty ( autocompleteCode ) ) && ( ! ( hasSelectedEntity ( ) ) ) ; }
org . junit . Assert . assertTrue ( result )
testWithin_beginning ( ) { final org . apache . rya . api . function . temporal . WithinTemporalInterval function = new org . apache . rya . api . function . temporal . WithinTemporalInterval ( ) ; final org . eclipse . rdf4j . model . Value [ ] args = new org . eclipse . rdf4j . model . Value [ 2 ] ; args [ 0 ] = org ...
org . junit . Assert . assertEquals ( org . apache . rya . api . function . temporal . WithinTemporalFunctionsTest . VF . createLiteral ( false ) , rez )
type_long ( ) { com . asakusafw . dmdl . directio . json . driver . ModelLoader loaded = generateJavaFromLines ( new java . lang . String [ ] { "@directio.json" , "simple<sp>=<sp>{" , "<sp>value<sp>:<sp>LONG;" , "};" } ) ; byte [ ] contents = restore ( loaded , loaded . newModel ( "Simple" ) . setOption ( "value" , new...
org . junit . Assert . assertThat ( com . asakusafw . dmdl . directio . json . driver . JsonFormatEmitterTest . parse ( contents ) , com . asakusafw . dmdl . directio . json . driver . JsonFormatEmitterTest . contains ( com . asakusafw . dmdl . directio . json . driver . JsonFormatEmitterTest . map ( "value" , "1" ) ) ...
testNormalOperatorInitialization ( ) { org . apache . hyracks . dataflow . std . intersect . IntersectOperatorDescriptor operatorDescriptor = new org . apache . hyracks . dataflow . std . intersect . IntersectOperatorDescriptor ( mockRegistry , nInputs , compareFields , normalizedKeyFactory , comparatorFactory , outRec...
org . junit . Assert . assertEquals ( nInputs , operatorDescriptor . getInputArity ( ) )
testMyBinaryLast ( ) { System . out . println ( "binarySearch" ) ; int [ ] index = new int [ ] { 10 , 11 , 12 , 13 , 14 } ; int key = 14 ; int begin = 0 ; int end = 5 ; int expResult = 4 ; int result = org . genemania . engine . matricks . Utils . myBinarySearch ( index , key , begin , end ) ; "<AssertPlaceHolder>" ; }...
org . junit . Assert . assertEquals ( expResult , result )
repositoryServiceUtilTest ( ) { org . osgi . framework . ServiceReference < com . liferay . blade . api . Migration > sr = _context . getServiceReference ( com . liferay . blade . api . Migration . class ) ; com . liferay . blade . api . Migration m = _context . getService ( sr ) ; java . util . List < com . liferay . ...
org . junit . Assert . assertEquals ( "" , 1 , problems . size ( ) )
testNormaleActie ( ) { java . util . List < nl . bzk . brp . model . validatie . Melding > meldingen = uitvoerder . voerUit ( getInschrijvingGeboorteActie ( ) ) ; "<AssertPlaceHolder>" ; org . mockito . Mockito . verify ( persoonRepository ) . opslaanNieuwPersoon ( org . mockito . Matchers . any ( nl . bzk . brp . mode...
org . junit . Assert . assertNull ( meldingen )
shouldRaiseConstraintsViolation ( ) { org . agoncal . book . javaee7 . chapter03 . ex10 . Item10 book = new org . agoncal . book . javaee7 . chapter03 . ex10 . Item10 ( ) ; java . util . Set < javax . validation . ConstraintViolation < org . agoncal . book . javaee7 . chapter03 . ex10 . Item10 > > violations = org . ag...
org . junit . Assert . assertEquals ( 1 , violations . size ( ) )
testReadEntryWithSpacesAndPlus ( ) { java . net . URL jarFile = org . robovm . objc . JARURLProtocolTest . createJar ( "resource<sp>with<sp>spaces<sp>and+.txt" , "Hello<sp>world!!!" ) ; org . robovm . apple . foundation . NSURL nsUrl = new org . robovm . apple . foundation . NSURL ( org . robovm . objc . JARURLProtocol...
org . junit . Assert . assertEquals ( expected , actual )
toString_URIs ( ) { final org . eclipse . rdf4j . query . impl . MapBindingSet originalBindingSet = new org . eclipse . rdf4j . query . impl . MapBindingSet ( ) ; originalBindingSet . addBinding ( "x" , org . apache . rya . indexing . pcj . storage . accumulo . BindingSetStringConverterTest . VF . createIRI ( "http://a...
org . junit . Assert . assertEquals ( expected , bindingSetString )
testMOD_4 ( ) { org . ethereum . vm . VM vm = new org . ethereum . vm . VM ( ) ; program = new org . ethereum . vm . Program ( org . spongycastle . util . encoders . Hex . decode ( "600406" ) , invoke ) ; try { vm . step ( program ) ; vm . step ( program ) ; vm . step ( program ) ; } finally { "<AssertPlaceHolder>" ; }...
org . junit . Assert . assertTrue ( program . isStopped ( ) )
getMtryAllTest ( ) { when ( randomForest . getMtry ( ) ) . thenReturn ( ( - 1 ) ) ; edu . oswego . csc480_hci521_2013 . client . presenters . adapters . ConfusionMatrixAdapter adapter = new edu . oswego . csc480_hci521_2013 . client . presenters . adapters . ConfusionMatrixAdapter ( randomForest , modelParameters ) ; "...
org . junit . Assert . assertEquals ( adapter . getMtry ( ) , "All" )
guidSize ( ) { long s = org . bridj . BridJ . sizeOf ( org . bridj . cpp . com . GUID . class ) ; "<AssertPlaceHolder>" ; } sizeOf ( java . lang . reflect . Type ) { java . lang . Class < ? > c = org . bridj . util . Utils . getClass ( type ) ; if ( c . isPrimitive ( ) ) { return org . bridj . StructUtils . primTypeLen...
org . junit . Assert . assertEquals ( 16 , s )
testRebind ( ) { org . mobicents . tools . smpp . balancer . SpliterModeRebindTest . Locker locker = new org . mobicents . tools . smpp . balancer . SpliterModeRebindTest . Locker ( org . mobicents . tools . smpp . balancer . SpliterModeRebindTest . clientNumbers ) ; new org . mobicents . tools . smpp . balancer . Spli...
org . junit . Assert . assertTrue ( isCorrectEnqLinkRequest )
testFindByPrimaryKeyExisting ( ) { com . liferay . portal . workflow . kaleo . model . KaleoTaskAssignmentInstance newKaleoTaskAssignmentInstance = addKaleoTaskAssignmentInstance ( ) ; com . liferay . portal . workflow . kaleo . model . KaleoTaskAssignmentInstance existingKaleoTaskAssignmentInstance = _persistence . fi...
org . junit . Assert . assertEquals ( existingKaleoTaskAssignmentInstance , newKaleoTaskAssignmentInstance )
testStream ( ) { org . batfish . datamodel . IntegerSpace space = org . batfish . datamodel . IntegerSpace . unionOf ( new org . batfish . datamodel . SubRange ( 1 , 5 ) , new org . batfish . datamodel . SubRange ( ( - 3 ) , ( - 1 ) ) ) ; java . util . List < java . lang . Integer > streamed = space . stream ( ) . boxe...
org . junit . Assert . assertThat ( streamed , org . hamcrest . Matchers . equalTo ( com . google . common . collect . ImmutableList . of ( ( - 3 ) , ( - 2 ) , ( - 1 ) , 1 , 2 , 3 , 4 , 5 ) ) )
testGetSetDateTime ( ) { System . out . println ( "getDateTime" ) ; java . time . LocalDateTime cal = java . time . LocalDateTime . now ( ) ; com . sumzerotrading . data . BarData instance = new com . sumzerotrading . data . BarData ( ) ; java . util . Date expResult = new java . util . Date ( ) ; instance . setDateTim...
org . junit . Assert . assertEquals ( cal , result )
testFormattingUtil ( ) { TEST_DATA_MAP . forEach ( ( timeInMinutes , expectedResult ) -> { java . lang . String formattedMinutes = de . pbauerochse . worklogviewer . util . FormattingUtil . formatMinutes ( timeInMinutes ) ; "<AssertPlaceHolder>" ; } ) ; } formatMinutes ( long ) { return de . pbauerochse . worklogviewer...
org . junit . Assert . assertEquals ( expectedResult , formattedMinutes )
testConstructor ( ) { org . apache . ogt . http . conn . scheme . SchemeRegistry schreg = createSchemeRegistry ( ) ; org . apache . ogt . http . impl . conn . tsccm . ThreadSafeClientConnManager mgr = new org . apache . ogt . http . impl . conn . tsccm . ThreadSafeClientConnManager ( schreg ) ; "<AssertPlaceHolder>" ; ...
org . junit . Assert . assertNotNull ( mgr )
testTapProducerException1 ( ) { exception = new org . tap4j . producer . ProducerException ( ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertNotNull ( exception )
testInactiveByDefault ( ) { event = new org . smpp . debug . DefaultEvent ( ) ; event . write ( "HELLO" ) ; "<AssertPlaceHolder>" ; } toString ( ) { java . lang . String s = super . toString ( ) ; if ( ( pdu ) != null ) { s += "\nPDU<sp>debug<sp>string:<sp>" + ( pdu . debugString ( ) ) ; } return s ; }
org . junit . Assert . assertEquals ( "" , out . toString ( ) )
loadValidPcap ( ) { java . util . concurrent . BlockingQueue < nl . sidn . pcap . support . PacketCombination > queue = new java . util . concurrent . LinkedBlockingQueue < nl . sidn . pcap . support . PacketCombination > ( ) ; nl . sidn . pcap . load . LoaderThread lt = new nl . sidn . pcap . load . LoaderThread ( que...
org . junit . Assert . assertEquals ( 5 , queue . size ( ) )
testGetTypeOfSheep ( ) { int age = 10 ; it . polimi . deib . provaFinale2014 . andrea . celli_stefano1 . cereda . gameModel . animals . TypeOfSheep tos = TypeOfSheep . MALESHEEP ; it . polimi . deib . provaFinale2014 . andrea . celli_stefano1 . cereda . gameModel . objectsOfGame . Terrain position = it . polimi . deib ...
org . junit . Assert . assertEquals ( sheep . getTypeOfSheep ( ) , tos )