input
stringlengths
28
18.7k
output
stringlengths
39
1.69k
testConvertToAvro ( ) { java . lang . String expected = "s" ; org . talend . daikon . avro . converter . AvroConverter < java . lang . Character , java . lang . String > converter = new org . talend . codegen . converter . CharStringConverter ( ) ; java . lang . String actual = converter . convertToAvro ( 's' ) ; "<Ass...
org . junit . Assert . assertEquals ( expected , actual )
test_shouldNotChangeJavaVersionBecauseJdkValueDoesNotExist ( ) { createApplication ( ) ; try { org . springframework . shell . core . CommandResult result = changeJavaVersion ( "jdk1.XXX" ) ; "<AssertPlaceHolder>" ; } finally { removeApplication ( ) ; } } isFailedCommand ( ) { return new fr . treeptik . cloudunit . cli...
org . junit . Assert . assertThat ( result , isFailedCommand ( ) )
testSparseInterpolation_random1 ( ) { int nIterations = its ( 1000 , 2000 ) ; org . apache . commons . math3 . random . RandomGenerator rnd = getRandom ( ) ; cc . redberry . rings . poly . multivar . MultivariateGCDTest . lGCDSampleDataZp sampleData = new cc . redberry . rings . poly . multivar . MultivariateGCDTest . ...
org . junit . Assert . assertEquals ( gcd . monic ( ) , actual . monic ( ) )
testListJobsNotLaunchable ( ) { when ( jobLocator . getJobNames ( ) ) . thenReturn ( java . util . Arrays . asList ( "job1" , "job2" ) ) ; when ( jobInstanceDao . getJobNames ( ) ) . thenReturn ( java . util . Arrays . asList ( "job3" , "job2" ) ) ; "<AssertPlaceHolder>" ; } listJobs ( int , int ) { java . util . Colle...
org . junit . Assert . assertEquals ( 4 , service . listJobs ( 0 , 5 ) . size ( ) )
testSizeIsFiveIfTreeHasFiveEntries ( ) { "<AssertPlaceHolder>" ; } create ( int , int ) { com . github . davidmoten . rtree . RTree < java . lang . Object , com . github . davidmoten . rtree . geometry . Rectangle > tree = com . github . davidmoten . rtree . RTree . maxChildren ( maxChildren ) . create ( ) ; for ( int ...
org . junit . Assert . assertEquals ( 5 , com . github . davidmoten . rtree . RTreeTest . create ( 3 , 5 ) . size ( ) )
testSetForeground ( ) { org . eclipse . swt . graphics . Color color = new org . eclipse . swt . graphics . Color ( display , 100 , 100 , 100 ) ; org . eclipse . rap . rwt . template . Cell cell = new org . eclipse . rap . rwt . template . TestCell ( template , "foo" ) ; cell . setForeground ( color ) ; "<AssertPlaceHo...
org . junit . Assert . assertSame ( color , cell . getForeground ( ) )
testGetValueIncludeBoth ( ) { when ( view . getIncludeStartValue ( ) ) . thenReturn ( true ) ; when ( view . getStartValue ( ) ) . thenReturn ( "1" ) ; when ( view . getEndValue ( ) ) . thenReturn ( "6" ) ; when ( view . getIncludeEndValue ( ) ) . thenReturn ( true ) ; final java . lang . String expected = "[1..6]" ; f...
org . junit . Assert . assertEquals ( expected , actual )
testSave ( ) { com . ewcms . common . dao . model . Model model = new com . ewcms . common . dao . model . Model ( 1 , "test" ) ; dao . persist ( model ) ; model = dao . get ( 1 ) ; "<AssertPlaceHolder>" ; } get ( K ) { return entityManager . find ( entityClass , pk ) ; }
org . junit . Assert . assertNotNull ( model )
testConvert ( ) { java . lang . String name = "first<sp>blood" ; java . lang . String abbrName = "fb" ; java . lang . Long paperUsageId = 2L ; org . lnu . is . domain . paper . usage . PaperUsage paperUsage = new org . lnu . is . domain . paper . usage . PaperUsage ( ) ; paperUsage . setId ( paperUsageId ) ; org . lnu ...
org . junit . Assert . assertEquals ( expected , actual )
testSetThreadFactory ( ) { final java . util . concurrent . ThreadFactory tf = java . util . concurrent . Executors . defaultThreadFactory ( ) ; final com . allanbank . mongodb . MongoClientConfiguration config = new com . allanbank . mongodb . MongoClientConfiguration ( ) ; config . setThreadFactory ( tf ) ; "<AssertP...
org . junit . Assert . assertSame ( tf , config . getThreadFactory ( ) )
testGetNamespace ( ) { con . begin ( ) ; con . setNamespace ( "rdf" , RDF . NAMESPACE ) ; con . commit ( ) ; "<AssertPlaceHolder>" ; } getNamespace ( int ) { if ( i < 1 ) throw new java . lang . IllegalArgumentException ( ) ; return ( ( namespace ) + "_" ) + i ; }
org . junit . Assert . assertEquals ( RDF . NAMESPACE , con . getNamespace ( "rdf" ) )
testNoPlanWithPropertyRestrictionsEnabledButPropertyIgnored ( ) { org . apache . jackrabbit . oak . spi . state . NodeBuilder builder = nodeState . builder ( ) ; builder . child ( "oak:index" ) . child ( "solr" ) . setProperty ( "ignoredProperties" , java . util . Collections . singleton ( "name" ) , Type . STRINGS ) ....
org . junit . Assert . assertEquals ( 0 , plans . size ( ) )
testOneLevel ( ) { me . hao0 . wechat . utils . XmlWriters xmlWriters = me . hao0 . wechat . utils . XmlWriters . create ( ) ; xmlWriters . element ( "ToUserName" , "123456" ) . element ( "FromUserName" , "me" ) . element ( "CreateTime" , java . lang . System . currentTimeMillis ( ) ) . element ( "MsgType" , "transfer_...
org . junit . Assert . assertNotNull ( xmlWriters . build ( ) )
testPredicatedAlts ( ) { java . lang . String grammar = "grammar<sp>T;\n" + ( ( ( ( ( ( "options<sp>{output=template;}\n" + "a<sp>:<sp>ID<sp>INT<sp>-><sp>{false}?<sp>foo(x={$ID.text},y={$INT.text})\n" ) + "<sp>-><sp>foo(x={\"hi\"},<sp>y={$ID.text})\n" ) + "<sp>;\n" ) + "ID<sp>:<sp>\'a\'..\'z\'+<sp>;\n" ) + "INT<sp>:<sp...
org . junit . Assert . assertEquals ( "a" 2 , found )
testCountryCode ( ) { final net . violet . platform . api . actions . Action theAction = new net . violet . platform . api . actions . stores . GetStores ( ) ; final net . violet . platform . api . callers . APICaller caller = getPublicApplicationAPICaller ( ) ; final java . util . Map < java . lang . String , java . l...
org . junit . Assert . assertNotNull ( theResult )
testIsPOMFileWithPOMFile ( ) { final javax . enterprise . inject . spi . Bean moduleServiceBean = ( ( javax . enterprise . inject . spi . Bean ) ( beanManager . getBeans ( org . kie . workbench . common . services . shared . project . KieModuleService . class ) . iterator ( ) . next ( ) ) ) ; final javax . enterprise ....
org . junit . Assert . assertTrue ( result )
awaitWithTimeoutMustReturnTrueIfCompletesWithinTimeout ( ) { createPool ( ) ; stormpot . Poolable obj = pool . claim ( stormpot . PoolTest . longTimeout ) ; java . util . concurrent . atomic . AtomicBoolean result = new java . util . concurrent . atomic . AtomicBoolean ( false ) ; stormpot . Completion completion = poo...
org . junit . Assert . assertTrue ( result . get ( ) )
getIndex ( ) { int count = 10 ; byte [ ] bytes1 = new byte [ count ] ; byte [ ] bytes2 = new byte [ count ] ; for ( int i = 0 ; i < count ; i ++ ) { if ( i < ( count / 2 ) ) { bytes1 [ i ] = ( ( byte ) ( i ) ) ; bytes2 [ i ] = - 1 ; } else { bytes1 [ i ] = - 1 ; bytes2 [ i ] = ( ( byte ) ( i ) ) ; } } java . nio . Byte...
org . junit . Assert . assertEquals ( ( ( byte ) ( i ) ) , mbb . get ( i ) )
shouldBeVerified ( ) { final org . apache . tinkerpop . gremlin . process . traversal . Traversal copy = org . apache . tinkerpop . gremlin . process . traversal . strategy . verification . StandardVerificationStrategyTest . copyAndConfigureTraversal ( traversal ) ; if ( legalTraversal ) { copy . asAdmin ( ) . applyStr...
org . junit . Assert . assertTrue ( true )
testLocalizeMacStringsWithSpecialCharacters ( ) { com . box . l10n . mojito . service . tm . Repository repo = repositoryService . createRepository ( testIdWatcher . getEntityName ( "repository" ) ) ; com . box . l10n . mojito . service . tm . RepositoryLocale repoLocale ; try { repoLocale = repositoryService . addRepo...
org . junit . Assert . assertEquals ( assetContent , localizedAsset )
givenResourceDoesNotExist_whenResourceIsRetrieved_thenNoResourceIsReceived ( ) { final com . baeldung . domain . Foo createdResource = getApi ( ) . findOne ( com . baeldung . util . IDUtil . randomPositiveLong ( ) ) ; "<AssertPlaceHolder>" ; } randomPositiveLong ( ) { long id = ( new java . util . Random ( ) . nextLong...
org . junit . Assert . assertNull ( createdResource )
testGetConfigAsync ( ) { when ( androidAppService . getAndroidConfigAsync ( com . google . firebase . projectmanagement . AndroidAppTest . APP_ID ) ) . thenReturn ( createApiFuture ( com . google . firebase . projectmanagement . AndroidAppTest . ANDROID_CONFIG ) ) ; java . lang . String config = androidApp . getConfigA...
org . junit . Assert . assertEquals ( config , com . google . firebase . projectmanagement . AndroidAppTest . ANDROID_CONFIG )
closeFlatMap ( ) { int [ ] closed = new int [ 3 ] ; java . util . stream . LongStream . of ( 0 , 1 ) . flatMap ( ( n ) -> java . util . stream . LongStream . of ( n , ( n + 1 ) ) . onClose ( ( ) -> ( closed [ ( ( int ) ( n ) ) ] ) ++ ) ) . onClose ( ( ) -> ( closed [ 2 ] ) ++ ) . skip ( 10 ) . close ( ) ; "<AssertPlace...
org . junit . Assert . assertArrayEquals ( new int [ ] { 0 , 0 , 1 } , closed )
testEmptyJsonMap ( ) { java . lang . String emptyMap = "{}" ; java . util . Map < java . lang . String , java . lang . String > data = beanJsonConverter . convertToObject ( emptyMap , new com . google . inject . TypeLiteral < java . util . Map < java . lang . String , java . lang . String > > ( ) { } . getType ( ) ) ; ...
org . junit . Assert . assertTrue ( data . isEmpty ( ) )
testIdenticalOutput ( ) { com . spinn3r . artemis . json . PrototypeFooEncoder prototypeFooEncoder = new com . spinn3r . artemis . json . PrototypeFooEncoder ( 50000 , 50000 ) ; java . nio . ByteBuffer byteBuffer0 = prototypeFooEncoder . encode ( foo ) ; com . spinn3r . artemis . util . io . FastByteArrayOutputStream f...
org . junit . Assert . assertEquals ( toString ( byteBuffer0 ) , toString ( byteBuffer1 ) )
getUniqueId_whenIdExist_recallStoredId ( ) { java . lang . String expectedUniqueIdKey = "UniqueId" ; java . lang . String expectedUniqueId = "98765" ; when ( mockPreferences . getString ( eq ( expectedUniqueIdKey ) , anyString ( ) ) ) . thenReturn ( expectedUniqueId ) ; java . lang . String uniqueId = serviceToTest . g...
org . junit . Assert . assertThat ( uniqueId , org . hamcrest . Matchers . is ( expectedUniqueId ) )
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 ( addresses . isEmpty ( ) )
multipleNamedExportTypes ( ) { org . milyn . Smooks smooks = new org . milyn . Smooks ( "/org/milyn/payload/exports-named.xml" ) ; smooks . createExecutionContext ( ) ; org . milyn . payload . Exports exports = org . milyn . payload . Exports . getExports ( smooks . getApplicationContext ( ) ) ; java . util . Collectio...
org . junit . Assert . assertEquals ( 2 , exportTypes . size ( ) )
testContainingCategoriesCompatibleNonRegisteredType ( ) { com . twelvemonkeys . util . service . Iterator < java . lang . Class < ? > > categories = registry . containingCategories ( new com . twelvemonkeys . util . service . DummySPI ( ) { } ) ; "<AssertPlaceHolder>" ; } hasNext ( ) { return indexIter . hasNext ( ) ; ...
org . junit . Assert . assertFalse ( categories . hasNext ( ) )
testVisitTotalProbeCount ( ) { counter . visitTotalProbeCount ( 42 ) ; "<AssertPlaceHolder>" ; } getCount ( ) { return count ; }
org . junit . Assert . assertEquals ( 42 , counter . getCount ( ) )
sublist_2 ( ) { final com . ericsson . otp . erlang . OtpErlangList r = ( ( com . ericsson . otp . erlang . OtpErlangList ) ( termParser . parse ( "[1,2,3|4]" ) ) ) ; final com . ericsson . otp . erlang . OtpErlangList s = ( ( com . ericsson . otp . erlang . OtpErlangList ) ( termParser . parse ( "[2,3|4]" ) ) ) ; fina...
org . junit . Assert . assertEquals ( s , ss )
testGetAllProxies ( ) { java . util . List < com . ctrip . xpipe . redis . console . model . ProxyTbl > proxies = proxyDao . getAllProxyTbls ( ) ; java . util . Collections . sort ( proxies , new java . util . Comparator < com . ctrip . xpipe . redis . console . model . ProxyTbl > ( ) { @ com . ctrip . xpipe . redis . ...
org . junit . Assert . assertEquals ( 2 , proxies . size ( ) )
shouldReturnDefaultTemplatePathPrefixIfNotConfiguredInSettings ( ) { when ( mockPippoSettings . getString ( anyString ( ) , anyString ( ) ) ) . then ( ( args ) -> args . getArgument ( 1 ) ) ; templateEngine . init ( mockApplication ) ; java . lang . String templatePathPrefix = templateEngine . getTemplatePathPrefix ( )...
org . junit . Assert . assertThat ( templatePathPrefix , org . hamcrest . core . Is . is ( TemplateEngine . DEFAULT_PATH_PREFIX ) )
testViewArticleDetail ( ) { com . ewcms . publication . service . ChannelPublishServiceable channelService = mock ( com . ewcms . publication . service . ChannelPublishServiceable . class ) ; com . ewcms . core . site . model . Channel channel = new com . ewcms . core . site . model . Channel ( ) ; com . ewcms . core ....
org . junit . Assert . assertTrue ( ( ( out . size ( ) ) > 0 ) )
upgradeEducationsToVrc3Test ( ) { javax . xml . bind . JAXBContext jaxbContext1 = javax . xml . bind . JAXBContext . newInstance ( org . orcid . jaxb . model . record . summary_rc3 . Educations . class ) ; javax . xml . bind . JAXBContext jaxbContext2 = javax . xml . bind . JAXBContext . newInstance ( org . orcid . jax...
org . junit . Assert . assertEquals ( rc4Educations1 , rc4Educations2 )
header_unmappable_report ( ) { com . asakusafw . runtime . io . text . driver . RecordDefinition < java . lang . String [ ] > def = com . asakusafw . runtime . io . text . driver . RecordDefinition . builder ( java . lang . String [ ] . class ) . withHeaderType ( HeaderType . FORCE ) . withOnUnmappableOutput ( ErrorAct...
org . junit . Assert . assertThat ( results , is ( new java . lang . String [ ] [ ] { new java . lang . String [ ] { "a" , ErrorCode . CONFLICT_SEQUENCE . name ( ) } , new java . lang . String [ ] { "A" , "B" } } ) )
testGetRecordWriter ( ) { com . mongodb . DBCollection mockCollection = org . mockito . Mockito . mock ( com . mongodb . DBCollection . class ) ; org . apache . hadoop . security . UserGroupInformation ugi = org . mockito . Mockito . mock ( org . apache . hadoop . security . UserGroupInformation . class ) ; org . power...
org . junit . Assert . assertTrue ( ( ( f . getRecordWriter ( new org . slc . sli . aggregation . mapreduce . io . MockTaskAttemptContext ( ) ) ) instanceof org . slc . sli . aggregation . mapreduce . io . MongoAggWriter ) )
testThrowCheckedException ( ) { java . io . IOException expected = new java . io . IOException ( "EXPECTED<sp>ERROR" ) ; java . io . IOException actual = null ; try { org . slieb . throwables . DoubleBinaryOperatorWithThrowable . aDoubleBinaryOperatorThatUnsafelyThrowsUnchecked ( ( v1 , v2 ) -> { throw expected ; } ) ....
org . junit . Assert . assertEquals ( expected , actual )
overlapsEmpty1 ( ) { net . time4j . PlainDate startA = net . time4j . PlainDate . of ( 2014 , 5 , 13 ) ; net . time4j . PlainDate endA = net . time4j . PlainDate . of ( 2014 , 6 , 15 ) ; net . time4j . PlainDate startB = net . time4j . PlainDate . of ( 2014 , 6 , 15 ) ; net . time4j . range . DateInterval a = net . tim...
org . junit . Assert . assertThat ( a . overlaps ( b ) , org . hamcrest . CoreMatchers . is ( false ) )
testGetSingleValue__no_result ( ) { org . sagebionetworks . repo . model . Annotations anno = new org . sagebionetworks . repo . model . Annotations ( ) ; java . lang . String result = ( ( java . lang . String ) ( anno . getSingleValue ( "key1" ) ) ) ; "<AssertPlaceHolder>" ; } getSingleValue ( java . lang . String ) {...
org . junit . Assert . assertNull ( result )
testTest ( ) { java . lang . String filename_cml = "data/mdl/9554-with-exp-hyd.mol" ; java . lang . String filename_mol = "data/mdl/9553-with-exp-hyd.mol" ; java . io . InputStream ins1 = this . getClass ( ) . getClassLoader ( ) . getResourceAsStream ( filename_cml ) ; java . io . InputStream ins2 = this . getClass ( )...
org . junit . Assert . assertThat ( moleculeSmile1 , org . hamcrest . CoreMatchers . is ( org . hamcrest . CoreMatchers . not ( moleculeSmile2 ) ) )
testIconRelativePathService ( ) { if ( shouldSkipBundleTests ( ) ) return ; com . liferay . ide . project . core . model . NewLiferayPluginProjectOp newProjectOp = NewLiferayPluginProjectOp . TYPE . instantiate ( ) ; newProjectOp . setProjectName ( "test-path" ) ; newProjectOp . setPluginType ( PluginType . portlet ) ;...
org . junit . Assert . assertEquals ( true , ( ( iconPaths . size ( ) ) > 0 ) )
testCanCacheAResponseWithoutABody ( ) { final org . apache . hc . core5 . http . ClassicHttpResponse response = new org . apache . hc . core5 . http . message . BasicClassicHttpResponse ( org . apache . hc . core5 . http . HttpStatus . SC_NO_CONTENT , "No<sp>Content" ) ; response . setHeader ( "Date" , org . apache . h...
org . junit . Assert . assertEquals ( 1 , backend . getExecutions ( ) )
testAllColumnsWithBloomFilter ( ) { byte [ ] TABLE = org . apache . hadoop . hbase . util . Bytes . toBytes ( name . getMethodName ( ) ) ; byte [ ] FAMILY = org . apache . hadoop . hbase . util . Bytes . toBytes ( "family" ) ; org . apache . hadoop . hbase . HColumnDescriptor hcd = new org . apache . hadoop . hbase . H...
org . junit . Assert . assertEquals ( 4 , kvs . length )
testGetConnectionProperties ( ) { org . talend . components . marklogic . tmarklogicconnection . MarkLogicConnectionProperties connectionProperties = new org . talend . components . marklogic . tmarklogicconnection . MarkLogicConnectionProperties ( "connectionProperties" ) ; connectionProperties . init ( ) ; testInputP...
org . junit . Assert . assertEquals ( connectionProperties , testInputProperties . getConnectionProperties ( ) )
testRemoveGenericResourceAllocation ( ) { org . libreplan . business . planner . entities . GenericResourceAllocation resourceAllocation = createValidGenericResourceAllocation ( ) ; resourceAllocationDAO . save ( resourceAllocation ) ; resourceAllocationDAO . remove ( resourceAllocation . getId ( ) ) ; "<AssertPlaceHol...
org . junit . Assert . assertFalse ( resourceAllocationDAO . exists ( resourceAllocation . getId ( ) ) )
verifyEmptyMatch ( ) { dakara . eclipse . plugin . stringscore . StringScore stringScore = new dakara . eclipse . plugin . stringscore . StringScore ( dakara . eclipse . plugin . stringscore . StringScoreRanking . standardContiguousSequenceRanking ( ) , dakara . eclipse . plugin . stringscore . StringScoreRanking . sta...
org . junit . Assert . assertEquals ( 0 , score . rank )
acceptTwoSuccess ( ) { java . lang . String script = "#<sp>Accept<sp>script\n" + ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( "\taccept<sp>\'tcp://localhost:8080\'<sp>#commentagain\n" + "\t#comment<sp>#1\n" ) + "accepted\n" ) + "#comment<sp>#2\n" ) + "#comment<sp>#5\n" 0 ) + "#comment<sp>#3\n" ) + "close\n" ) + "#comment<sp>#4\n"...
org . junit . Assert . assertEquals ( script , observedScript )
testGetTriggerStagesOk ( ) { "<AssertPlaceHolder>" ; } getTriggerStages ( ) { final java . lang . String value = this . properties . get ( org . sump . device . logicsniffer . profile . DeviceProfile . DEVICE_TRIGGER_STAGES ) ; return java . lang . Integer . parseInt ( value ) ; }
org . junit . Assert . assertEquals ( 0 , this . profile . getTriggerStages ( ) )
testSSLConnectionInvalidPassword ( ) { System . out . println ( "Running<sp>testSSLConnectionInvalidPassword" ) ; java . lang . String filename = "facebook-10443244874876159931" ; javax . net . ssl . TrustManager naiveTrustMgr = new javax . net . ssl . X509TrustManager ( ) { @ com . marklogic . client . functionaltest ...
org . junit . Assert . assertTrue ( "/write-text-doc/" 0 , isExceptionThrown )
shouldReturnTrueWhenTT1DoseIsGiven ( ) { boolean didRuleSucceed = rule . apply ( new org . ei . drishti . util . SafeMap ( ) . put ( "ttDose" , "tt1" ) ) ; "<AssertPlaceHolder>" ; } put ( java . lang . String , java . lang . String ) { data . put ( key , value ) ; return this ; }
org . junit . Assert . assertTrue ( didRuleSucceed )
testPromoteDoubleAndBigIntegerResultsInBigDecimalType ( ) { "<AssertPlaceHolder>" ; } promote ( com . redhat . lightblue . metadata . Type , com . redhat . lightblue . metadata . Type ) { if ( ( ( operand1 instanceof com . redhat . lightblue . metadata . types . BigIntegerType ) && ( operand2 instanceof com . redhat . ...
org . junit . Assert . assertEquals ( BigDecimalType . TYPE , com . redhat . lightblue . metadata . types . Arith . promote ( DoubleType . TYPE , BigIntegerType . TYPE ) )
check_if_file_is_hidden_nio ( ) { boolean isHidden = java . nio . file . Files . isHidden ( source ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertFalse ( isHidden )
testStepDuplicateInputLowerCase ( ) { java . net . URI resource = getClass ( ) . getResource ( "/corrupted/duplicate/duplicate_step_input_lowercase.sl" ) . toURI ( ) ; io . cloudslang . lang . compiler . modeller . result . ExecutableModellingResult result = compiler . preCompileSource ( io . cloudslang . lang . compil...
org . junit . Assert . assertTrue ( ( ( result . getErrors ( ) . size ( ) ) > 0 ) )
testExtractDataUris ( ) { initializeExpectedTable ( 2 ) ; expect ( bigquery . getOptions ( ) ) . andReturn ( mockOptions ) ; com . google . cloud . bigquery . Job expectedJob = new com . google . cloud . bigquery . Job ( serviceMockReturnsOptions , new com . google . cloud . bigquery . JobInfo . BuilderImpl ( com . goo...
org . junit . Assert . assertSame ( expectedJob , job )
updateKnownLengthDoesNothing ( ) { mInfo . updateLength ( ( 2 * ( alluxio . Constants . KB ) ) ) ; "<AssertPlaceHolder>" ; } getLength ( ) { return 0 ; }
org . junit . Assert . assertEquals ( Constants . KB , mInfo . getLength ( ) )
getCurrentSiteTitle ( ) { "<AssertPlaceHolder>" ; } getCurrentSiteTitle ( ) { org . junit . Assert . assertEquals ( org . sakaiproject . mailsender . logic . impl . ExternalLogicImplTest . LOCATION_TITLE , impl . getCurrentSiteTitle ( ) ) ; }
org . junit . Assert . assertEquals ( org . sakaiproject . mailsender . logic . impl . ExternalLogicImplTest . LOCATION_TITLE , impl . getCurrentSiteTitle ( ) )
testOutputPrefix_Default ( ) { org . sejda . model . parameter . DecryptParameters parameters = defaultCommandLine ( ) . invokeSejdaConsole ( ) ; "<AssertPlaceHolder>" ; } getOutputPrefix ( ) { return outputPrefix ; }
org . junit . Assert . assertEquals ( "" , parameters . getOutputPrefix ( ) )
testScript_UnVard_Scoped ( ) { final java . lang . String cfcSrc = "<cfcomponent>\r\n" + ( ( ( ( ( "<cffunction<sp>name=\"test\">\r\n" + "\t<cfscript>\r\n" ) + "<sp>cfevent.yy<sp>=<sp>123;\r\n" ) + "\t</cfscript>\r\n" ) + "</cffunction>\r\n" ) + "</cfcomponent>" ) ; com . cflint . api . CFLintResult lintresult = cfBugs...
org . junit . Assert . assertEquals ( 1 , lintresult . getIssues ( ) . size ( ) )
testNonTokenDirective ( ) { java . lang . String header = "Digest<sp>user{name=\"test\"" ; java . io . StringReader input = new java . io . StringReader ( header ) ; java . util . Map < java . lang . String , java . lang . String > result = org . apache . tomcat . util . http . parser . HttpParser . parseAuthorizationD...
org . junit . Assert . assertNull ( result )
testCall ( ) { java . net . URLClassLoader customerClassLoader = new java . net . URLClassLoader ( new java . net . URL [ ] { } ) ; java . lang . ClassLoader saveCcl = java . lang . Thread . currentThread ( ) . getContextClassLoader ( ) ; java . lang . Thread . currentThread ( ) . setContextClassLoader ( customerClassL...
org . junit . Assert . assertEquals ( org . apache . phoenix . util . PhoenixContextExecutor . class . getClassLoader ( ) , java . lang . Thread . currentThread ( ) . getContextClassLoader ( ) )
test_createPomCreator_nullAssemblyFile ( ) { java . util . Map < java . lang . String , java . lang . Object > parameters = new java . util . HashMap < java . lang . String , java . lang . Object > ( ) ; parameters . put ( IBuildPomCreatorParameters . PROCESSOR , new org . talend . designer . core . build . TestProcess...
org . junit . Assert . assertNull ( provider . createPomCreator ( parameters ) )
findByName ( ) { permissionService . createRole ( new io . lavagna . service . Role ( "TEST-DERP-DERP" ) ) ; "<AssertPlaceHolder>" ; } findRoleByName ( java . lang . String ) { return queries . findRoleByName ( name ) ; }
org . junit . Assert . assertNotNull ( permissionService . findRoleByName ( "TEST-DERP-DERP" ) )
replaceEmptyDocumentTest ( ) { org . apache . cxf . ws . transfer . manager . ResourceManager resourceManager = new org . apache . cxf . ws . transfer . manager . MemoryResourceManager ( ) ; org . apache . cxf . ws . addressing . ReferenceParametersType refParams = resourceManager . create ( new org . apache . cxf . ws...
org . junit . Assert . assertEquals ( "a" , rootEl . getNodeName ( ) )
testFindAll ( ) { java . util . List < com . github . emailtohl . building . site . entities . user . Customer > ls = customerRepository . findAll ( ) ; "<AssertPlaceHolder>" ; } findAll ( ) { return customRepository . findAll ( ) ; }
org . junit . Assert . assertFalse ( ls . isEmpty ( ) )
testSetAndGetLastObjects ( ) { java . lang . Object [ ] record = new java . lang . Object [ ] { "String" , 1 , 10L , 1.1 } ; listener . recordProvided ( Operation . INSERT , record ) ; "<AssertPlaceHolder>" ; } getLastRecord ( ) { return lastRecord ; }
org . junit . Assert . assertArrayEquals ( record , listener . getLastRecord ( ) )
shouldUpdateSegmentFileNameFromOldColonFormatToNewFormat ( ) { final java . lang . String storeDirectoryPath = ( ( stateDirectory . getAbsolutePath ( ) ) + ( java . io . File . separator ) ) + ( storeName ) ; final java . io . File storeDirectory = new java . io . File ( storeDirectoryPath ) ; storeDirectory . mkdirs (...
org . junit . Assert . assertTrue ( newSegment . exists ( ) )
stateMachineTraits0117Test ( ) { cruise . umple . compiler . UmpleModel model = getModelByFilename ( "trait_test_data_0074.ump" ) ; boolean result = false ; try { model . run ( ) ; } catch ( java . lang . Exception e ) { result = e . getMessage ( ) . contains ( "67" ) ; } finally { "<AssertPlaceHolder>" ; cruise . umpl...
org . junit . Assert . assertFalse ( result )
testOpDuplicateOutputIgnoreCase ( ) { java . net . URI resource = getClass ( ) . getResource ( "/corrupted/duplicate/duplicate_op_output_ignore_case.sl" ) . toURI ( ) ; io . cloudslang . lang . compiler . modeller . result . ExecutableModellingResult result = compiler . preCompileSource ( io . cloudslang . lang . compi...
org . junit . Assert . assertTrue ( ( ( result . getErrors ( ) . size ( ) ) > 0 ) )
profile ( ) { org . jboss . hal . dmr . ResourceAddress input = new org . jboss . hal . dmr . ResourceAddress ( ) . add ( "profile" , "full" ) ; org . jboss . hal . dmr . ResourceAddress expected = new org . jboss . hal . dmr . ResourceAddress ( ) . add ( "profile" , "*" ) ; org . jboss . hal . dmr . ResourceAddress re...
org . junit . Assert . assertEquals ( expected , result )
testAcceptInvalidType ( ) { com . thinkbiganalytics . policy . standardization . UppercaseStandardizer standardizer = com . thinkbiganalytics . policy . standardization . UppercaseStandardizer . instance ( ) ; java . lang . Double doubleValue = 1000.05 ; "<AssertPlaceHolder>" ; } accepts ( com . thinkbiganalytics . clu...
org . junit . Assert . assertFalse ( standardizer . accepts ( doubleValue ) )
testGetIndicesForColumn ( ) { com . bah . culvert . mock . MockIndex ix1 = new com . bah . culvert . mock . MockIndex ( "foo" , 0 , true , "a" . getBytes ( ) , "b" . getBytes ( ) , "c" , "d" ) ; com . bah . culvert . mock . MockIndex ix2 = new com . bah . culvert . mock . MockIndex ( "bar" , 0 , true , "e" . getBytes (...
org . junit . Assert . assertNotNull ( client . getIndicesForColumn ( "c" , "a" . getBytes ( ) , "b" . getBytes ( ) ) )
testSave ( ) { java . util . List < com . amazonaws . mobileconnectors . dynamodbv2 . dynamodbmapper . NumberAttributeClass > objs = new java . util . ArrayList < com . amazonaws . mobileconnectors . dynamodbv2 . dynamodbmapper . NumberAttributeClass > ( ) ; for ( int i = 0 ; i < 5 ; i ++ ) { com . amazonaws . mobileco...
org . junit . Assert . assertEquals ( obj , loaded )
testSave ( ) { net . runelite . cache . script . Instructions instructions = new net . runelite . cache . script . Instructions ( ) ; instructions . init ( ) ; net . runelite . cache . definitions . ScriptDefinition script = new net . runelite . cache . script . assembler . Assembler ( instructions ) . assemble ( getCl...
org . junit . Assert . assertEquals ( script , loadedScripot )
shouldAddPropertiesBuilder ( ) { java . util . Properties expected = new java . util . Properties ( ) ; expected . setProperty ( "Key-1" , "Value-1" ) ; expected . setProperty ( "Key-2" , "Value-2" ) ; com . oracle . bedrock . runtime . PropertiesBuilder parent = new com . oracle . bedrock . runtime . PropertiesBuilder...
org . junit . Assert . assertThat ( properties , org . hamcrest . CoreMatchers . is ( expected ) )
testRetryCancel ( ) { com . ctrip . xpipe . command . TestCommand command = new com . ctrip . xpipe . command . TestCommand ( new java . lang . Exception ( "just<sp>throw" ) ) ; com . ctrip . xpipe . command . CommandRetryWrapper < java . lang . String > wrapper = ( ( com . ctrip . xpipe . command . CommandRetryWrapper...
org . junit . Assert . assertTrue ( ( ( wrapper . getExecuteCount ( ) ) < ( ( retryCount ) + 1 ) ) )
testFindAccessContract ( ) { fr . gouv . vitam . common . thread . VitamThreadUtils . getVitamSession ( ) . setTenantId ( fr . gouv . vitam . functional . administration . common . server . MongoDbAccessAdminImplTest . TENANT_ID ) ; final fr . gouv . vitam . functional . administration . common . server . FunctionalAdm...
org . junit . Assert . assertEquals ( "aName" , foundContract . getString ( AccessContract . NAME ) )
lifecycleMethodsNotCalledIfInputsFail ( ) { final com . spotify . flo . Task < java . lang . String > failingInput = com . spotify . flo . Task . named ( "foo" ) . ofType ( java . lang . String . class ) . process ( ( ) -> { throw new java . lang . RuntimeException ( "Fail" ) ; } ) ; final com . spotify . flo . Task < ...
org . junit . Assert . assertThat ( throwable . getMessage ( ) , org . hamcrest . Matchers . is ( "Fail" ) )
testSignalProcessInstanceAbortedProcess ( ) { long processInstanceId = processService . startProcess ( deploymentUnit . getIdentifier ( ) , org . jbpm . kie . services . test . ProcessServiceImplPerProcessInstanceTest . PROCESS_ID_SIGNAL ) ; "<AssertPlaceHolder>" ; processService . abortProcessInstance ( processInstanc...
org . junit . Assert . assertNotNull ( processInstanceId )
testTwiceWriter ( ) { java . io . PrintWriter writer1 = responseWrapper . getWriter ( ) ; java . io . PrintWriter writer2 = responseWrapper . getWriter ( ) ; "<AssertPlaceHolder>" ; } getWriter ( ) { if ( ( outputStream ) != null ) { throw new java . lang . IllegalStateException ( "Only<sp>one<sp>of<sp>getWriter()/getO...
org . junit . Assert . assertSame ( writer1 , writer2 )
testEquivalence ( ) { org . teiid . query . sql . lang . Create c1 = sample1 ( ) ; org . teiid . query . sql . lang . Create c2 = sample1 ( ) ; "<AssertPlaceHolder>" ; } sample1 ( ) { org . teiid . query . sql . lang . Create create = getFactory ( ) . newCreate ( ) ; create . setTable ( getFactory ( ) . newGroupSymbol ...
org . junit . Assert . assertEquals ( c1 , c2 )
testCase79 ( ) { org . evosuite . testcase . DefaultTestCase tc = buildTestCase79 ( ) ; java . util . List < org . evosuite . symbolic . BranchCondition > branch_conditions = executeTest ( tc ) ; "<AssertPlaceHolder>" ; } size ( ) { return theTest . size ( ) ; }
org . junit . Assert . assertEquals ( 1 , branch_conditions . size ( ) )
simpleInsertAndLRURemoveTest ( ) { org . apache . apex . malhar . lib . state . spillable . TimeBasedPriorityQueue < java . lang . String > queue = new org . apache . apex . malhar . lib . state . spillable . TimeBasedPriorityQueue < java . lang . String > ( ) ; queue . upSert ( "a" ) ; java . util . Set < java . lang ...
org . junit . Assert . assertEquals ( com . google . common . collect . Sets . newHashSet ( "a" ) , set )
singletonTest ( ) { final org . apache . reef . tang . Configuration c = new org . apache . reef . tang . formats . MyConfigurationModule ( ) . bindImplementation ( org . apache . reef . tang . formats . TestConfigurationModule . Foo . class , org . apache . reef . tang . formats . MyConfigurationModule . THE_FOO ) . b...
org . junit . Assert . assertTrue ( ( ( i . getInstance ( org . apache . reef . tang . formats . TestConfigurationModule . Foo . class ) ) == ( i . getInstance ( org . apache . reef . tang . formats . TestConfigurationModule . Foo . class ) ) ) )
testQuote ( ) { java . lang . String expected = "<div<sp>class=\"quote-title\">citer:</div><div<sp>class=\"quote\">" + "<div<sp>class=\"quote-content\">text</div></div>" ; java . lang . String actual = _htmlBBCodeTranslator . parse ( "[quote=citer]text[/quote]" ) ; "<AssertPlaceHolder>" ; } parse ( java . lang . String...
org . junit . Assert . assertEquals ( expected , actual )
testDoScheduledTask0WithFailure ( ) { info = "#<sp>Server\n" + ( ( ( ( ( ( ( "redis_version:2.8.19\n" + "xredis_version:1.0.1\n" ) + "redis_git_sha1:cd114f7e\n" ) + "redis_git_dirty:0\n" ) + "redis_build_id:c8fc0834f9ecab75\n" ) + "redis_mode:standalone\n" ) + "os:Darwin<sp>17.5.0<sp>x86_64\n" ) + "arch_bits:64\n" ) ; ...
org . junit . Assert . assertFalse ( action . isCheckPassed ( ) )
test_intByURL ( ) { java . lang . String response = sendGetRequest ( "/call/test/test_int?p=5" , 200 ) ; com . eclipsesource . json . JsonValue result = getValueFromResponse ( response ) ; int value = result . asInt ( ) ; "<AssertPlaceHolder>" ; } getValueFromResponse ( java . lang . String ) { com . eclipsesource . js...
org . junit . Assert . assertEquals ( 5 , value )
testFlowWithOnFailureStepsAsList ( ) { java . net . URI resource = getClass ( ) . getResource ( "/corrupted/on_failure_with_step_map.sl" ) . toURI ( ) ; io . cloudslang . lang . compiler . modeller . result . ExecutableModellingResult result = compiler . preCompileSource ( io . cloudslang . lang . compiler . SlangSourc...
org . junit . Assert . assertTrue ( ( ( result . getErrors ( ) . size ( ) ) > 0 ) )
shouldReturnTrueWhenValidOptions ( ) { final uk . gov . gchq . gaffer . accumulostore . key . AbstractElementFilter filter = new uk . gov . gchq . gaffer . accumulostore . key . impl . ElementPreAggregationFilter ( ) ; final java . util . Map < java . lang . String , java . lang . String > options = new java . util . H...
org . junit . Assert . assertTrue ( isValid )
testValidateStringColumnEmptyString ( ) { org . sagebionetworks . repo . model . table . ColumnModel cm = new org . sagebionetworks . repo . model . table . ColumnModel ( ) ; cm . setColumnType ( ColumnType . STRING ) ; cm . setMaximumSize ( 555L ) ; "<AssertPlaceHolder>" ; } validateRowValue ( java . lang . String , o...
org . junit . Assert . assertEquals ( "" , org . sagebionetworks . table . cluster . utils . TableModelUtils . validateRowValue ( "" , cm , 0 , 0 ) )
equalsDifferentSampleCountReturnsFalse ( ) { com . rackspacecloud . blueflood . types . BluefloodCounterRollup a = new com . rackspacecloud . blueflood . types . BluefloodCounterRollup ( ) . withCount ( 1 ) . withSampleCount ( 1 ) ; com . rackspacecloud . blueflood . types . BluefloodCounterRollup b = new com . rackspa...
org . junit . Assert . assertFalse ( a . equals ( b ) )
testGetPrefixForNamespaceURIWhenDefinitionsIsNull ( ) { final java . lang . String namespaceURI = org . kie . workbench . common . dmn . client . editors . types . common . FEEL . getUri ( ) ; when ( dmnGraphUtils . getDefinitions ( ) ) . thenReturn ( null ) ; final java . util . Optional < java . lang . String > prefi...
org . junit . Assert . assertFalse ( prefix . isPresent ( ) )
test_param_string_copy_4 ( ) { org . apache . jena . query . ParameterizedSparqlString query = new org . apache . jena . query . ParameterizedSparqlString ( ) ; query . setBaseUri ( "http://example.org" ) ; org . apache . jena . query . ParameterizedSparqlString copy = query . copy ( ) ; "<AssertPlaceHolder>" ; } getBa...
org . junit . Assert . assertEquals ( "http://example.org" , copy . getBaseUri ( ) )
one_$this_array_query_projection_with_match_projection ( ) { com . redhat . lightblue . query . Projection p = com . redhat . lightblue . eval . EvalTestContext . projectionFromJson ( "{'field':'field7.$this','match':{'field':'elemf3','op':'>','rvalue':4},'projection':{'field':'*'}}" ) ; com . redhat . lightblue . eval...
org . junit . Assert . assertEquals ( expectedNode . toString ( ) , pdoc . toString ( ) )
nullFieldDoesntFail ( ) { "<AssertPlaceHolder>" ; } clipSignature ( org . sejda . sambox . pdmodel . interactive . form . PDField ) { if ( ( nonNull ( field ) ) && ( COSName . SIG . getName ( ) . equals ( field . getFieldType ( ) ) ) ) { org . sejda . impl . sambox . component . SignatureClipper . clipSignature ( field...
org . junit . Assert . assertFalse ( org . sejda . impl . sambox . component . SignatureClipper . clipSignature ( null ) )
isSupportedShouldBeFalseIfTheClientDoesntSupportTemplates ( ) { when ( client . supports ( eq ( com . openshift . restclient . capability . server . ITemplateProcessing . class ) ) ) . thenReturn ( false ) ; capability = new com . openshift . internal . restclient . capability . resources . ProjectTemplateProcessing ( ...
org . junit . Assert . assertFalse ( capability . isSupported ( ) )
testNodeReplacementInEmptyNetwork ( ) { org . apache . beam . vendor . guava . v20_0 . com . google . common . graph . MutableNetwork < java . lang . String , java . lang . String > network = org . apache . beam . runners . dataflow . worker . graph . NetworksTest . createEmptyNetwork ( ) ; org . apache . beam . runner...
org . junit . Assert . assertThat ( network . nodes ( ) , empty ( ) )
test_notify_exception ( ) { try { com . webpagebytes . cms . cmsdata . WPBPage pageMock = org . powermock . api . easymock . PowerMock . createMock ( com . webpagebytes . cms . cmsdata . WPBPage . class ) ; pageCacheMock . Refresh ( ) ; org . easymock . EasyMock . expectLastCall ( ) . andThrow ( new com . webpagebytes ...
org . junit . Assert . assertTrue ( false )
testToObjectArrayForPrimitiveArray ( ) { for ( int i = 0 ; i < ( cz . zcu . kiv . jop . util . ArrayUtilsTest . primitives . length ) ; i ++ ) { int size = getArrayLength ( ) ; java . lang . Object [ ] expected = ( ( java . lang . Object [ ] ) ( java . lang . reflect . Array . newInstance ( cz . zcu . kiv . jop . util ...
org . junit . Assert . assertArrayEquals ( expected , cz . zcu . kiv . jop . util . ArrayUtils . toObjectArray ( array ) )
testMaakExpressieMetEnkelMaterieelAttribuut ( ) { metElementen ( false , true , false ) ; final nl . bzk . brp . model . algemeen . stamgegeven . kern . Element groepElement = nl . bzk . brp . model . algemeen . stamgegeven . kern . TestElementBuilder . maker ( ) . metNaam ( ElementEnum . PERSOON_ADRES ) . maak ( ) ; f...
org . junit . Assert . assertEquals ( 1 , expressie . aantalElementen ( ) )