input
stringlengths
28
18.7k
output
stringlengths
39
1.69k
simpleTest ( ) { macrobase . analysis . summary . itemset . List < macrobase . analysis . summary . itemset . Set < java . lang . Integer > > txns = new macrobase . analysis . summary . itemset . ArrayList ( ) ; txns . add ( intIfy ( "a,<sp>b,<sp>c" ) ) ; txns . add ( intIfy ( "a,<sp>b" ) ) ; txns . add ( intIfy ( "a" ...
org . junit . Assert . assertEquals ( 3 , itemsets . size ( ) )
testInsertBeforeIndex0 ( ) { org . antlr . v4 . tool . LexerGrammar g = new org . antlr . v4 . tool . LexerGrammar ( ( "lexer<sp>grammar<sp>T;\n" + ( ( "A<sp>:<sp>\'a\';\n" + "B<sp>:<sp>\'b\';\n" ) + "C<sp>:<sp>\'c\';\n" ) ) ) ; org . antlr . v4 . runtime . LexerInterpreter lexEngine = g . createLexerInterpreter ( new ...
org . junit . Assert . assertEquals ( expecting , result )
testGetCaseByURI ( ) { java . lang . String case_1 = "http://stefanhuber.at/something/which/not/exists" ; org . xeneo . core . task . Case myCase = engine . getCaseByURI ( case_1 ) ; "<AssertPlaceHolder>" ; } getCaseURI ( ) { return this . caseURI ; }
org . junit . Assert . assertEquals ( myCase . getCaseURI ( ) , case_1 )
testNullDefaultsToZero ( ) { java . util . Map < java . lang . Object , java . lang . Object > map = makeDefaultValueForNullMap ( java . lang . Integer . valueOf ( 0 ) ) ; map . put ( "key" , null ) ; "<AssertPlaceHolder>" ; } get ( java . lang . Object ) { return onget . evaluate ( map , ( ( K ) ( key ) ) ) ; }
org . junit . Assert . assertEquals ( java . lang . Integer . valueOf ( 0 ) , map . get ( "key" ) )
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 ( ddmStructures . isEmpty ( ) )
testGetFittingBoxWhenAspectRatioMatchesDimensions ( ) { java . io . InputStream data = this . getClass ( ) . getResourceAsStream ( "/120x100.gif" ) ; org . mayocat . attachment . model . LoadedAttachment attachment = new org . mayocat . attachment . model . LoadedAttachment ( ) ; attachment . setData ( new org . mayoca...
org . junit . Assert . assertNull ( box . orNull ( ) )
testGet ( ) { org . opennms . netmgt . snmp . SnmpAgentConfig agentConfig = getAgentConfig ( ) ; org . opennms . netmgt . snmp . SnmpValue val = org . opennms . netmgt . snmp . SnmpUtils . get ( agentConfig , org . opennms . netmgt . snmp . SnmpObjId . get ( ".1.3.6.1.2.1.1.2.0" ) ) ; "<AssertPlaceHolder>" ; } get ( ja...
org . junit . Assert . assertNotNull ( val )
testExportWithoutTime ( ) { org . geotools . geometry . jts . ReferencedEnvelope latLonBox = new org . geotools . geometry . jts . ReferencedEnvelope ( 12 , 13 , ( - 30 ) , ( - 31 ) , org . geotools . referencing . crs . DefaultGeographicCRS . WGS84 ) ; org . esa . beam . util . kmz . KmlGroundOverlay groundOverlay = n...
org . junit . Assert . assertEquals ( expected , builder . toString ( ) )
testUnionWithExt ( ) { final org . opendaylight . yangtools . yang . model . api . SchemaContext result = org . opendaylight . yangtools . yang . parser . rfc7950 . reactor . RFC7950Reactors . defaultReactor ( ) . newBuild ( ) . addSource ( org . opendaylight . yangtools . yang . stmt . StmtTestUtils . sourceForResourc...
org . junit . Assert . assertNotNull ( result )
testCreate ( ) { org . oscarehr . common . model . BedDemographicHistorical entity = new org . oscarehr . common . model . BedDemographicHistorical ( ) ; org . oscarehr . common . dao . utils . EntityDataGenerator . generateTestDataForModelClass ( entity ) ; entity . getId ( ) . setBedId ( 1 ) ; entity . getId ( ) . se...
org . junit . Assert . assertNotNull ( entity . getId ( ) )
getContextMenuTest ( ) { org . eclipse . reddeer . eclipse . ui . console . ConsoleView consoleView = new org . eclipse . reddeer . eclipse . ui . console . ConsoleView ( ) ; consoleView . open ( ) ; org . eclipse . reddeer . eclipse . test . ui . console . ConsoleViewTest . runTestClass ( org . eclipse . reddeer . ecl...
org . junit . Assert . assertNotNull ( clear )
testSetHead ( ) { org . bukkit . inventory . ItemStack itemStack = mock ( org . bukkit . inventory . ItemStack . class ) ; when ( itemStack . getType ( ) ) . thenReturn ( Material . PLAYER_HEAD ) ; org . bukkit . inventory . meta . ItemMeta im = mock ( org . bukkit . inventory . meta . ItemMeta . class ) ; when ( im . ...
org . junit . Assert . assertEquals ( newItem , p . getItems ( ) . get ( 0 ) )
testExecuteUnexistingJob ( ) { org . flowable . engine . runtime . ProcessInstance processInstance = runtimeService . startProcessInstanceByKey ( "timerProcess" ) ; org . flowable . job . api . Job timerJob = managementService . createTimerJobQuery ( ) . processInstanceId ( processInstance . getId ( ) ) . singleResult ...
org . junit . Assert . assertNotNull ( timerJob )
shouldHasPermission ( ) { final java . util . Map < java . lang . String , char [ ] > perms = new java . util . HashMap ( ) ; perms . put ( ApiPermission . DOCUMENTATION . name ( ) , new char [ ] { RolePermissionAction . CREATE . getId ( ) , RolePermissionAction . READ . getId ( ) , RolePermissionAction . UPDATE . getI...
org . junit . Assert . assertTrue ( hasPermission )
testSerialization ( ) { org . jfree . chart . renderer . category . StatisticalBarRenderer r1 = new org . jfree . chart . renderer . category . StatisticalBarRenderer ( ) ; java . io . ByteArrayOutputStream buffer = new java . io . ByteArrayOutputStream ( ) ; java . io . ObjectOutput out = new java . io . ObjectOutputS...
org . junit . Assert . assertEquals ( r1 , r2 )
testStop ( ) { java . lang . Object [ ] expected = new java . lang . Object [ ] { 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 10 , 11 , 12 , 13 , 14 } ; java . lang . Object [ ] actual = result . stream ( ) . map ( Token :: getStop ) . toArray ( ) ; "<AssertPlaceHolder>" ; } stream ( ) { return java . util . stream . StreamSup...
org . junit . Assert . assertArrayEquals ( expected , actual )
testFindRolesInsertedByLiquibase ( ) { try ( final java . sql . Connection connection = embeddedDatabaseRule . getConnection ( ) ) { final java . util . List < java . lang . String > roles = new org . zapodot . junit . db . plugin . dao . RoleDao ( connection ) . rolesForUser ( "Ada" ) ; "<AssertPlaceHolder>" ; } } rol...
org . junit . Assert . assertEquals ( 2 , roles . size ( ) )
testSubWithInfinityOverlow ( ) { "<AssertPlaceHolder>" ; } subWithInfinity ( long , long ) { if ( ( ( a == ( Long . MAX_VALUE ) ) && ( b == ( Long . MAX_VALUE ) ) ) || ( ( a == ( Long . MIN_VALUE ) ) && ( b == ( Long . MIN_VALUE ) ) ) ) { throw new java . lang . ArithmeticException ( "NaN" ) ; } if ( ( a == ( Long . MI...
org . junit . Assert . assertThat ( subWithInfinity ( ( ( ( Long . MAX_VALUE ) / 2 ) + 100 ) , ( ( ( - ( Long . MAX_VALUE ) ) / 2 ) - 100 ) ) , org . hamcrest . Matchers . is ( Long . MAX_VALUE ) )
makesParentDirectory ( ) { java . io . File parent = new java . io . File ( new java . io . File ( tmpf . getRoot ( ) , "some" ) , "dir" ) ; com . googlecode . jslint4java . maven . ReportWriter rw = new com . googlecode . jslint4java . maven . ReportWriterImpl ( new java . io . File ( parent , com . googlecode . jslin...
org . junit . Assert . assertThat ( parent . exists ( ) , org . hamcrest . CoreMatchers . is ( true ) )
should_consider_CIGAR ( ) { java . util . List < htsjdk . samtools . SAMRecord > reads ; au . edu . wehi . idsv . ReferenceCoverageLookup lookup ; reads = L ( Read ( 0 , 2 , "2S3M2S" ) ) ; lookup = init ( reads , 1 ) ; "<AssertPlaceHolder>" ; 2 3 4 2 3 4 } readPairsSupportingNoBreakendAfter ( int , int ) { ensure ( ref...
org . junit . Assert . assertEquals ( 0 , lookup . readPairsSupportingNoBreakendAfter ( 0 , 1 ) )
testCreateInjector ( ) { org . apache . hadoop . yarn . webapp . test . TestWebAppTests . Bar bar = new org . apache . hadoop . yarn . webapp . test . TestWebAppTests . Bar ( ) ; com . google . inject . Injector injector = org . apache . hadoop . yarn . webapp . test . WebAppTests . createMockInjector ( org . apache . ...
org . junit . Assert . assertSame ( bar , injector . getInstance ( org . apache . hadoop . yarn . webapp . test . TestWebAppTests . Foo . class ) )
noName ( ) { java . util . Set < jsprit . core . problem . job . Service > serviceSet = new java . util . HashSet < jsprit . core . problem . job . Service > ( ) ; jsprit . core . problem . job . Service one = Service . Builder . newInstance ( "service" ) . addSizeDimension ( 0 , 10 ) . setLocation ( jsprit . core . pr...
org . junit . Assert . assertTrue ( serviceSet . isEmpty ( ) )
ackWithoutArgs ( ) { final java . util . concurrent . BlockingQueue < java . lang . Object > values = new java . util . concurrent . LinkedBlockingQueue < java . lang . Object > ( ) ; socket = client ( ) ; socket . on ( Socket . EVENT_CONNECT , new com . github . nkzawa . emitter . Emitter . Listener ( ) { @ com . gith...
org . junit . Assert . assertThat ( ( ( java . lang . Integer ) ( values . take ( ) ) ) , org . hamcrest . CoreMatchers . is ( 0 ) )
testViewMarketOrder ( ) { java . util . concurrent . atomic . AtomicInteger marketOrderIdCounter = testConfig . getMarketOrderIdCounter ( ) ; com . jboss . trading . ws . client . test . MarketOrder marketOrder = tradingServicesClient . viewMarketOrder ( marketOrderIdCounter . getAndIncrement ( ) ) ; "<AssertPlaceHolde...
org . junit . Assert . assertNotNull ( marketOrder )
testProfilerWithoutPackage ( ) { java . lang . String args = "server=localhost,port=8125,profilers=MemoryProfiler" ; com . etsy . statsd . profiler . Arguments arguments = com . etsy . statsd . profiler . Arguments . parseArgs ( args ) ; java . util . Set < java . lang . Class < ? extends com . etsy . statsd . profiler...
org . junit . Assert . assertEquals ( expected , arguments . profilers )
test_hashCode ( ) { java . lang . String securityName = "securityName" ; java . lang . String accessId = "user:realm/uniqueId" ; java . security . Principal principal = new com . ibm . ws . security . authentication . principals . WSPrincipal ( securityName , accessId , WSPrincipal . AUTH_METHOD_PASSWORD ) ; "<AssertPl...
org . junit . Assert . assertEquals ( ( ( principal . toString ( ) ) + accessId ) . hashCode ( ) , principal . hashCode ( ) )
ifAppropriateAttributesInDifferentMBeansHaveDifferentValueReturnsNull ( ) { io . datakernel . jmx . JmxMBeansAttributesTest . MBeanWithSingleIntAttr mbean_1 = new io . datakernel . jmx . JmxMBeansAttributesTest . MBeanWithSingleIntAttr ( 1 ) ; io . datakernel . jmx . JmxMBeansAttributesTest . MBeanWithSingleIntAttr mbe...
org . junit . Assert . assertNull ( mbean . getAttribute ( "value" ) )
testWriteProperty ( ) { java . lang . String parent = java . lang . String . format ( "%s" , java . lang . System . getProperty ( "user.home" ) ) ; java . io . File path = new java . io . File ( parent ) ; java . io . File configfile = org . locationtech . geowave . core . cli . operations . config . options . ConfigOp...
org . junit . Assert . assertEquals ( value , loadprop . getProperty ( key ) )
testFulltextFacet ( ) { org . nuxeo . ecm . core . api . DocumentModel doc = session . createDocumentModel ( "/" , "foo" , "File" ) ; doc . addFacet ( "Aged" ) ; doc . setPropertyValue ( "age:age" , "barbar" ) ; doc = session . createDocument ( doc ) ; session . save ( ) ; waitForFulltextIndexing ( ) ; org . nuxeo . ec...
org . junit . Assert . assertEquals ( 1 , list . size ( ) )
shouldEquals ( ) { com . inventage . tools . versiontiger . OsgiVersion version1 = new com . inventage . tools . versiontiger . internal . impl . OsgiVersionImpl ( "1.2.0.qualifier" , new com . inventage . tools . versiontiger . internal . impl . VersionFactory ( "release" , "snapshot" , com . inventage . tools . versi...
org . junit . Assert . assertTrue ( result )
parsesCookieHeader ( ) { javax . ws . rs . core . Cookie cookie = cookieHeaderDelegate . fromString ( "foo=bar" ) ; "<AssertPlaceHolder>" ; } fromString ( java . lang . String ) { if ( header == null ) { throw new java . lang . IllegalArgumentException ( ) ; } return org . everrest . core . impl . header . HeaderHelper...
org . junit . Assert . assertEquals ( new javax . ws . rs . core . Cookie ( "foo" , "bar" ) , cookie )
test_timestamps ( ) { final long initialTimestamp = java . lang . System . currentTimeMillis ( ) ; final long intervalMs = 5000L ; final long randomDelta = 10L ; final int numValues = ( ( int ) ( ( java . lang . Math . random ( ) ) * 100 ) ) + 1 ; final java . util . List < java . lang . Long > expectedTimestamps = cre...
org . junit . Assert . assertEquals ( expectedTimestamps , decodedTimestamps )
druidDsTest ( ) { cn . hutool . db . ds . DSFactory . setCurrentDSFactory ( new cn . hutool . db . ds . druid . DruidDSFactory ( ) ) ; javax . sql . DataSource ds = cn . hutool . db . ds . DSFactory . get ( "test" ) ; cn . hutool . db . Db db = cn . hutool . db . Db . use ( ds ) ; java . util . List < cn . hutool . db ...
org . junit . Assert . assertTrue ( cn . hutool . core . collection . CollUtil . isNotEmpty ( all ) )
shouldReturnDefaultExcelLogo ( ) { when ( binaryConfigDao . findById ( "excelHeaderLogo" ) ) . thenReturn ( null ) ; net . rrm . ehour . persistence . value . ImageLogo logo = configurationService . getExcelLogo ( ) ; "<AssertPlaceHolder>" ; } getImageData ( ) { return imageData ; }
org . junit . Assert . assertTrue ( ( ( logo . getImageData ( ) . length ) > 1 ) )
matchesLengthChecked ( ) { java . lang . String result = encoder . encode ( "password" ) ; "<AssertPlaceHolder>" ; } substring ( int , int ) { return chars . substring ( start , end ) ; }
org . junit . Assert . assertFalse ( encoder . matches ( "password" , result . substring ( 0 , ( ( result . length ( ) ) - 2 ) ) ) )
testSpecifyingCustomProperties ( ) { java . util . Properties properties = new java . util . Properties ( ) ; properties . setProperty ( "some.key" , "some-value" ) ; consultant = me . magnet . consultant . Consultant . builder ( ) . usingHttpClient ( httpBuilder . create ( ) ) . pullConfigFromConsul ( false ) . startW...
org . junit . Assert . assertEquals ( expected , consultant . getProperties ( ) )
testGenerateParseOneByteAtATime ( ) { com . firefly . codec . http2 . encode . DataGenerator generator = new com . firefly . codec . http2 . encode . DataGenerator ( new com . firefly . codec . http2 . encode . HeaderGenerator ( ) ) ; final java . util . List < com . firefly . codec . http2 . frame . DataFrame > frames...
org . junit . Assert . assertEquals ( largeContent . length , frames . size ( ) )
mockTest ( ) { bitbucketpullrequestbuilder . bitbucketpullrequestbuilder . bitbucket . cloud . CloudBitbucketCause cause = EasyMock . createMock ( bitbucketpullrequestbuilder . bitbucketpullrequestbuilder . bitbucket . cloud . CloudBitbucketCause . class ) ; EasyMock . expect ( cause . getTargetBranch ( ) ) . andReturn...
org . junit . Assert . assertEquals ( "mock" , cause . getTargetBranch ( ) )
testInsert_WrappedLongObjectIdEntity ( ) { com . jmethods . catatumbo . entities . WrappedLongObjectIdEntity entity = com . jmethods . catatumbo . entities . WrappedLongObjectIdEntity . getSample1 ( ) ; com . jmethods . catatumbo . entities . WrappedLongObjectIdEntity entity2 = com . jmethods . catatumbo . EntityManage...
org . junit . Assert . assertTrue ( ( ( entity2 . getId ( ) . getValue ( ) ) > 0 ) )
testInitializeAdapter ( ) { org . apache . metron . enrichment . adapters . host . HostFromJSONListAdapter hja = new org . apache . metron . enrichment . adapters . host . HostFromJSONListAdapter ( expectedKnownHostsString ) ; "<AssertPlaceHolder>" ; } initializeAdapter ( java . util . Map ) { org . apache . hadoop . c...
org . junit . Assert . assertTrue ( hja . initializeAdapter ( null ) )
testAt ( ) { final org . kie . workbench . common . stunner . lienzo . toolbox . items . tooltip . PrimitiveTextTooltip cascade = tested . at ( Direction . NORTH ) ; "<AssertPlaceHolder>" ; verify ( locationExecutor , times ( 1 ) ) . at ( eq ( Direction . NORTH ) ) ; verify ( locationExecutor , times ( 1 ) ) . accept (...
org . junit . Assert . assertEquals ( tested , cascade )
testAddVariableToInnerProperty ( ) { java . util . Map < java . lang . String , java . lang . Object > commandMap = new java . util . LinkedHashMap ( ) ; java . util . Map < java . lang . String , java . lang . Object > pParams = new java . util . LinkedHashMap ( ) ; java . util . Map < java . lang . String , java . la...
org . junit . Assert . assertEquals ( expectedMap , actualMap )
testSavesAndRetrievesTemplate ( ) { com . sun . jersey . api . uri . UriTemplate template = new com . sun . jersey . api . uri . UriTemplate ( "/test/{name}/{id}" ) ; com . sun . jersey . server . impl . uri . rules . BaseRule rule = new com . sun . jersey . server . impl . uri . rules . BaseRuleTest . FooRule ( templa...
org . junit . Assert . assertEquals ( template , rule . getTemplate ( ) )
testGetWifiConfigNoMatch ( ) { org . eclipse . kura . net . admin . monitor . WifiMonitorServiceImpl svc = new org . eclipse . kura . net . admin . monitor . WifiMonitorServiceImpl ( ) ; org . eclipse . kura . core . net . WifiInterfaceConfigImpl wifiInterfaceConfig = new org . eclipse . kura . net . admin . monitor . ...
org . junit . Assert . assertNull ( result )
testGetReferencedColumnFunctionQuotes ( ) { org . sagebionetworks . table . query . model . DerivedColumn element = org . sagebionetworks . table . query . util . SqlElementUntils . createDerivedColumn ( "max(\"bar\")" ) ; "<AssertPlaceHolder>" ; } getReferencedColumnName ( ) { org . sagebionetworks . table . query . m...
org . junit . Assert . assertEquals ( "bar" , element . getReferencedColumnName ( ) )
testDataAfterPackFooterSplitHeaderRead ( ) { org . eclipse . jgit . junit . TestRepository d = new org . eclipse . jgit . junit . TestRepository < org . eclipse . jgit . lib . Repository > ( db ) ; final byte [ ] data = org . eclipse . jgit . lib . Constants . encode ( "a" ) ; org . eclipse . jgit . revwalk . RevBlob b...
org . junit . Assert . assertEquals ( 126 , in . read ( ) )
testRewriteCookieMatchingPath ( ) { javax . servlet . http . HttpServletRequest request = buildGoogleDotComServletRequest ( ) ; java . net . URL redirectUrl = buildRedirectUrl ( ) ; com . woonoz . proxy . servlet . UrlRewriter rewriter = new com . woonoz . proxy . servlet . UrlRewriterImpl ( request , redirectUrl ) ; j...
org . junit . Assert . assertEquals ( expected , rewriter . rewriteCookie ( cookie ) )
testToDisplayTimeWithTimeZone1 ( ) { final java . lang . String input = "time(\"22:30:10@America/Sao_Paulo\")" ; final java . lang . String expected = "22:30:10<sp>America/Sao_Paulo" ; final java . lang . String actual = formatter . toDisplay ( input ) ; "<AssertPlaceHolder>" ; } toDisplay ( java . lang . String ) { re...
org . junit . Assert . assertEquals ( expected , actual )
testSetupHandler ( ) { jerseyServer . setupHandler ( setupHandler ) ; jerseyServer . start ( ) ; verify ( setupHandler ) . handle ( eq ( httpServer ) ) ; io . vertx . core . Handler < io . vertx . core . http . HttpServerRequest > requestHandler = jerseyServer . getHandler ( ) ; "<AssertPlaceHolder>" ; httpServer . req...
org . junit . Assert . assertNotNull ( requestHandler )
testRetrieveToken ( ) { org . scribe . model . Token testToken = new org . scribe . model . Token ( "access" , "secret" ) ; oAuthTokenCacheService . cacheToken ( testToken ) ; org . scribe . model . Token retrievedToken = oAuthTokenCacheService . retrieveToken ( "access" ) ; "<AssertPlaceHolder>" ; } retrieveToken ( ja...
org . junit . Assert . assertEquals ( testToken , retrievedToken )
whenSurroundingTransactionFails_thenChangesInInnerTransactionWillRollback ( ) { int initialValue = 10 ; final org . multiverse . api . references . TxnInteger ref = newTxnInteger ( initialValue ) ; try { org . multiverse . api . StmUtils . atomic ( new org . multiverse . api . callables . TxnVoidCallable ( ) { @ org . ...
org . junit . Assert . assertEquals ( initialValue , ref . atomicGet ( ) )
validateSecondFieldEmpty ( ) { mFirstField . setText ( "abcdef" ) ; mSecondField . setText ( "" ) ; com . throrinstudio . android . common . libs . validator . validate . ConfirmValidate confirmValidate = new com . throrinstudio . android . common . libs . validator . validate . ConfirmValidate ( mFirstField , mSecondF...
org . junit . Assert . assertFalse ( confirmValidate . isValid ( ) )
fontTest03 ( ) { java . lang . String shorthandExpression = "inherit" ; java . util . Set < java . lang . String > expectedResolvedProperties = new java . util . HashSet ( java . util . Arrays . asList ( "font-style:<sp>inherit" , "font-variant:<sp>inherit" , "font-weight:<sp>inherit" , "font-size:<sp>inherit" , "line-...
org . junit . Assert . assertNotNull ( resolver )
shouldNotForwardHopByHopHeaders ( ) { org . mockserver . model . HttpRequest httpRequest = new org . mockserver . model . HttpRequest ( ) ; httpRequest . withHeaders ( new org . mockserver . model . Header ( "some_other_header" ) , new org . mockserver . model . Header ( "proxy-connection" ) , new org . mockserver . mo...
org . junit . Assert . assertEquals ( httpRequest . getHeaderList ( ) . size ( ) , 1 )
testDefaultPrintHelp ( ) { for ( Map . Entry < java . lang . String , org . apache . tajo . cli . tsql . commands . TajoShellCommand > entry : tajoCli . getContext ( ) . getCommands ( ) . entrySet ( ) ) { org . apache . tajo . cli . tsql . commands . TajoShellCommand shellCommand = entry . getValue ( ) ; if ( ! ( shell...
org . junit . Assert . assertEquals ( result , expected )
random3 ( ) { int result = com . github . underscore . U . random ( 0 ) ; "<AssertPlaceHolder>" ; } random ( int ) { return new java . security . SecureRandom ( ) . nextInt ( ( max + 1 ) ) ; }
org . junit . Assert . assertEquals ( 0 , result )
testDynamicQueryByPrimaryKeyMissing ( ) { com . liferay . portal . kernel . dao . orm . DynamicQuery dynamicQuery = com . liferay . portal . kernel . dao . orm . DynamicQueryFactoryUtil . forClass ( com . liferay . portal . workflow . kaleo . model . KaleoNotificationRecipient . class , _dynamicQueryClassLoader ) ; dyn...
org . junit . Assert . assertEquals ( 0 , result . size ( ) )
replace ( ) { com . bjoernkw . mailtrigger . mailer . PlaceholderProcessor placeholderProcessor = new com . bjoernkw . mailtrigger . mailer . PlaceholderProcessor ( ) ; java . lang . String beginning = "Test" ; java . lang . String placeholder = "REPLACEMENT" ; java . lang . String replacement = "Basic<sp>Test" ; java ...
org . junit . Assert . assertEquals ( ( beginning + replacement ) , parsedText )
shouldAcceptEmailNotInBlacklist ( ) { given ( settings . getProperty ( EmailSettings . DOMAIN_WHITELIST ) ) . willReturn ( java . util . Collections . emptyList ( ) ) ; given ( settings . getProperty ( EmailSettings . DOMAIN_BLACKLIST ) ) . willReturn ( asList ( "Example.org" , "a-test-name.tld" ) ) ; boolean result = ...
org . junit . Assert . assertThat ( result , org . hamcrest . Matchers . equalTo ( true ) )
testSuccess ( ) { com . ctrip . xpipe . api . command . Command < ? > [ ] commands = createSuccessCommands ( totalCommandCount , successMessage ) ; com . ctrip . xpipe . command . SequenceCommandChain chain = new com . ctrip . xpipe . command . SequenceCommandChain ( commands ) ; java . util . List < com . ctrip . xpip...
org . junit . Assert . assertEquals ( totalCommandCount , result . size ( ) )
testNoMatch ( ) { io . dataapps . chlorine . finder . FinderEngine engine = new io . dataapps . chlorine . finder . FinderEngine ( ) ; java . util . List < java . lang . String > emails = engine . find ( io . dataapps . chlorine . finder . TestDefaultFinders . PLAIN_TEXT ) . getMatches ( ) ; "<AssertPlaceHolder>" ; } g...
org . junit . Assert . assertTrue ( emails . isEmpty ( ) )
testFailureGetNonExistentMetaBlock ( ) { if ( skip ) { return ; } writer . append ( "keyX" . getBytes ( ) , "valueX" . getBytes ( ) ) ; java . io . DataOutputStream outMeta = writer . prepareMetaBlock ( "testX" , Compression . Algorithm . GZ . getName ( ) ) ; outMeta . write ( 123 ) ; outMeta . write ( "foo" . getBytes...
org . junit . Assert . assertNotNull ( mb )
numSegments ( ) { T p = createPath ( ) ; "<AssertPlaceHolder>" ; } expectedSize ( ) { return ( segments ) == null ? 0 : segments . length ; }
org . junit . Assert . assertEquals ( expectedSize ( ) , p . numSegments ( ) )
testNullsOnly ( ) { final long nullsAmount = com . annimon . stream . Stream . range ( 0 , 10 ) . map ( new com . annimon . stream . function . Function < java . lang . Integer , java . lang . String > ( ) { @ com . annimon . stream . streamtests . Override public java . lang . String apply ( java . lang . Integer inte...
org . junit . Assert . assertEquals ( 4 , nullsAmount )
testIfNotifySecondBranch ( ) { com . onboard . service . upload . notification . CreateUploadNotificationRule createUploadNotificationRuleSpy = org . mockito . Mockito . spy ( createUploadNotificationRule ) ; java . lang . Boolean ifNotify = createUploadNotificationRuleSpy . ifNotify ( getASampleActivity ( com . onboar...
org . junit . Assert . assertEquals ( ifNotify , java . lang . Boolean . valueOf ( false ) )
findInCollectionTest ( ) { final org . opendaylight . yangtools . yang . model . api . SchemaNode origSchNode = org . opendaylight . restconf . common . util . RestconfSchemaUtilTest . mockSchemaNode ( "key" ) ; final org . opendaylight . yangtools . yang . model . api . SchemaNode actualSch = org . opendaylight . rest...
org . junit . Assert . assertEquals ( origSchNode , actualSch )
should_not_display_answer_form_when_not_logged_in ( ) { org . mamute . model . Question question = createQuestionWithDao ( moderator ( ) , "Titulo<sp>da<sp>questao<sp>hahaha" , "Descricao<sp>da<sp>questao<sp>longa<sp>demais" , tag ( "java" ) ) ; br . com . caelum . vraptor . test . requestflow . UserFlow navigation = g...
org . junit . Assert . assertTrue ( answerForm . isEmpty ( ) )
testExtendSelf ( ) { java . lang . String s1 = "package<sp>org.drools;\n" + ( ( ( ( "global<sp>java.util.List<sp>list;\n" + "\n" ) + "declare<sp>Bean<sp>extends<sp>Bean<sp>\n" ) + "<sp>foo<sp>:<sp>int<sp>@key\n" ) + "end\n" ) ; org . kie . api . KieBase kBase = org . drools . core . impl . KnowledgeBaseFactory . newKno...
org . junit . Assert . assertTrue ( kBuilder . hasErrors ( ) )
testGetLength ( ) { try { eu . stratosphere . api . common . typeutils . TypeSerializer < T > serializer = getSerializer ( ) ; "<AssertPlaceHolder>" ; } catch ( java . lang . Exception e ) { System . err . println ( e . getMessage ( ) ) ; e . printStackTrace ( ) ; org . junit . Assert . fail ( ( "Exception<sp>in<sp>tes...
org . junit . Assert . assertEquals ( getLength ( ) , serializer . getLength ( ) )
testServiceFetching ( ) { "<AssertPlaceHolder>" ; }
org . junit . Assert . assertNotNull ( validator )
testStaticMethodDeclaredByReflection ( ) { a . org . fakereplace . test . replacement . staticmethod . StaticClass ns = new a . org . fakereplace . test . replacement . staticmethod . StaticClass ( ) ; java . lang . Class c = a . org . fakereplace . test . replacement . staticmethod . StaticClass . class ; java . lang ...
org . junit . Assert . assertEquals ( ( ( java . lang . Integer ) ( 1 ) ) , res )
testAddPrimaryKey ( ) { org . apache . cayenne . map . DataMap existing = dataMap ( ) . with ( dbEntity ( "table1" ) . attributes ( dbAttr ( "attr01" ) . typeInt ( ) . primaryKey ( ) ) ) . build ( ) ; org . apache . cayenne . map . DataMap db = dataMap ( ) . with ( dbEntity ( "table1" ) . attributes ( dbAttr ( "attr01"...
org . junit . Assert . assertEquals ( 1 , tokens . size ( ) )
sqlConnectorQueryTest ( ) { java . lang . String body ; if ( parameters . isEmpty ( ) ) { body = null ; } else { body = io . syndesis . connector . sql . common . JSONBeanUtil . toJSONBean ( parameters ) ; } java . util . List < ? > results = template . requestBody ( "direct:start" , body , java . util . List . class )...
org . junit . Assert . assertEquals ( expectedResults . isEmpty ( ) , jsonBeans . isEmpty ( ) )
testContentLengthIsNotAddedWhenTransferEncodingIsPresent ( ) { final org . apache . hc . core5 . http . Header [ ] hdrs = new org . apache . hc . core5 . http . Header [ ] { new org . apache . hc . core5 . http . message . BasicHeader ( "Transfer-Encoding" , "chunked" ) } ; final byte [ ] buf = new byte [ ] { 1 , 2 , 3...
org . junit . Assert . assertNull ( length )
shouldExecuteReturnTheSolutionInTheListIfTheListContainsASolution ( ) { org . uma . jmetal . util . List < org . uma . jmetal . solution . IntegerSolution > list = new org . uma . jmetal . util . ArrayList ( 2 ) ; org . uma . jmetal . solution . IntegerSolution solution = mock ( org . uma . jmetal . solution . IntegerS...
org . junit . Assert . assertSame ( solution , result . get ( 0 ) )
isChangesetFullyCloaked_cloakingChild ( ) { final java . util . List < java . lang . String > changesetPaths = java . util . Arrays . asList ( "$/foo" , "$/foo/bar.baz" ) ; final java . util . List < java . lang . String > cloakedPaths = java . util . Collections . singletonList ( "$/foo/bar.baz" ) ; final boolean actu...
org . junit . Assert . assertEquals ( false , actual )
getFileEncodingNullPathFailTest ( ) { java . lang . String encoding = org . pentaho . di . core . row . ValueDataUtil . getFileEncoding ( new org . pentaho . di . core . row . value . ValueMetaString ( ) , null , true ) ; "<AssertPlaceHolder>" ; } getFileEncoding ( org . pentaho . di . core . row . ValueMetaInterface ,...
org . junit . Assert . assertNull ( encoding )
testInitParameters ( ) { javax . ws . rs . core . Response response = org . jboss . resteasy . test . undertow . UndertowParameterTest . client . target ( "http://localhost:8081/init" ) . request ( ) . get ( javax . ws . rs . core . Response . class ) ; "<AssertPlaceHolder>" ; response . close ( ) ; } getStatus ( ) { r...
org . junit . Assert . assertEquals ( 200 , response . getStatus ( ) )
testFindByProviderNoAndDate ( ) { java . lang . String providerNo1 = "111" ; java . lang . String providerNo2 = "222" ; java . util . Date date1 = new java . util . Date ( dfm . parse ( "20110301" ) . getTime ( ) ) ; java . util . Date date2 = new java . util . Date ( dfm . parse ( "20100514" ) . getTime ( ) ) ; org . ...
org . junit . Assert . assertEquals ( expectedResult , result )
testUnitOntology ( ) { org . openrdf . model . Model repos = new org . openrdf . model . impl . LinkedHashModel ( ) ; com . github . jqudt . onto . OntoReader . read ( repos , "unit" ) ; "<AssertPlaceHolder>" ; } read ( org . openrdf . model . Model , java . lang . String ) { java . lang . String filename = "onto/" + o...
org . junit . Assert . assertNotNull ( repos )
whenHiddenElementsOfItShouldNotCrawl ( ) { com . crawljax . core . CrawlSession crawl = new com . crawljax . test . BaseCrawler ( "hidden-elements-site" ) . crawl ( ) ; com . crawljax . core . state . StateFlowGraph stateFlowGraph = crawl . getStateFlowGraph ( ) ; int expectedStates = 3 - 2 ; "<AssertPlaceHolder>" ; } ...
org . junit . Assert . assertThat ( stateFlowGraph , hasStates ( expectedStates ) )
testTopoSortWithInputs2 ( ) { java . util . List < java . lang . String > valid = java . util . Arrays . asList ( new java . lang . String [ ] { "[3,<sp>2,<sp>1,<sp>ROOT]" } ) ; edu . jhu . pacaya . autodiff . Toposort . Deps < java . lang . String > deps = new edu . jhu . pacaya . autodiff . ToposortTest . DiamondGrap...
org . junit . Assert . assertTrue ( valid . contains ( sort . toString ( ) ) )
testCheckMutateRowAsyncWhenNoPredicateMatch ( ) { com . google . cloud . bigtable . data . v2 . models . Mutation mutation = com . google . cloud . bigtable . data . v2 . models . Mutation . create ( ) ; mutation . setCell ( "family" , "qualifier" , "some<sp>other<sp>value" ) ; com . google . cloud . bigtable . data . ...
org . junit . Assert . assertFalse ( actual . get ( ) )
getVSystemName ( ) { org . apache . commons . configuration . HierarchicalConfiguration configuration = prepareConfiguration ( org . oscm . app . ror . LPlatformConfigurationTest . LPLATFORMNAME , org . oscm . app . ror . LPlatformConfigurationTest . LPLATFORMNAME ) ; lPlatformConfiguration = new org . oscm . app . ror...
org . junit . Assert . assertEquals ( result , org . oscm . app . ror . LPlatformConfigurationTest . LPLATFORMNAME )
testIsInValid ( ) { org . terasoluna . gfw . common . codepoints . CodePoints codePoints = org . terasoluna . gfw . common . codepoints . CodePoints . of ( clazz ) ; "<AssertPlaceHolder>" ; } containsAll ( java . lang . String ) { return ( this . firstExcludedCodePoint ( s ) ) == ( org . terasoluna . gfw . common . cod...
org . junit . Assert . assertThat ( codePoints . containsAll ( "" ) , org . hamcrest . CoreMatchers . is ( false ) )
test_minusMajor_zero ( ) { org . joda . money . BigMoney test = org . joda . money . TestBigMoney . GBP_2_34 . minusMajor ( 0 ) ; "<AssertPlaceHolder>" ; } minusMajor ( long ) { return with ( money . minusMajor ( amountToSubtract ) ) ; }
org . junit . Assert . assertSame ( org . joda . money . TestBigMoney . GBP_2_34 , test )
chain_should_assemble_serial_of_3 ( ) { net . mostlyoriginal . api . operation . common . OperationFlow operation = sequence ( new net . mostlyoriginal . api . operation . common . TestOperation ( ) , new net . mostlyoriginal . api . operation . common . TestOperation ( ) , new net . mostlyoriginal . api . operation . ...
org . junit . Assert . assertEquals ( 3 , operation . operations . size )
testBuildWithParametersWithOrderBy ( ) { java . lang . String abbrName = "AN" ; java . lang . String name = "asfdasf" ; org . lnu . is . domain . duty . type . DutyType context = new org . lnu . is . domain . duty . type . DutyType ( ) ; context . setAbbrName ( abbrName ) ; context . setName ( name ) ; org . lnu . is ....
org . junit . Assert . assertEquals ( expectedQuery , actualQuery )
testDoFilter_occur_runtimeexception ( ) { java . lang . NullPointerException occurException = new java . lang . NullPointerException ( "null<sp>pointer<sp>exception." ) ; doThrow ( occurException ) . when ( mockFilterChain ) . doFilter ( mockRequest , mockResponse ) ; try { testTarget . doFilter ( mockRequest , mockRes...
org . junit . Assert . assertSame ( occurException , e )
testConsumesArchiveCompletely ( ) { final java . io . InputStream is = org . apache . commons . compress . archivers . dump . DumpArchiveInputStreamTest . class . getResourceAsStream ( "/archive_with_trailer.dump" ) ; final org . apache . commons . compress . archivers . dump . DumpArchiveInputStream dump = new org . a...
org . junit . Assert . assertArrayEquals ( expected , actual )
testUpdateSchedulerPlacementZoneWithTagsShouldFail ( ) { com . vmware . photon . controller . model . resources . ResourcePoolService . ResourcePoolState createdPlacementZone = createPlacementZone ( "docker-placement-zone" , true ) ; "<AssertPlaceHolder>" ; com . vmware . photon . controller . model . resources . Resou...
org . junit . Assert . assertNotNull ( createdPlacementZone )
testGetMap ( ) { final java . util . Map < java . lang . String , java . lang . Object > map = new java . util . HashMap ( ) ; final org . apache . commons . configuration2 . MapConfiguration conf = new org . apache . commons . configuration2 . MapConfiguration ( map ) ; "<AssertPlaceHolder>" ; } getMap ( ) { return ma...
org . junit . Assert . assertEquals ( map , conf . getMap ( ) )
testFullyOutsideCircle ( ) { com . vividsolutions . jts . geom . Point p = ( ( com . vividsolutions . jts . geom . Point ) ( wkt . read ( "POINT(5<sp>5)" ) ) ) ; com . vividsolutions . jts . geom . LineString ls = ( ( com . vividsolutions . jts . geom . Polygon ) ( p . buffer ( 10 ) ) ) . getExteriorRing ( ) ; com . vi...
org . junit . Assert . assertNull ( clipped )
testSiteLinkFilterArgumentsEmpty ( ) { java . lang . String [ ] args = new java . lang . String [ ] { "--fSite" , "-" } ; org . wikidata . wdtk . client . ClientConfiguration config = new org . wikidata . wdtk . client . ClientConfiguration ( args ) ; java . util . Set < java . lang . String > siteFilters = new java . ...
org . junit . Assert . assertEquals ( siteFilters , config . getFilterSiteKeys ( ) )
testGetOriginReturnsOriginFromInstantiation ( ) { org . jboss . forge . addon . facets . MockFaceted faceted = new org . jboss . forge . addon . facets . MockFaceted ( ) ; org . jboss . forge . addon . facets . MockFacet facet = new org . jboss . forge . addon . facets . MockFacet ( faceted ) ; "<AssertPlaceHolder>" ; ...
org . junit . Assert . assertEquals ( faceted , facet . getFaceted ( ) )
testVerify ( ) { instance . verify ( null , null , java . lang . String . class , null , false , null ) ; try { instance . verify ( null , null , Integer . TYPE , null , false , null ) ; org . junit . Assert . fail ( "Should<sp>have<sp>thrown<sp>PicoCompositionException<sp>when<sp>verifying<sp>primitive<sp>types" ) ; }...
org . junit . Assert . assertNotNull ( ex . getMessage ( ) )
givenProviderCluster_whenConsumerSaysHi_thenGotFailsafeResponse ( ) { org . springframework . context . support . ClassPathXmlApplicationContext localContext = new org . springframework . context . support . ClassPathXmlApplicationContext ( "cluster/consumer-app-failtest.xml" ) ; localContext . start ( ) ; com . baeldu...
org . junit . Assert . assertNull ( hiMessage )
orders_ascending_using_priority ( ) { io . graceland . filter . FilterSpec filterSpec1 = new io . graceland . filter . FilterSpec ( mock ( io . graceland . filter . FilterProvider . class ) , ( - 100 ) , "first" , com . google . common . collect . ImmutableList . < io . graceland . filter . FilterPattern > of ( ) ) ; i...
org . junit . Assert . assertThat ( ordered , org . hamcrest . Matchers . contains ( filterSpec1 , filterSpec2 , filterSpec3 ) )
testToString ( ) { "<AssertPlaceHolder>" ; } toString ( ) { return ( ( ( ( ( ( ( ( ( "CalculatedDatum<sp>[type=" + ( type ) ) + ",<sp>window=" ) + ( window ) ) + ",<sp>name=" ) + ( name ) ) + ",<sp>methodology=" ) + ( method ) ) + ",<sp>value=" ) + ( value ) ) + "]" ; }
org . junit . Assert . assertNotNull ( domain . toString ( ) )
shouldRestartCreateANewPopulationWithTheRefSet1Solutions ( ) { int populationSize = 10 ; int numberOfSubRanges = 4 ; int referenceSet1Size = 4 ; int referenceSet2Size = 4 ; org . uma . jmetal . problem . DoubleProblem problem = new org . uma . jmetal . algorithm . multiobjective . abyss . ABYSSTest . MockProblem ( ) ; ...
org . junit . Assert . assertEquals ( populationSize , abyss . getPopulation ( ) . size ( ) )