input
stringlengths
28
18.7k
output
stringlengths
39
1.69k
spaceHasProjectsWithName ( ) { final boolean hasNoProjects = workspaceProjectService . spaceHasNoProjectsWithName ( ou1 , "repository1" , new org . guvnor . common . services . project . model . WorkspaceProject ( ou1 , repository2 , repository2 . getDefaultBranch ( ) . get ( ) , null ) ) ; "<AssertPlaceHolder>" ; } ge...
org . junit . Assert . assertFalse ( hasNoProjects )
testCompareQuotaUsage ( ) { long fileAndDirCount = 222255555 ; long quota = 222256578 ; long spaceConsumed = 1073741825 ; long spaceQuota = 1 ; long SSDspaceConsumed = 100000 ; long SSDQuota = 300000 ; org . apache . hadoop . fs . QuotaUsage quotaUsage1 = new org . apache . hadoop . fs . QuotaUsage . Builder ( ) . file...
org . junit . Assert . assertEquals ( quotaUsage1 , quotaUsage2 )
testGetLayer ( ) { System . out . println ( "getLayer" ) ; int layerId = 5 ; mudmap2 . backend . WorldCoordinate instance = new mudmap2 . backend . WorldCoordinate ( layerId , 0 , 0 ) ; int result = instance . getLayer ( ) ; "<AssertPlaceHolder>" ; } getLayer ( ) { return layer ; }
org . junit . Assert . assertEquals ( layerId , result )
getRemoteTrackingBranchShouldReturnNullWithoutMergeBranch ( ) { org . eclipse . jgit . lib . Config c = org . eclipse . jgit . lib . BranchConfigTest . parse ( ( "" + ( ( ( "[remote<sp>\"origin\"]\n" + "<sp>fetch<sp>=<sp>+refs/heads/onlyone:refs/remotes/origin/onlyone\n" ) + "[branch<sp>\"master\"]\n" ) + "<sp>remote<s...
org . junit . Assert . assertNull ( branchConfig . getRemoteTrackingBranch ( ) )
fiveRulesFiredTest ( ) { java . lang . String str = "<sp>\n" 0 ; str += "package<sp>org.drools.compiler.integrationtests<sp>\n" ; str += ( "<sp>\n" 3 + ( org . drools . compiler . Cheese . class . getCanonicalName ( ) ) ) + "<sp>\n" ; str += "rule<sp>StringRule<sp>\n" ; str += "<sp>\n" 1 ; str += "<sp>\n" 5 ; str += "<...
org . junit . Assert . assertEquals ( 5 , fired )
testGetInfo ( ) { java . lang . String expResult = "builtin" ; java . lang . String result = sut . getInfo ( ) . getId ( ) ; "<AssertPlaceHolder>" ; } getId ( ) { return this . id ; }
org . junit . Assert . assertEquals ( expResult , result )
getPotentialCompatibleServices_NoMp ( ) { container . login ( userKey , UserRoleType . SERVICE_MANAGER . name ( ) ) ; java . util . List < org . oscm . internal . vo . VOCompatibleService > list = sps . getPotentialCompatibleServices ( prodNoMPVO ) ; "<AssertPlaceHolder>" ; } size ( ) { return categoriesForMarketplace ...
org . junit . Assert . assertEquals ( 0 , list . size ( ) )
testManualContext ( ) { org . kie . dmn . feel . codegen . feel11 . CompiledFEELExpression compiledExpression = new org . kie . dmn . feel . codegen . feel11 . ManualQuantTest . ManualFilterExpression ( ) ; org . kie . dmn . feel . codegen . feel11 . ManualQuantTest . LOG . debug ( "{}" , compiledExpression ) ; org . k...
org . junit . Assert . assertThat ( result , org . hamcrest . CoreMatchers . is ( true ) )
createViaTransparentRedirect ( ) { com . braintreegateway . integrationtest . TransactionRequest request = new com . braintreegateway . integrationtest . TransactionRequest ( ) . amount ( TransactionAmount . AUTHORIZE . amount ) . creditCard ( ) . number ( CreditCardNumber . VISA . number ) . expirationDate ( "05/2009"...
org . junit . Assert . assertTrue ( result . isSuccess ( ) )
testDeletingNonExistingUser ( ) { g7w14 . test . UserManagerTest . user . setUserId ( 50000L ) ; "<AssertPlaceHolder>" ; } deleteUser ( g7w14 . data . UserBean ) { int result = 0 ; try { result = ud . delete ( "Delete<sp>from<sp>users<sp>where<sp>UserId=?<sp>" , user . getUserId ( ) ) ; } catch ( java . sql . SQLExcept...
org . junit . Assert . assertTrue ( ( ( g7w14 . test . UserManagerTest . manager . deleteUser ( g7w14 . test . UserManagerTest . user ) ) == 0 ) )
comparisonDescendingListTest ( ) { org . apache . druid . query . scan . ScanQuery query = org . apache . druid . query . Druids . newScanQueryBuilder ( ) . order ( ScanQuery . Order . DESCENDING ) . resultFormat ( ScanQuery . ResultFormat . RESULT_FORMAT_LIST ) . dataSource ( "some<sp>src" ) . intervals ( org . apache...
org . junit . Assert . assertEquals ( ( - 1 ) , comparator . compare ( s1 , s2 ) )
testDeserialization ( ) { java . util . Map < java . time . LocalDate , java . lang . String > value = om . readValue ( map ( Jsr310NullKeySerializer . NULL_KEY , "test" ) , com . fasterxml . jackson . datatype . jsr310 . old . TestNullKeySerialization . TYPE_REF ) ; map . put ( null , "test" ) ; "<AssertPlaceHolder>" ...
org . junit . Assert . assertEquals ( map , value )
downloadImagePreviewParamAuth ( ) { int height = 50 ; int width = 50 ; org . apache . commons . codec . binary . Base64 encoder = new org . apache . commons . codec . binary . Base64 ( true ) ; java . lang . String authStr = ( ( BASE_USER ) + ":" ) + ( BASE_TOKEN ) ; java . lang . String completeUrl = ( ( ( ( ( ( com ....
org . junit . Assert . assertTrue ( file . exists ( ) )
shouldRejectCreated ( ) { org . openstack . atlas . api . validation . validators . Created created = new org . openstack . atlas . api . validation . validators . Created ( ) ; created . setTime ( new java . util . GregorianCalendar ( ) ) ; lb . setCreated ( created ) ; org . openstack . atlas . api . validation . res...
org . junit . Assert . assertFalse ( result . passedValidation ( ) )
search ( ) { hudson . model . FreeStyleProject topJob = r . jenkins . createProject ( hudson . model . FreeStyleProject . class , "top<sp>job" ) ; com . cloudbees . hudson . plugins . folder . Folder f1 = r . jenkins . createProject ( com . cloudbees . hudson . plugins . folder . Folder . class , "f1" ) ; hudson . mode...
org . junit . Assert . assertEquals ( new java . util . HashSet < hudson . search . SearchItem > ( java . util . Arrays . asList ( middleJob , bottomJob ) ) , new java . util . HashSet < hudson . search . SearchItem > ( items ) )
testSetData_nullRemovesSingleData ( ) { widget . setData ( new java . lang . Object ( ) ) ; widget . setData ( null ) ; "<AssertPlaceHolder>" ; } getData ( ) { checkDevice ( ) ; return data ; }
org . junit . Assert . assertNull ( widget . getData ( ) )
testListAudio ( ) { com . ibm . watson . speech_to_text . v1 . model . ListAudioOptions listOptions = new com . ibm . watson . speech_to_text . v1 . model . ListAudioOptions . Builder ( ) . customizationId ( acousticCustomizationId ) . build ( ) ; com . ibm . watson . speech_to_text . v1 . model . AudioResources resour...
org . junit . Assert . assertNotNull ( resources )
testGetAll ( ) { com . example . resource . TIMyResourceJTFTest . LOGGER . debug ( ">>Test<sp>Get<sp>All" ) ; final javax . ws . rs . client . Invocation . Builder invocationBuilder = target ( com . example . resource . TIMyResourceJTFTest . BASEURI ) . request ( ) ; final com . example . domain . Books result = invoca...
org . junit . Assert . assertNotNull ( result . getBookList ( ) )
basicTest ( ) { doReturn ( "TestPathArgument" ) . when ( TestUtils . PATH_ARGUMENT ) . toString ( ) ; "<AssertPlaceHolder>" ; doNothing ( ) . when ( TestUtils . DOM_DATA_TREE_WRITE_CURSOR ) . enter ( TestUtils . PATH_ARGUMENT ) ; this . enter ( TestUtils . PATH_ARGUMENT ) ; verify ( TestUtils . DOM_DATA_TREE_WRITE_CURS...
org . junit . Assert . assertEquals ( this , this . childStrategy ( ) )
testStrToDate_19700531 ( ) { java . util . Calendar cal = new java . util . GregorianCalendar ( 1970 , 4 , 31 ) ; java . util . Date expected = cal . getTime ( ) ; java . lang . String fixture = "1970/05/31" ; try { java . util . Date actual = info . michaelkohler . helpertools . date . DateFormatHelper . strToDate ( f...
org . junit . Assert . assertTrue ( actual . equals ( expected ) )
runTestListAccess1 ( ) { soot . jimple . infoflow . results . InfoflowResults res = analyzeAPKFile ( "ArraysAndLists/ListAccess1.apk" ) ; if ( res != null ) "<AssertPlaceHolder>" ; } size ( ) { return set . size ( ) ; }
org . junit . Assert . assertEquals ( 0 , res . size ( ) )
shouldExtractUseSystemProperty ( ) { org . opennms . netmgt . notifd . HttpNotificationStrategy strategy = createNotificationStrategyWithSingleArgument ( useSystemProxy . name ( ) , "true" ) ; "<AssertPlaceHolder>" ; } getUseSystemProxy ( ) { return getProperties ( ) . getBoolean ( ( ( getPrefix ( ) ) + ".useSystemProx...
org . junit . Assert . assertEquals ( true , strategy . getUseSystemProxy ( ) )
testGetEnglishWordCountOne ( ) { java . lang . String string = "one" ; com . box . l10n . mojito . service . WordCountService instance = new com . box . l10n . mojito . service . WordCountService ( ) ; int expResult = 1 ; int result = instance . getEnglishWordCount ( string ) ; "<AssertPlaceHolder>" ; } getEnglishWordC...
org . junit . Assert . assertEquals ( expResult , result )
shouldReturnStateBadRequestIfUpdateRestrictionFails ( ) { ch . mobi . itc . mobiliar . rest . dtos . RestrictionDTO restrictionDTO = new ch . mobi . itc . mobiliar . rest . dtos . RestrictionDTO ( 1 , "valid" , null , ch . puzzle . itc . mobiliar . business . security . entity . Permission . RESOURCE , 8 , null , null ...
org . junit . Assert . assertEquals ( ch . mobi . itc . mobiliar . rest . permissions . BAD_REQUEST . getStatusCode ( ) , response . getStatus ( ) )
testSequenceWithDependencies ( ) { java . util . List < java . lang . String > sequence = new java . util . Vector ( ) ; org . opennms . core . tasks . AbstractTask task1 = createTask ( org . opennms . core . tasks . TaskTest . appender ( sequence , "task1" ) ) ; org . opennms . core . tasks . AbstractTask task2 = crea...
org . junit . Assert . assertArrayEquals ( new java . lang . String [ ] { "task1" , "subtask1" , "subtask2" , "subtask3" , "task2" } , sequence . toArray ( new java . lang . String [ 0 ] ) )
unrecognizedOptionDisallowed ( ) { "<AssertPlaceHolder>" ; thrown . expect ( joptsimple . UnrecognizedOptionException . class ) ; thrown . expect ( joptsimple . ExceptionMatchers . withOption ( "a" ) ) ; parser . parse ( "-a" ) ; } doesAllowsUnrecognizedOptions ( ) { return allowsUnrecognizedOptions ; }
org . junit . Assert . assertFalse ( parser . doesAllowsUnrecognizedOptions ( ) )
testLocateBrowserInstallationUseCacheOnSecondAccessWhenCustomLauncherIsProvided ( ) { final org . openqa . selenium . browserlaunchers . locators . BrowserInstallation expectedInstallation ; final org . openqa . selenium . server . browserlaunchers . BrowserInstallationCache cache ; final org . openqa . selenium . brow...
org . junit . Assert . assertEquals ( expectedInstallation , cache . locateBrowserInstallation ( "aBrowser" , "aCustomLauncher" , null ) )
equalsToStringWithObject ( ) { java . lang . Object o = new java . lang . Object ( ) { @ org . easymock . tests2 . Override public java . lang . String toString ( ) { return "X" ; } } ; new org . easymock . tests2 . Equals ( o ) . appendTo ( buffer ) ; "<AssertPlaceHolder>" ; } toString ( ) { if ( values . isEmpty ( ) ...
org . junit . Assert . assertEquals ( "X" , buffer . toString ( ) )
testUpdateDockerPZToSchedulerPZWithTagsShouldFail ( ) { com . vmware . photon . controller . model . resources . ResourcePoolService . ResourcePoolState createdPlacementZone = createPlacementZone ( "docker-placement-zone-with-tags" , false ) ; "<AssertPlaceHolder>" ; com . vmware . photon . controller . model . resourc...
org . junit . Assert . assertNotNull ( createdPlacementZone )
close ( ) { java . nio . ByteBuffer buf = alluxio . util . io . BufferUtils . getIncreasingByteBuffer ( alluxio . worker . block . io . LocalFileBlockWriterTest . TEST_BLOCK_SIZE ) ; "<AssertPlaceHolder>" ; mWriter . close ( ) ; mThrown . expect ( java . io . IOException . class ) ; mWriter . append ( buf ) ; } append ...
org . junit . Assert . assertEquals ( alluxio . worker . block . io . LocalFileBlockWriterTest . TEST_BLOCK_SIZE , mWriter . append ( buf ) )
testPrepareInputsEmpty ( ) { java . util . Map < java . lang . String , java . io . Serializable > rawInputs = new java . util . HashMap ( ) ; java . util . Map < java . lang . String , java . io . Serializable > inputs = bonitaApiUtil . prepareInputs ( processDefinition , rawInputs ) ; "<AssertPlaceHolder>" ; } size (...
org . junit . Assert . assertEquals ( inputs . size ( ) , rawInputs . size ( ) )
monsterGenerationOnNoDangerLocation ( ) { location . setDangerRating ( 0 ) ; player . setLocation ( location ) ; com . jadventure . game . monsters . Monster monster = factory . generateMonster ( player ) ; "<AssertPlaceHolder>" ; } generateMonster ( com . jadventure . game . entities . Player ) { int randomInt = ( ran...
org . junit . Assert . assertNull ( monster )
testGrandparentTrueCondition ( ) { io . yawp . repository . models . parents . Grandchild grandchild = saveGrandchild ( "granchild" , saveChild ( "child" , saveParent ( "parent" ) ) ) ; io . yawp . repository . shields . RuleConditions conditions = new io . yawp . repository . shields . RuleConditions ( yawp , io . yaw...
org . junit . Assert . assertTrue ( conditions . evaluate ( ) )
findReturnsNullWhenVersionChildIsNull ( ) { java . util . ArrayList < org . apache . maven . model . Plugin > buildPlugins = new java . util . ArrayList ( ) ; buildPlugins . add ( enforcerPlugin ) ; when ( mavenProject . getBuildPlugins ( ) ) . thenReturn ( buildPlugins ) ; java . util . ArrayList < org . apache . mave...
org . junit . Assert . assertNull ( new org . codehaus . mojo . versions . RequiredMavenVersionFinder ( mavenProject ) . find ( ) )
createWriter_NullForUnseenType2 ( ) { org . locationtech . geowave . core . store . index . NullIndex index = new org . locationtech . geowave . core . store . index . NullIndex ( "myIndex" ) ; org . locationtech . geowave . core . store . adapter . MockComponents . MockAbstractDataAdapter adapter = new org . locationt...
org . junit . Assert . assertNull ( writer )
testIntrinsicIntegerReverseBytes ( ) { int input = 305419896 ; int expected = org . graalvm . compiler . core . test . tutorial . GraalTutorial . intrinsicIntegerReverseBytes ( input ) ; jdk . vm . ci . code . InstalledCode compiledMethod = compileAndInstallMethod ( findMethod ( org . graalvm . compiler . core . test ....
org . junit . Assert . assertEquals ( expected , actual )
testResponsesToGETWithQueryParamsButNoExplicitCachingAreNotCacheable ( ) { request = new org . apache . hc . core5 . http . message . BasicHttpRequest ( "GET" , "/foo?s=bar" ) ; "<AssertPlaceHolder>" ; } isResponseCacheable ( org . apache . hc . core5 . http . HttpRequest , org . apache . hc . core5 . http . HttpRespon...
org . junit . Assert . assertFalse ( policy . isResponseCacheable ( request , response ) )
testImpossibleSerialization ( ) { double [ ] y = new double [ ] { 0.0 , 1.0 , - 2.0 } ; org . apache . commons . math3 . ode . sampling . AbstractStepInterpolator interpolator = new org . apache . commons . math3 . ode . sampling . DummyStepInterpolatorTest . BadStepInterpolator ( y , true ) ; interpolator . storeTime ...
org . junit . Assert . assertEquals ( 0 , mise . getMessage ( ) . length ( ) )
testIsNotRandom ( ) { java . lang . String random = "0" ; statusList . add ( ( "random:<sp>" + random ) ) ; when ( commandExecutor . sendCommand ( properties . getStatus ( ) ) ) . thenReturn ( statusList ) ; "<AssertPlaceHolder>" ; } isRandom ( ) { return serverStatus . isRandom ( ) ; }
org . junit . Assert . assertFalse ( serverStatus . isRandom ( ) )
should_find_by_all_with_start_and_max ( ) { createSimple ( "testFindAll1" ) ; createSimple ( "testFindAll2" ) ; java . util . List < com . ctp . cdi . query . test . domain . Simple > find = dao . findAll ( 0 , 1 ) ; "<AssertPlaceHolder>" ; } findAll ( int , int ) { javax . persistence . TypedQuery < E > query = entity...
org . junit . Assert . assertEquals ( 1 , find . size ( ) )
testIndex ( ) { "<AssertPlaceHolder>" ; for ( int i = 0 ; i <= 6 ; i ++ ) { net . tridentsdk . ui . bossbar . BossBarColor . of ( i ) ; } }
org . junit . Assert . assertEquals ( 7 , net . tridentsdk . ui . bossbar . BossBarColor . values ( ) . length )
testGetSetChangelogLocation ( ) { final java . lang . String path = "/path/to/changelog/file/ChangeLog" ; clogWriter . setChangelogLocation ( path ) ; "<AssertPlaceHolder>" ; } getChangelogLocation ( ) { return changelogLocation ; }
org . junit . Assert . assertEquals ( path , clogWriter . getChangelogLocation ( ) )
testLocalMaxEntropyThreshold ( ) { ops . run ( net . imagej . ops . Ops . Threshold . MaxEntropy . class , out , in , new net . imglib2 . algorithm . neighborhood . RectangleShape ( 1 , false ) , new net . imglib2 . outofbounds . OutOfBoundsMirrorFactory < net . imglib2 . type . numeric . integer . ByteType , net . img...
org . junit . Assert . assertEquals ( false , out . firstElement ( ) . get ( ) )
testSeekAfterSetDropBehind ( ) { org . apache . hadoop . hdfs . server . datanode . TestCachingStrategy . LOG . info ( "testSeekAfterSetDropBehind" ) ; org . apache . hadoop . conf . Configuration conf = new org . apache . hadoop . hdfs . HdfsConfiguration ( ) ; org . apache . hadoop . hdfs . MiniDFSCluster cluster = n...
org . junit . Assert . assertTrue ( ( ( fis . read ( ) ) != ( - 1 ) ) )
testClear ( ) { System . out . println ( "clear" ) ; org . streaminer . stream . membership . BloomFilterAlt instance = new org . streaminer . stream . membership . BloomFilterAlt ( 1000 , 100 ) ; for ( int i = 0 ; i < ( instance . size ( ) ) ; i ++ ) instance . setBit ( i , true ) ; instance . clear ( ) ; for ( int i ...
org . junit . Assert . assertSame ( instance . getBit ( i ) , false )
plainTextIncludesStyleWithinBlock ( ) { java . lang . String html = new rocker . PlainTextIncludesStyleWithinBlock ( ) . b ( true ) . size ( "<sp>margin:<sp>0px;\n" 7 ) . render ( ) . toString ( ) . trim ( ) ; java . lang . String expectedHtml = "<html>\n" + ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( "<sp>margin:<sp>0px;\n" 2 + "...
org . junit . Assert . assertEquals ( expectedHtml , html )
testGetModemConfigNotFound ( ) { org . eclipse . kura . net . admin . monitor . ModemMonitorServiceImpl svc = new org . eclipse . kura . net . admin . monitor . ModemMonitorServiceImpl ( ) ; java . util . List < org . eclipse . kura . net . NetConfig > netConfigs = new java . util . ArrayList ( ) ; org . eclipse . kura...
org . junit . Assert . assertNotNull ( result )
testSetSubscription ( ) { target . setSubscription ( "tokyo" , "subscriber1" ) ; subscribersMap = ( ( java . util . concurrent . ConcurrentHashMap < java . lang . String , java . util . concurrent . CopyOnWriteArraySet < java . lang . String > > ) ( org . powermock . reflect . Whitebox . getInternalState ( target , "su...
org . junit . Assert . assertTrue ( subscribers . contains ( "subscriber1" ) )
testGeboorteMetFout ( ) { nl . bzk . brp . business . dto . bijhouding . InschrijvingGeboorteBericht bericht = bouwFamilieBerichtMetActies ( bouwFamilieRelatieEnLijstVanActies ( man , vrouw , kind , vreemde ) ) ; java . util . List < nl . bzk . brp . model . validatie . Melding > meldingen = bedrijfsregel2 . executeer ...
org . junit . Assert . assertEquals ( 1 , meldingen . size ( ) )
testRandom ( ) { java . lang . String recv = net . floodlightcontroller . hasupport . HAServerTest . tc . send ( "0BK" ) ; "<AssertPlaceHolder>" ; } send ( java . lang . String ) { if ( message . equals ( null ) ) { return Boolean . FALSE ; } try { sc . write ( java . nio . ByteBuffer . wrap ( message . getBytes ( java...
org . junit . Assert . assertEquals ( recv , dc )
applyNotMatch ( ) { setup ( "name" ) ; org . apache . hadoop . fs . shell . PathData item = new org . apache . hadoop . fs . shell . PathData ( "/directory/path/notname" , mockFs . getConf ( ) ) ; "<AssertPlaceHolder>" ; } apply ( org . apache . hadoop . fs . shell . PathData , int ) { java . lang . String name = getPa...
org . junit . Assert . assertEquals ( Result . FAIL , name . apply ( item , ( - 1 ) ) )
testNonExistingResourceToBytes ( ) { java . lang . String resname = "doesnotexist.txt" ; byte [ ] fetched = com . sun . enterprise . util . io . FileUtils . resourceToBytes ( resname ) ; "<AssertPlaceHolder>" ; } resourceToBytes ( java . lang . String ) { java . lang . ClassLoader cl = java . lang . Thread . currentThr...
org . junit . Assert . assertNull ( fetched )
shouldJSONSerialiseAndDeserialise ( ) { final uk . gov . gchq . gaffer . operation . impl . job . GetJobResults operation = new uk . gov . gchq . gaffer . operation . impl . job . GetJobResults . Builder ( ) . jobId ( "jobId" ) . build ( ) ; byte [ ] json = uk . gov . gchq . gaffer . jsonserialisation . JSONSerialiser ...
org . junit . Assert . assertEquals ( "jobId" , deserialisedOp . getJobId ( ) )
testSkipToEndAndRead ( ) { java . io . Reader reader = makeReader ( ) ; int toSkip = mInput . length ( ) ; while ( toSkip > 0 ) { toSkip -= reader . skip ( toSkip ) ; } "<AssertPlaceHolder>" ; } read ( ) { if ( ! ( ensureBuffer ( ) ) ) { return - 1 ; } return ( buffer . get ( ) ) & 255 ; }
org . junit . Assert . assertEquals ( reader . read ( ) , ( - 1 ) )
testTimestampDeserializationObject ( ) { com . owlike . genson . Genson genson = createTemporalAmountTimestampGenson ( java . time . Duration . class , TimestampFormat . OBJECT ) ; long seconds = 321L ; long nanos = 123456789 ; java . time . Duration duration = java . time . Duration . ofSeconds ( seconds , nanos ) ; j...
org . junit . Assert . assertEquals ( duration , genson . deserialize ( json , java . time . Duration . class ) )
autorisatieOngeldigGeautoriseerdePartijDatumEindeInVerleden ( ) { toegangLeveringsAutorisatie . getGeautoriseerde ( ) . getPartij ( ) . setDatumEinde ( nl . bzk . algemeenbrp . util . common . DatumUtil . gisteren ( ) ) ; final boolean isGeldig = service . isAutorisatieGeldig ( toegangLeveringsAutorisatie , dienst ) ; ...
org . junit . Assert . assertFalse ( isGeldig )
testAvoidMockingEnvironment ( ) { final boolean defaultValue = org . evosuite . runtime . RuntimeSettings . useVFS ; org . evosuite . runtime . RuntimeSettings . useVFS = true ; try { "<AssertPlaceHolder>" ; } catch ( java . lang . Throwable t ) { org . evosuite . runtime . RuntimeSettings . useVFS = defaultValue ; } }...
org . junit . Assert . assertFalse ( org . evosuite . testcase . statements . FunctionalMockStatement . canBeFunctionalMocked ( java . io . File . class ) )
testStopNotFoundStorageContainer ( ) { org . apache . bookkeeper . stream . storage . api . sc . StorageContainerFactory scFactory = createStorageContainerFactory ( ) ; org . apache . bookkeeper . stream . storage . impl . sc . StorageContainerRegistryImpl registry = new org . apache . bookkeeper . stream . storage . i...
org . junit . Assert . assertEquals ( 0 , registry . getNumStorageContainers ( ) )
testCountsToCapacityOnOverflow ( ) { for ( int i = 0 ; i < ( ( org . fishwife . jrugged . TestWindowedEventCounter . CAPACITY ) * 2 ) ; i ++ ) { clock . currentTimeMillis = ( clock . currentTimeMillis ) + 1 ; impl . mark ( ) ; } "<AssertPlaceHolder>" ; } tally ( ) { long currentTimeMillis = clock . currentTimeMillis ( ...
org . junit . Assert . assertEquals ( org . fishwife . jrugged . TestWindowedEventCounter . CAPACITY , impl . tally ( ) )
escapedStatment ( ) { java . util . Map < java . lang . String , java . lang . String > replicationMappings = com . google . common . collect . ImmutableMap . < java . lang . String , java . lang . String > builder ( ) . put ( "db1.table_a" , "r_db.a_table" ) . put ( "db2.table_b" , "r_db.b_table" ) . build ( ) ; when ...
org . junit . Assert . assertThat ( translatedStatement , org . hamcrest . CoreMatchers . is ( expectedTranslatedStatement ) )
renderConfluencePage_asciiDocWithListing_returnsConfluencePageContentWithMacroWithNameNoFormat ( ) { java . lang . String adocContent = "----\n" + ( "import<sp>java.util.List;\n" + "----" ) ; org . sahli . asciidoc . confluence . publisher . converter . AsciidocConfluencePage asciiDocConfluencePage = org . sahli . asci...
org . junit . Assert . assertThat ( asciiDocConfluencePage . content ( ) , org . hamcrest . Matchers . is ( expectedContent ) )
shouldMapToNoneWhenSessionPersistenceTypeIsNotSet ( ) { sessionPersistence = new org . openstack . atlas . docs . loadbalancers . api . v1 . SessionPersistence ( ) ; try { domainSessionPersistence = mapper . map ( sessionPersistence , org . openstack . atlas . docs . loadbalancers . api . v1 . SessionPersistence . clas...
org . junit . Assert . assertEquals ( org . openstack . atlas . docs . loadbalancers . api . v1 . org . openstack . atlas . service . domain . entities . SessionPersistence , domainSessionPersistence )
testHasDifferenceInParameters_DifferenceInFloat ( ) { final com . igormaznitsa . mindmap . swing . panel . MindMapPanelConfig one = new com . igormaznitsa . mindmap . swing . panel . MindMapPanelConfig ( ) ; final com . igormaznitsa . mindmap . swing . panel . MindMapPanelConfig two = new com . igormaznitsa . mindmap ....
org . junit . Assert . assertTrue ( one . hasDifferenceInParameters ( two ) )
testTextTable1 ( ) { java . lang . String [ ] headers = new java . lang . String [ ] { "col1" , "column2" , "c3" } ; java . lang . String [ ] row1 = new java . lang . String [ ] { "myvalue111111111111111x" , "myvalue2" , "myvalue3" } ; java . lang . String [ ] row2 = new java . lang . String [ ] { "myvalue1" , "myvalue...
org . junit . Assert . assertEquals ( collectOutput ( ) , expectedOutput )
testAlphaConstraintsSwitchIntegers ( ) { java . lang . String str = "rule<sp>\"Bind1\"\n" + ( ( ( ( ( ( ( ( ( ( ( ( ( "when\n" + "<sp>$s<sp>:<sp>String(<sp>length<sp>==<sp>4)<sp>\n" ) + "then\n" ) + "end\n" ) + "rule<sp>\"Bind2\"\n" ) + "when\n" ) + "<sp>$s<sp>:<sp>String(<sp>length<sp>==<sp>5)<sp>\n" ) + "then\n" ) + ...
org . junit . Assert . assertEquals ( 1 , ksession . fireAllRules ( ) )
parseTestAbbreviation_Collection ( ) { java . lang . Integer [ ] integers = new java . lang . Integer [ ] { 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 10 , 11 , 12 , 13 , 14 , 15 , 16 , 17 , 18 , 19 , 20 , 21 , 22 , 23 , 24 , 25 , 26 , 27 , 28 , 29 , 30 , 31 , 32 , 33 , 34 , 35 , 36 , 37 , 38 , 39 , 40 } ; java . util . List ...
org . junit . Assert . assertEquals ( list . size ( ) , objArray . length )
canGetProtectionKey ( ) { java . lang . String protectionKeyId = service . action ( com . microsoft . windowsazure . services . media . models . ProtectionKey . getProtectionKeyId ( ContentKeyType . CommonEncryption ) ) ; java . lang . String protectionKey = service . action ( com . microsoft . windowsazure . services ...
org . junit . Assert . assertNotNull ( protectionKey )
shouldReturnFalseWhenComparingRemoteVariantFileWithContainer ( ) { org . eclipse . egit . core . synchronize . GitResourceVariantComparator grvc = new org . eclipse . egit . core . synchronize . GitResourceVariantComparator ( null ) ; java . io . File file = testRepo . createFile ( iProject , ( ( "test" + ( java . io ....
org . junit . Assert . assertFalse ( grvc . compare ( base , remote ) )
filterPersoonslijstExpressieExceptie ( ) { final nl . bzk . brp . domain . algemeen . Autorisatiebundel autorisatiebundel = maakAutorisatieBundel ( ) ; final java . util . List < nl . bzk . brp . domain . leveringmodel . persoon . Persoonslijst > persoonslijstList = maakPersoonslijst ( ) ; org . mockito . Mockito . doT...
org . junit . Assert . assertTrue ( gefilterdePersoonslijsten . isEmpty ( ) )
contains_NotValidId_Success ( ) { testEntityManager . merge ( new com . kaluzny . domain . User ( 1 , "test<sp>title<sp>1" , 1 ) ) ; testEntityManager . merge ( new com . kaluzny . domain . User ( 2 , "test<sp>title<sp>2" , 2 ) ) ; com . kaluzny . domain . User isContains = userService . findUserById ( 3 ) ; "<AssertPl...
org . junit . Assert . assertEquals ( null , isContains )
testRequisiteConfig ( ) { org . dcache . gplazma . strategies . SessionStrategy strategy = strategyFactory . newSessionStrategy ( ) ; "<AssertPlaceHolder>" ; strategy . setPlugins ( successRequisitePlugins ) ; java . util . Set < java . security . Principal > authorizedPrincipals = com . google . common . collect . Set...
org . junit . Assert . assertNotNull ( strategy )
tracksNodeCommands ( ) { org . neo4j . kernel . impl . api . state . ExplicitIndexTransactionStateImpl state = newExplicitIndexTxState ( ) ; state . addNode ( "index1" , 1 , "key1" , "value1" ) ; state . removeNode ( "index1" , 1 , "key2" , "value2" ) ; state . addNode ( "index1" , 2 , "key1" , "value3" ) ; state . add...
org . junit . Assert . assertEquals ( expectedCommands , org . neo4j . kernel . impl . api . state . ExplicitIndexTransactionStateImplTest . extractCommands ( state ) )
testDeleteEntry ( ) { dirSession . deleteEntry ( "no-such-entry" ) ; dirSession . deleteEntry ( "1" ) ; "<AssertPlaceHolder>" ; } getEntry ( K ) { return registry . get ( key ) ; }
org . junit . Assert . assertNull ( dirSession . getEntry ( "1" ) )
testGetNotExist ( ) { jp . primecloud . auto . zabbix . model . template . TemplateGetParam param = new jp . primecloud . auto . zabbix . model . template . TemplateGetParam ( ) ; param . setTemplateids ( java . util . Arrays . asList ( "999999" ) ) ; param . setOutput ( "extend" ) ; java . util . List < jp . primeclou...
org . junit . Assert . assertEquals ( 0 , templates . size ( ) )
toJsonElementPreservesNullDesiredProperties ( ) { com . microsoft . azure . sdk . iot . deps . twin . TwinState twinState = new com . microsoft . azure . sdk . iot . deps . twin . TwinState ( null , tests . unit . com . microsoft . azure . sdk . iot . deps . twin . TwinStateTest . PROPERTIES_WITH_NULL_VALUES , tests . ...
org . junit . Assert . assertTrue ( jsonElement . toString ( ) . contains ( tests . unit . com . microsoft . azure . sdk . iot . deps . twin . TwinStateTest . PROPERTIES_WITH_NULL_VALUES . toString ( ) ) )
removeObs_shouldNotThrowErrorWhenRemovingNullObsFromNonEmptySet ( ) { org . openmrs . Encounter encounterWithObsSet = new org . openmrs . Encounter ( ) ; java . util . Set < org . openmrs . Obs > obsSet = new java . util . HashSet ( ) ; obsSet . add ( new org . openmrs . Obs ( ) ) ; encounterWithObsSet . setObs ( obsSe...
org . junit . Assert . assertEquals ( 1 , encounterWithObsSet . getAllObs ( true ) . size ( ) )
runTest ( ) { org . apache . uima . resource . metadata . TypeSystemDescription global = org . apache . uima . fit . factory . TypeSystemDescriptionFactory . createTypeSystemDescription ( ) ; org . apache . uima . resource . metadata . TypeSystemDescription local ; if ( new java . io . File ( referenceFolder , "webanno...
org . junit . Assert . assertEquals ( reference , actual )
testGetFromBytes ( ) { org . talend . components . google . drive . runtime . utils . GoogleDrivePutParameters p2 = new org . talend . components . google . drive . runtime . utils . GoogleDrivePutParameters ( "destination" , "resource" , true , "byteContent" . getBytes ( ) ) ; "<AssertPlaceHolder>" ; } getFromBytes ( ...
org . junit . Assert . assertEquals ( "byteContent" , new java . lang . String ( p2 . getFromBytes ( ) ) )
testGetServiceWithServiceTrackerCustomizer ( ) { com . liferay . osgi . service . tracker . collections . list . ServiceTrackerList < java . lang . Object , java . lang . Object > serviceTrackerList = com . liferay . osgi . service . tracker . collections . list . ServiceTrackerListFactory . open ( _bundleContext , jav...
org . junit . Assert . assertTrue ( ( service instanceof com . liferay . osgi . service . tracker . collections . list . test . ServiceTrackerListTest . CustomizedService ) )
shouldDecodeTaggedRationalNumber ( ) { java . util . List < co . nstant . in . cbor . model . DataItem > items = new co . nstant . in . cbor . CborBuilder ( ) . addTag ( 1 ) . addTag ( 30 ) . addArray ( ) . add ( 1 ) . add ( 2 ) . end ( ) . build ( ) ; java . io . ByteArrayOutputStream baos = new java . io . ByteArrayO...
org . junit . Assert . assertEquals ( expected , decoder . decodeNext ( ) )
testFindIcon_nullConfigDirectory ( ) { net . roboconf . core . model . beans . ApplicationTemplate tpl = new net . roboconf . core . model . beans . ApplicationTemplate ( "app" ) . version ( "v1" ) ; "<AssertPlaceHolder>" ; } findIcon ( net . roboconf . core . model . beans . AbstractApplication ) { return net . roboco...
org . junit . Assert . assertNull ( net . roboconf . core . utils . IconUtils . findIcon ( tpl ) )
maxSizeZero ( ) { maxSizeCache . put ( "key" , "val" ) ; "<AssertPlaceHolder>" ; } get ( int ) { org . nuxeo . ecm . core . api . model . Property p = property . get ( arg0 ) ; return wrap ( p ) ; }
org . junit . Assert . assertNull ( maxSizeCache . get ( "key" ) )
testParseEmpty ( ) { org . openl . rules . convertor . String2ArrayConvertor < java . lang . Integer , java . lang . Integer [ ] > converter = new org . openl . rules . convertor . String2ArrayConvertor ( java . lang . Integer . class ) ; java . lang . Integer [ ] result = converter . parse ( "" , null ) ; "<AssertPlac...
org . junit . Assert . assertArrayEquals ( new java . lang . Integer [ ] { } , result )
testUse ( ) { ca . uwaterloo . ece . qhanam . practice . lrucombined . LRUCache cache = new ca . uwaterloo . ece . qhanam . practice . lrucombined . LRUCache ( 2 ) ; cache . set ( 1 , 1 ) ; cache . set ( 2 , 2 ) ; cache . get ( 1 ) ; cache . set ( 3 , 3 ) ; "<AssertPlaceHolder>" ; } get ( int ) { list . access ( n ) ; ...
org . junit . Assert . assertEquals ( 1 , cache . get ( 1 ) )
testListIndexesWithCursor ( ) { myConfig . setMaxConnectionCount ( 1 ) ; final int numIndexes = 60 ; com . allanbank . mongodb . MongoIterator < com . allanbank . mongodb . bson . Document > docsIter = null ; try { myCollection . insert ( Durability . ACK , com . allanbank . mongodb . bson . builder . BuilderFactory . ...
org . junit . Assert . assertThat ( count , org . hamcrest . Matchers . greaterThanOrEqualTo ( ( numIndexes + 1 ) ) )
checkDate9 ( ) { char y0 = '2' ; char y1 = '1' ; char y2 = '1' ; char y3 = '1' ; char M0 = '1' ; char M1 = '0' ; int d0 = 49 ; int d1 = 49 ; java . lang . Class < ? > c = com . diffblue . deeptestutils . Reflector . forName ( "com.alibaba.fastjson.parser.JSONScanner" ) ; java . lang . reflect . Method m = c . getDeclar...
org . junit . Assert . assertEquals ( true , retval )
testTypeExtractionGenericAnonymous ( ) { org . apache . flink . api . common . typeinfo . TypeInformation < org . apache . flink . shaded . jackson2 . com . fasterxml . jackson . databind . util . JSONPObject > type = new org . apache . flink . api . common . serialization . AbstractDeserializationSchema < org . apache...
org . junit . Assert . assertEquals ( expected , type )
testPutFalseBoolean ( ) { wrapper . writeBoolean ( false ) ; "<AssertPlaceHolder>" ; } readBoolean ( ) { if ( ActiveMQRALogger . LOGGER . isTraceEnabled ( ) ) { ActiveMQRALogger . LOGGER . trace ( "readBoolean()" ) ; } return ( ( javax . jms . StreamMessage ) ( message ) ) . readBoolean ( ) ; }
org . junit . Assert . assertFalse ( wrapper . readBoolean ( ) )
testCalculateSecondChecksumDigit ( ) { no . bekk . bekkopen . person . Fodselsnummer testcase = new no . bekk . bekkopen . person . Fodselsnummer ( "1234567891" ) ; int correctChecksum = 1 ; int calculatedChecksum = no . bekk . bekkopen . person . FodselsnummerValidator . calculateSecondChecksumDigit ( testcase ) ; "<A...
org . junit . Assert . assertEquals ( calculatedChecksum , correctChecksum )
testExtensionDisregarded ( ) { "<AssertPlaceHolder>" ; } getSequenceSize ( ) { return org . jboss . weld . test . util . ActionSequence . getSequenceSize ( org . jboss . weld . test . util . ActionSequence . DEFAULT_SEQUENCE ) ; }
org . junit . Assert . assertEquals ( 0 , org . jboss . weld . test . util . ActionSequence . getSequenceSize ( ) )
test_UnregisterHandler_Registered ( ) { final com . b2international . snowowl . eventbus . IEventBus actual = bus . registerHandler ( com . b2international . snowowl . internal . eventbus . ADDRESS , noopHandler ) . unregisterHandler ( com . b2international . snowowl . internal . eventbus . ADDRESS , noopHandler ) ; "<...
org . junit . Assert . assertEquals ( bus , actual )
testBasicSerdeInvalidHeaderCountTooHigh ( ) { org . apache . kafka . common . header . Header [ ] headers = new org . apache . kafka . common . header . Header [ ] { new org . apache . kafka . common . header . internals . RecordHeader ( "foo" , "value" . getBytes ( ) ) , new org . apache . kafka . common . header . in...
org . junit . Assert . assertEquals ( org . apache . kafka . common . record . DefaultRecord . sizeInBytes ( offsetDelta , timestampDelta , record . key ( ) , record . value ( ) , record . headers ( ) ) , logRecord . sizeInBytes ( ) )
testNotTarFile ( ) { java . io . File f = new java . io . File ( notTarFilePath ) ; f . createNewFile ( ) ; java . nio . file . Path path = java . nio . file . Paths . get ( notTarFilePath ) ; this . customProcessorUploadHandler . created ( path ) ; f = new java . io . File ( ( ( ( failedUploadMoveDirectory ) + ( java ...
org . junit . Assert . assertTrue ( f . exists ( ) )
charSequenceMapIssue ( ) { int noOfElements = 16 * 1024 ; net . openhft . collections . HugeHashMap < java . lang . CharSequence , java . lang . CharSequence > map = new net . openhft . collections . HugeHashMap < java . lang . CharSequence , java . lang . CharSequence > ( HugeConfig . DEFAULT . clone ( ) . setSegments...
org . junit . Assert . assertEquals ( entry . getKey ( ) , entry . getValue ( ) )
testAdductFormula_IMolecularFormula ( ) { org . openscience . cdk . interfaces . IAdductFormula mfS = new org . openscience . cdk . formula . AdductFormula ( getBuilder ( ) . newInstance ( org . openscience . cdk . interfaces . IMolecularFormula . class ) ) ; "<AssertPlaceHolder>" ; } size ( ) { return this . cells . s...
org . junit . Assert . assertEquals ( 1 , mfS . size ( ) )
testUserInputToValue ( ) { headerField . setValue ( "header" ) ; headerField . setHeaderLevel ( 1 ) ; "<AssertPlaceHolder>" ; } getValue ( ) { return generator . getValue ( item , itemId , propertyId ) ; }
org . junit . Assert . assertThat ( headerField . getValue ( ) , org . hamcrest . CoreMatchers . is ( "header" ) )
staticReferenceArraysAreNotEligible ( ) { java . util . List < java . lang . reflect . Field > field = net . openhft . lang . io . serialization . direct . DirectSerializationFilterTest . fieldsNamed ( "staticObjectArray" ) ; "<AssertPlaceHolder>" ; } stopAtFirstIneligibleField ( java . util . List ) { java . util . Ar...
org . junit . Assert . assertTrue ( net . openhft . lang . io . serialization . direct . DirectSerializationFilter . stopAtFirstIneligibleField ( field ) . isEmpty ( ) )
should_return_this ( ) { org . fest . assertions . api . StringAssert returned = assertions . doesNotMatch ( "Yoda" ) ; "<AssertPlaceHolder>" ; } doesNotMatch ( java . lang . String ) { strings . assertDoesNotMatch ( description , actual , regex ) ; return this ; }
org . junit . Assert . assertSame ( assertions , returned )
testDebugAdductFormula ( ) { org . openscience . cdk . interfaces . IAdductFormula mfS = new org . openscience . cdk . debug . DebugAdductFormula ( ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertNotNull ( mfS )
testForVarCharArrayForOneElementArrayWithIndex ( ) { java . lang . String [ ] strArr = new java . lang . String [ 1 ] ; strArr [ 0 ] = "abx" ; org . apache . phoenix . schema . types . PhoenixArray arr = org . apache . phoenix . schema . types . PArrayDataType . instantiatePhoenixArray ( PVarchar . INSTANCE , strArr ) ...
org . junit . Assert . assertEquals ( "abx" , org . apache . hadoop . hbase . util . Bytes . toString ( res ) )