input stringlengths 28 18.7k | output stringlengths 39 1.69k |
|---|---|
testReadLauncherActivitiesNoneFound ( ) { com . facebook . buck . android . AndroidManifestReader manifestReader = com . facebook . buck . android . DefaultAndroidManifestReader . forString ( ( "<manifest<sp>xmlns:android='http://schemas.android.com/apk/res/android'>" + ( ( ( ( ( ( ( ( "<sp><application>" + "<sp><not-a... | org . junit . Assert . assertEquals ( expected , found ) |
nextDurationWithIdenticalMinAndMax ( ) { java . time . Duration d = java . time . Duration . of ( 1 , ChronoUnit . NANOS ) ; "<AssertPlaceHolder>" ; } nextDuration ( java . time . Duration , java . time . Duration ) { int comparison = checkRange ( Ranges . Type . STRING , min , max ) ; if ( comparison == 0 ) return min... | org . junit . Assert . assertEquals ( d , source . nextDuration ( d , d ) ) |
testAutoCommitDynamicAssignmentRebalance ( ) { final java . lang . String consumerId = "consumer" ; org . apache . kafka . clients . consumer . internals . ConsumerCoordinator coordinator = buildCoordinator ( new org . apache . kafka . common . metrics . Metrics ( ) , assignors , true , true ) ; subscriptions . subscri... | org . junit . Assert . assertFalse ( client . hasPendingResponses ( ) ) |
shouldRetrieveingLoadBalancerByStatus ( ) { java . util . List < org . openstack . atlas . service . domain . services . LoadBalancer > dbLoadBalancers = loadBalancerService . getLoadbalancersGeneric ( loadBalancer . getAccountId ( ) , "BUILD" , null , null , null , null , null ) ; org . openstack . atlas . service . d... | org . junit . Assert . assertEquals ( dbLoadBalancers . size ( ) , ( ( dbLoadBalancers1 . size ( ) ) - 1 ) ) |
whenStatesHavePopGrtrThan10MillionAndSorted_thenSuccess ( ) { org . springframework . data . mongodb . core . aggregation . GroupOperation groupByStateAndSumPop = group ( "state" ) . sum ( "pop" ) . as ( "statePop" ) ; org . springframework . data . mongodb . core . aggregation . MatchOperation filterStates = match ( n... | org . junit . Assert . assertEquals ( expectedList , actualList ) |
newInstanceWithBlankPath ( ) { security . setCredentialProvider ( "" ) ; org . apache . hadoop . fs . Path result = new com . hotels . bdp . circustrain . gcp . GCPCredentialPathProvider ( security ) . newPath ( ) ; "<AssertPlaceHolder>" ; } newPath ( ) { java . lang . String credentialProviderPath = security . getCred... | org . junit . Assert . assertNull ( result ) |
mockNotRooted ( ) { com . android . ddmlib . IDevice device = org . mockito . Mockito . mock ( com . android . ddmlib . IDevice . class ) ; receiverSU = org . mockito . Mockito . mock ( com . att . aro . core . mobiledevice . pojo . RootCheckOutputReceiver . class ) ; com . att . aro . core . mobiledevice . impl . Andr... | org . junit . Assert . assertTrue ( ( rooted == false ) ) |
shouldReadACommitLogEntry ( ) { org . neo4j . kernel . impl . transaction . log . entry . LogEntryVersion version = LogEntryVersion . CURRENT ; final org . neo4j . kernel . impl . transaction . log . entry . LogEntryCommit commit = new org . neo4j . kernel . impl . transaction . log . entry . LogEntryCommit ( version ,... | org . junit . Assert . assertEquals ( commit , logEntry ) |
test ( ) { result . use ( br . com . caelum . vraptor . view . Results . http ( ) ) . body ( "content" ) ; "<AssertPlaceHolder>" ; } getBody ( ) { response . getWriter ( ) . flush ( ) ; return response . getContentAsString ( ) ; } | org . junit . Assert . assertEquals ( "content" , result . getBody ( ) ) |
testNoKeyPassword ( ) { org . apache . drill . common . config . DrillConfig testConfig = new org . apache . drill . common . config . DrillConfig ( org . apache . drill . common . config . DrillConfig . create ( org . apache . drill . exec . rpc . user . security . TestUserBitSSLServer . sslConfig ) . withValue ( Exec... | org . junit . Assert . assertEquals ( failureCaught , false ) |
testIsDuplicateKey_isDuplicateKey_usingDB2LinuxDataSource ( ) { java . lang . String databaseProductName = "DB2/LINUXX8664" ; javax . sql . DataSource dataSource = createMockDataSource ( databaseProductName ) ; org . axonframework . eventsourcing . eventstore . jpa . SQLErrorCodesResolver sqlErrorCodesResolver = new or... | org . junit . Assert . assertTrue ( isDuplicateKey ) |
testComplexLoad ( ) { replaceInFile ( "wsdls/test8/TestService.wsdl" , "8082" , ( "" + ( getPort ( ) ) ) ) ; com . eviware . soapui . impl . wsdl . WsdlProject project = new com . eviware . soapui . impl . wsdl . WsdlProject ( ) ; com . eviware . soapui . impl . wsdl . WsdlInterface [ ] wsdls = com . eviware . soapui .... | org . junit . Assert . assertEquals ( 1 , wsdls . length ) |
getUser_5 ( ) { when ( this . userManager . getUser ( org . mockito . Mockito . anyString ( ) ) ) . thenReturn ( null ) ; com . agiletec . aps . system . services . user . UserDetails user = this . authenticationProviderManager . getUser ( "test_user" ) ; "<AssertPlaceHolder>" ; org . mockito . Mockito . verify ( userM... | org . junit . Assert . assertNull ( user ) |
testConstructor ( ) { org . openscience . cdk . geometry . cip . VisitedAtoms visited = new org . openscience . cdk . geometry . cip . VisitedAtoms ( ) ; "<AssertPlaceHolder>" ; } | org . junit . Assert . assertNotNull ( visited ) |
testApplyDisplayInfo ( ) { System . out . println ( "applyDisplayInfo" ) ; edu . harvard . iq . dataverse . authorization . AuthenticatedUserDisplayInfo inf = new edu . harvard . iq . dataverse . authorization . AuthenticatedUserDisplayInfo ( "Homer" , "Simpson" , "Homer.Simpson@someU.edu" , "UnitTester" , "In-Memory<s... | org . junit . Assert . assertEquals ( inf , edu . harvard . iq . dataverse . authorization . users . AuthenticatedUserTest . testUser . getDisplayInfo ( ) ) |
testNotNeedsRollingUpdateReplicas ( ) { a . getSpec ( ) . setReplicas ( ( ( b . getSpec ( ) . getReplicas ( ) ) + 1 ) ) ; "<AssertPlaceHolder>" ; } needsRollingUpdate ( io . strimzi . operator . cluster . operator . resource . StatefulSetDiff ) { if ( diff . changesLabels ( ) ) { io . strimzi . operator . cluster . ope... | org . junit . Assert . assertFalse ( io . strimzi . operator . cluster . operator . resource . KafkaSetOperator . needsRollingUpdate ( diff ( ) ) ) |
testFilterDuplicates_No_Duplicates2 ( ) { java . util . List < org . easyrec . model . core . RecommendedItemVO < java . lang . Integer , java . lang . Integer > > recommendedItems = new java . util . ArrayList < org . easyrec . model . core . RecommendedItemVO < java . lang . Integer , java . lang . Integer > > ( ) ; ... | org . junit . Assert . assertTrue ( expectedFilteredRecommendedItems . containsAll ( actualFilteredRecommendedItems ) ) |
testFindByPage ( ) { java . lang . String pageId1 = "100" ; java . lang . String pageId2 = "200" ; java . lang . String pageName1 = "alpha" ; java . lang . String pageName2 = "bravo" ; org . oscarehr . common . model . PageMonitor pageMonitor1 = new org . oscarehr . common . model . PageMonitor ( ) ; org . oscarehr . c... | org . junit . Assert . assertTrue ( true ) |
testThanCountIsLoaded ( ) { com . ewcms . common . query . cache . CacheResult result = new com . ewcms . common . query . cache . CacheResult ( "testCacheKey" , 10 , new java . util . ArrayList < java . lang . Object > ( ) ) . setRow ( 20 ) ; result . setPage ( 6 ) ; "<AssertPlaceHolder>" ; } isLoaded ( ) { int fromIn... | org . junit . Assert . assertTrue ( result . isLoaded ( ) ) |
basicColumnWithSpacesTest ( ) { java . lang . String transformationCode = "return<sp>getValue(<sp>\t\"value\"<sp>)" ; edu . isi . karma . transformation . tokenizer . PythonTransformationAsURIValidator validator = new edu . isi . karma . transformation . tokenizer . PythonTransformationAsURIValidator ( ) ; "<AssertPlac... | org . junit . Assert . assertTrue ( validator . validate ( transformationCode ) ) |
setFetchCount ( ) { timeline . setFetchCount ( book . twju . chapter_3 . Listing_3_Spy_TimelineTest . NEW_FETCH_COUNT ) ; "<AssertPlaceHolder>" ; } getFetchCount ( ) { return fetchCount ; } | org . junit . Assert . assertEquals ( book . twju . chapter_3 . Listing_3_Spy_TimelineTest . NEW_FETCH_COUNT , timeline . getFetchCount ( ) ) |
testId ( ) { com . sap . core . odata . ref . model . Team team1 = new com . sap . core . odata . ref . model . Team ( 1 , null ) ; "<AssertPlaceHolder>" ; } getId ( ) { return id ; } | org . junit . Assert . assertNotNull ( team1 . getId ( ) ) |
testNullArrayValue ( ) { org . apache . uima . jcas . tcas . DocumentAnnotation da = ( ( org . apache . uima . jcas . tcas . DocumentAnnotation ) ( uk . gov . dstl . baleen . uima . utils . FeatureUtilsTest . jCas . getDocumentAnnotationFs ( ) ) ) ; da . setDocumentReleasability ( null ) ; org . apache . uima . cas . F... | org . junit . Assert . assertEquals ( 0 , o . length ) |
testNull ( ) { "<AssertPlaceHolder>" ; } svnInfoToInteger ( java . lang . String ) { if ( ( svninfo == null ) || ( ( org . apache . openjpa . lib . util . svn . SVNUtils . fullRevisionPattern . matcher ( svninfo ) . matches ( ) ) == false ) ) { return - 1 ; } int index = svninfo . indexOf ( ":" ) ; if ( index != ( - 1 ... | org . junit . Assert . assertEquals ( ( - 1 ) , org . apache . openjpa . lib . util . svn . SVNUtils . svnInfoToInteger ( null ) ) |
testBuildAnExchangeWithDefaultPattern ( ) { org . apache . camel . Exchange exchange = new org . apache . camel . support . DefaultExchange ( org . apache . camel . builder . ExchangeBuilderTest . CONTEXT ) ; org . apache . camel . Exchange builtExchange = org . apache . camel . builder . ExchangeBuilder . anExchange (... | org . junit . Assert . assertEquals ( exchange . getPattern ( ) , builtExchange . getPattern ( ) ) |
testSearchCountAfterDeletion ( ) { com . liferay . data . engine . model . DEDataDefinition deDataDefinition = com . liferay . data . engine . service . test . DEDataEngineTestUtil . insertDEDataDefinition ( _adminUser , _group , "description1" , "name<sp>1" , _deDataDefinitionService ) ; deleteDEDataDefinition ( _admi... | org . junit . Assert . assertEquals ( 0 , total ) |
testGetRegion_Null ( ) { org . easymock . EasyMock . expect ( computeRpcMock . getRegion ( com . google . cloud . compute . deprecated . ComputeImplTest . REGION_ID . getRegion ( ) , com . google . cloud . compute . deprecated . ComputeImplTest . EMPTY_RPC_OPTIONS ) ) . andReturn ( null ) ; org . easymock . EasyMock . ... | org . junit . Assert . assertNull ( compute . getRegion ( com . google . cloud . compute . deprecated . ComputeImplTest . REGION_ID . getRegion ( ) ) ) |
shouldParseReportDir ( ) { final java . lang . String value = "foo" ; final org . pitest . mutationtest . config . ReportOptions actual = parseAddingRequiredArgs ( "--reportDir" , value ) ; "<AssertPlaceHolder>" ; } getReportDir ( ) { return this . reportDir ; } | org . junit . Assert . assertEquals ( value , actual . getReportDir ( ) ) |
testAwardEmoji ( ) { org . gitlab4j . api . models . AwardEmoji awardEmoji = org . gitlab4j . api . JsonUtils . unmarshalResource ( org . gitlab4j . api . models . AwardEmoji . class , "award-emoji.json" ) ; "<AssertPlaceHolder>" ; } compareJson ( T , java . lang . String ) { java . io . InputStreamReader reader = new ... | org . junit . Assert . assertTrue ( org . gitlab4j . api . JsonUtils . compareJson ( awardEmoji , "award-emoji.json" ) ) |
testVolumeAdjust ( ) { int sampleSize = 100 ; org . openimaj . audio . AudioFormat af = new org . openimaj . audio . AudioFormat ( 16 , 44.1 , 1 ) ; org . openimaj . audio . SampleChunk s = new org . openimaj . audio . SampleChunk ( af ) ; byte [ ] b = synthesize ( sampleSize , s ) ; s . setSamples ( b ) ; java . nio .... | org . junit . Assert . assertArrayEquals ( expectedBytes , s2 . getSamples ( ) ) |
testShouldSetRetryContextCorrectly ( ) { org . springframework . retry . RetryContext newMock = mock ( org . springframework . retry . RetryContext . class ) ; metadataRetryContext . setRetryContext ( newMock ) ; "<AssertPlaceHolder>" ; } getRetryContext ( ) { return retryContext ; } | org . junit . Assert . assertEquals ( newMock , metadataRetryContext . getRetryContext ( ) ) |
testAssertValidForInvalidCpnj ( ) { br . com . caelum . stella . validation . Validator < java . lang . String > validator = new br . com . caelum . stella . validation . AcceptAnyValidator ( br . com . caelum . stella . validation . AcceptAnyValidator . Documento . CNPJ ) ; java . lang . String cnpj = "26.637.142/0001... | org . junit . Assert . assertFalse ( validator . invalidMessagesFor ( cnpj ) . isEmpty ( ) ) |
testAdjacencyListNoVertex ( ) { edu . ucla . sspace . graph . UndirectedMultigraph < java . lang . String > g = new edu . ucla . sspace . graph . UndirectedMultigraph < java . lang . String > ( ) ; edu . ucla . sspace . graph . Set < edu . ucla . sspace . graph . TypedEdge < java . lang . String > > adjacencyList = g .... | org . junit . Assert . assertEquals ( 0 , adjacencyList . size ( ) ) |
testStaticUndefined ( ) { com . eclipsesource . v8 . V8Object undefined = v8 . getObject ( "foo" ) ; "<AssertPlaceHolder>" ; } getUndefined ( ) { return com . eclipsesource . v8 . V8 . undefined ; } | org . junit . Assert . assertEquals ( undefined , com . eclipsesource . v8 . V8 . getUndefined ( ) ) |
testTrain_RegressionDataSet_ExecutorService ( ) { System . out . println ( "train" ) ; jsat . regression . RegressionDataSet trainSet = jsat . FixedProblems . getSimpleRegression1 ( 150 , new java . util . Random ( 2 ) ) ; jsat . regression . RegressionDataSet testSet = jsat . FixedProblems . getSimpleRegression1 ( 50 ... | org . junit . Assert . assertTrue ( ( ( errors / ( testSet . size ( ) ) ) < 1 ) ) |
testSimpleCycle_UndirectedGraph_Collection ( ) { org . openscience . cdk . ringsearch . cyclebasis . SimpleCycle cycle = new org . openscience . cdk . ringsearch . cyclebasis . SimpleCycle ( new org . _3pq . jgrapht . graph . SimpleGraph ( ) , new java . util . ArrayList ( ) ) ; "<AssertPlaceHolder>" ; } | org . junit . Assert . assertNotNull ( cycle ) |
testSimpleRestoreDoesntMove ( ) { final org . apache . druid . storage . s3 . S3DataSegmentArchiver archiver = new org . apache . druid . storage . s3 . S3DataSegmentArchiver ( org . apache . druid . storage . s3 . S3DataSegmentArchiverTest . MAPPER , org . apache . druid . storage . s3 . S3DataSegmentArchiverTest . S3... | org . junit . Assert . assertNull ( archiver . restore ( org . apache . druid . storage . s3 . S3DataSegmentArchiverTest . SOURCE_SEGMENT ) ) |
testHashCode ( ) { org . jfree . data . function . PolynomialFunction2D f1 = new org . jfree . data . function . PolynomialFunction2D ( new double [ ] { 1.0 , 2.0 } ) ; org . jfree . data . function . PolynomialFunction2D f2 = new org . jfree . data . function . PolynomialFunction2D ( new double [ ] { 1.0 , 2.0 } ) ; "... | org . junit . Assert . assertEquals ( f1 . hashCode ( ) , f2 . hashCode ( ) ) |
testGetExpirationFromMessageWithNoHeader ( ) { org . apache . qpid . proton . message . impl . MessageImpl protonMessage = ( ( org . apache . qpid . proton . message . impl . MessageImpl ) ( Message . Factory . create ( ) ) ) ; org . apache . activemq . artemis . protocol . amqp . broker . AMQPMessage decoded = encodeA... | org . junit . Assert . assertEquals ( 0 , decoded . getExpiration ( ) ) |
testCopyCriteriaMultiway ( ) { java . lang . String sql = "select<sp>bqt1.smalla.intkey,<sp>bqt2.smalla.intkey<sp>from<sp>bqt1.smalla,<sp>bqt2.smalla,<sp>bqt1.smallb<sp>where<sp>bqt1.smalla.intnum<sp>=<sp>bqt2.smalla.intnum<sp>and<sp>cast(bqt1.smalla.stringkey<sp>as<sp>integer)<sp>=<sp>coalesce(bqt2.smalla.intkey,<sp>b... | org . junit . Assert . assertNotNull ( joinNode . getJoinCriteria ( ) ) |
getMetricsQueryNoResultsIsSuccessful ( ) { com . ibm . watson . discovery . v1 . model . MetricResponse response = discovery . getMetricsQueryNoResults ( ) . execute ( ) . getResult ( ) ; "<AssertPlaceHolder>" ; } getMetricsQueryNoResults ( ) { return getMetricsQueryNoResults ( null ) ; } | org . junit . Assert . assertNotNull ( response ) |
shouldCalculatePercentageOfMultipleQuestionsAndAnswers ( ) { java . lang . String q1 = this . addQuestion ( "lecture" , 10 ) ; java . lang . String q2 = this . addQuestion ( "lecture" , 10 ) ; java . lang . String userId1 = "user1" ; java . lang . String userId2 = "user2" ; this . addAnswer ( q1 , userId1 , 10 ) ; this... | org . junit . Assert . assertEquals ( expected , actual ) |
testGetRegionLocation ( ) { org . apache . hadoop . hbase . TableName tableName = sharedTestEnv . newTestTableName ( ) ; createTable ( tableName ) ; java . util . List < org . apache . hadoop . hbase . HRegionLocation > regions = getRegions ( tableName ) ; "<AssertPlaceHolder>" ; } getRegions ( org . apache . hadoop . ... | org . junit . Assert . assertEquals ( 1 , regions . size ( ) ) |
findByIconTypeTest ( ) { java . util . List < com . jhonelee . jfdf . icon . entity . Icon > icons = this . iconRepository . findByIconType ( IconType . FONT_AWESOME ) ; "<AssertPlaceHolder>" ; } | org . junit . Assert . assertTrue ( ( ( icons . size ( ) ) >= 0 ) ) |
testSetProperty_invalidKey ( ) { org . kuali . rice . core . impl . services . ConfigurationServiceImpl . PropertyHolder propertyHolder = new org . kuali . rice . core . impl . services . ConfigurationServiceImpl . PropertyHolder ( ) ; boolean failedAsExpected = false ; try { propertyHolder . setProperty ( null , org .... | org . junit . Assert . assertTrue ( failedAsExpected ) |
serialize ( ) { "<AssertPlaceHolder>" ; } serialize ( ) { org . junit . Assert . assertArrayEquals ( data , org . onlab . packet . lacp . LacpBaseTlvTest . BASE_TLV . serialize ( ) ) ; } | org . junit . Assert . assertArrayEquals ( data , org . onlab . packet . lacp . LacpBaseTlvTest . BASE_TLV . serialize ( ) ) |
loadAuditLogs_byEmptyOperationIds ( ) { givenAuditLogs ( ) ; java . util . List < org . oscm . auditlog . model . AuditLog > dbAuditLogs = loadAuditLogsInTx ( operatorIds , 2 , 3 ) ; "<AssertPlaceHolder>" ; } size ( ) { return categoriesForMarketplace . size ( ) ; } | org . junit . Assert . assertEquals ( 2 , dbAuditLogs . size ( ) ) |
testValidateValid ( ) { java . util . List < java . lang . Exception > exceptions = handler . validate ( "#000000\n#FFFFFF" , null , null ) ; "<AssertPlaceHolder>" ; } size ( ) { if ( ( featureCache ) != null ) { return featureCache . size ( ) ; } if ( ( org . geoserver . wfs . FeatureSizeFeatureCollection . FEATURE_CA... | org . junit . Assert . assertEquals ( 0 , exceptions . size ( ) ) |
noDefinitionWithModule ( ) { tern . server . protocol . TernDoc doc = createDocForNoDefinitionModule ( ) ; tern . server . protocol . definition . MockTernDefinitionCollector collector = new tern . server . protocol . definition . MockTernDefinitionCollector ( ) ; server . request ( doc , collector ) ; "<AssertPlaceHol... | org . junit . Assert . assertNull ( collector . getFile ( ) ) |
testGetItems_Returns_Correct_Number_Of_Elements ( ) { when ( element . findAll ( any ( ) , any ( ) ) ) . thenReturn ( list ) ; mmarquee . automation . controls . menu . AutomationSystemMenu item = new mmarquee . automation . controls . menu . AutomationSystemMenu ( element ) ; java . util . List < mmarquee . automation... | org . junit . Assert . assertTrue ( ( ( items . size ( ) ) == 1 ) ) |
testGroovyVersionSupportsActionTrue ( ) { compileMojo = new org . codehaus . gmavenplus . mojo . CompileMojo ( ) ; compileMojo . classWrangler = mock ( org . codehaus . gmavenplus . util . ClassWrangler . class ) ; doReturn ( new org . codehaus . gmavenplus . model . Version ( 1 , 5 , 0 ) ) . when ( compileMojo . class... | org . junit . Assert . assertTrue ( compileMojo . groovyVersionSupportsAction ( ) ) |
RunContainerArg_ArrayANDNOT3 ( ) { org . roaringbitmap . buffer . MappeableArrayContainer ac = new org . roaringbitmap . buffer . MappeableArrayContainer ( java . nio . ShortBuffer . wrap ( new short [ ] { 5 } ) , 1 ) ; org . roaringbitmap . buffer . MappeableContainer rc = new org . roaringbitmap . buffer . MappeableR... | org . junit . Assert . assertEquals ( new org . roaringbitmap . buffer . MappeableArrayContainer ( ) , ac . andNot ( rc ) ) |
testGetFirstAvailableMethodDoNotModifyOriginalList ( ) { java . util . List < com . liferay . item . selector . ItemSelectorReturnType > itemSelectorReturnTypes = new java . util . ArrayList ( ) ; itemSelectorReturnTypes . add ( new com . liferay . item . selector . criteria . Base64ItemSelectorReturnType ( ) ) ; itemS... | org . junit . Assert . assertEquals ( itemSelectorReturnTypes . toString ( ) , 3 , itemSelectorReturnTypes . size ( ) ) |
testBusinessKey ( ) { java . lang . String procDefId = repositoryService . createProcessDefinitionQuery ( ) . singleResult ( ) . getId ( ) ; org . camunda . bpm . engine . form . StartFormData startFormData = formService . getStartFormData ( procDefId ) ; org . camunda . bpm . engine . form . FormField formField = star... | org . junit . Assert . assertTrue ( formField . isBusinessKey ( ) ) |
testMainForOSName ( ) { java . io . PrintStream out = System . out ; try { java . io . ByteArrayOutputStream buf = new java . io . ByteArrayOutputStream ( ) ; java . io . PrintStream tmpOut = new java . io . PrintStream ( buf ) ; java . lang . System . setOut ( tmpOut ) ; org . sqlite . OSInfo . main ( new java . lang ... | org . junit . Assert . assertEquals ( org . sqlite . OSInfo . getOSName ( ) , buf . toString ( ) ) |
testNewDSObjectFromJSON ( ) { info . smart_tools . smartactors . iobject . ifield_name . IFieldName fieldName = info . smart_tools . smartactors . ioc . ioc . IOC . resolve ( info . smart_tools . smartactors . ioc . named_keys_storage . Keys . getOrAdd ( "info.smart_tools.smartactors.iobject.ifield_name.IFieldName" ) ,... | org . junit . Assert . assertEquals ( "value" , object . getValue ( fieldName ) ) |
testGetAll ( ) { java . util . List < org . musicrecital . model . User > found = mgr . getAll ( ) ; log . debug ( ( "Users<sp>found:<sp>" + found ) ) ; "<AssertPlaceHolder>" ; } getAll ( ) { return dao . getAll ( ) ; } | org . junit . Assert . assertEquals ( 3 , found . size ( ) ) |
abTest ( ) { thepusher . Pusher < thepusher . PusherTest . SimpleBinding > p = thepusher . PusherBase . create ( thepusher . PusherTest . SimpleBinding . class , thepusher . PusherTest . Push . class ) ; p . bindClass ( thepusher . PusherTest . SimpleBinding . PUSHED , thepusher . PusherTest . A . class ) ; thepusher .... | org . junit . Assert . assertEquals ( b , pushed4 . a . b ) |
testOfBerichtEenRollBackKrijgt ( ) { transactieStap . voerStapUit ( administratieveHandelingMutatie , context , administratieveHandelingVerwerkingResultaat ) ; zetBerichtOpQueueStap . voerStapUit ( leveringautorisatieStappenOnderwerp , afnemerContext , afnemerVerwerkingResultaat ) ; administratieveHandelingVerwerkingRe... | org . junit . Assert . assertNull ( berichtOpQueue ) |
testCreateRequestFuture ( ) { java . util . concurrent . Future < ? > future = requestContext . getFuture ( ) ; "<AssertPlaceHolder>" ; } getFuture ( ) { return rpcResultFuture ; } | org . junit . Assert . assertNotNull ( future ) |
convexHullTest_Sedgewick ( ) { java . util . ArrayList < java . awt . Point > points = new java . util . ArrayList < java . awt . Point > ( ) ; points . add ( new java . awt . Point ( 30 , 90 ) ) ; points . add ( new java . awt . Point ( 110 , 10 ) ) ; points . add ( new java . awt . Point ( 60 , 80 ) ) ; points . add ... | org . junit . Assert . assertEquals ( 8 , convHull . vertexNumber ( ) ) |
testConvertEmpty ( ) { java . sql . Time result = underTest . convert ( "" ) ; "<AssertPlaceHolder>" ; } convert ( java . lang . String ) { if ( "S" . equalsIgnoreCase ( value ) ) { return Size . TINY ; } else if ( "M" . equalsIgnoreCase ( value ) ) { return Size . NORMAL ; } else if ( "L" . equalsIgnoreCase ( value ) ... | org . junit . Assert . assertNull ( result ) |
shouldRejectLbConfigs ( ) { cluster . setNumberOfLoadBalancingConfigurations ( 2 ) ; org . openstack . atlas . api . validation . results . ValidatorResult result = cTest . validate ( cluster , org . openstack . atlas . api . mgmt . validation . validators . PUT ) ; "<AssertPlaceHolder>" ; } resultMessage ( org . opens... | org . junit . Assert . assertFalse ( resultMessage ( result , org . openstack . atlas . api . mgmt . validation . validators . PUT ) , result . passedValidation ( ) ) |
testCalculateInformationGainCell ( ) { setUpInformationGain ( ) ; de . metanome . backend . result_postprocessing . result_ranking . FunctionalDependencyRanking ranking = new de . metanome . backend . result_postprocessing . result_ranking . FunctionalDependencyRanking ( functionalDependencyResults , tableInformationMa... | org . junit . Assert . assertEquals ( ( - 2.0 ) , result . getInformationGainCells ( ) , 0.0 ) |
testGetResourceInBundleOrFragmentsWhenMissing ( ) { java . net . URL url = com . liferay . osgi . util . BundleUtil . getResourceInBundleOrFragments ( _bundle , "/fileMissing.properties" ) ; "<AssertPlaceHolder>" ; } getResourceInBundleOrFragments ( org . osgi . framework . Bundle , java . lang . String ) { java . lang... | org . junit . Assert . assertNull ( url ) |
checkIfTheErrorMapIsRead ( ) { com . couchbase . client . core . endpoint . kv . ErrorMap errMap = com . couchbase . client . core . endpoint . ResponseStatusConverter . getBinaryErrorMap ( ) ; "<AssertPlaceHolder>" ; } getBinaryErrorMap ( ) { return com . couchbase . client . core . endpoint . ResponseStatusConverter ... | org . junit . Assert . assertNotNull ( errMap ) |
testEstablishRouteViaProxyTunnelFailure ( ) { final org . apache . hc . client5 . http . HttpRoute route = new org . apache . hc . client5 . http . HttpRoute ( target , null , proxy , true ) ; final org . apache . hc . client5 . http . protocol . HttpClientContext context = new org . apache . hc . client5 . http . prot... | org . junit . Assert . assertEquals ( "Ka-boom" , ex . getResponseMessage ( ) ) |
spi ( ) { profile . add ( "root" , com . asakusafw . runtime . directio . hadoop . HadoopDataSource . class , "/" ) ; profile . add ( "root" , HadoopDataSourceProfile . KEY_PATH , folder . getRoot ( ) . toURI ( ) . toURL ( ) . toString ( ) ) ; profile . put ( ) ; put ( "base/output.txt" , "Hello,<sp>world!" ) ; com . a... | org . junit . Assert . assertThat ( list , is ( java . util . Arrays . asList ( "Hello,<sp>world!" ) ) ) |
testPopulateReleases_setFirstEmrReleaseInJobEntry ( ) { java . lang . String expectedEmrRelease = "emr-5.11.0" ; org . pentaho . amazon . hive . job . AmazonHiveJobExecutor jobEntry = spy ( new org . pentaho . amazon . hive . job . AmazonHiveJobExecutor ( ) ) ; org . pentaho . amazon . hive . ui . AmazonHiveJobExecutor... | org . junit . Assert . assertEquals ( expectedEmrRelease , jobEntry . getEmrRelease ( ) ) |
importTest ( ) { org . dkpro . lab . task . impl . Task producer = new org . dkpro . lab . task . impl . ExecutableTaskBase ( ) { @ org . dkpro . lab . task . impl . Override public void execute ( org . dkpro . lab . engine . TaskContext aContext ) throws org . dkpro . lab . task . impl . Exception { System . out . pri... | org . junit . Assert . assertEquals ( data . getProperty ( "key" ) , "value" ) |
callingToString_onOpenStream_returnsEmptyString ( ) { name . neuhalfen . projects . crypto . bouncycastle . openpgp . testtooling . HashingOutputStream sut = name . neuhalfen . projects . crypto . bouncycastle . openpgp . testtooling . HashingOutputStream . sha256 ( ) ; "<AssertPlaceHolder>" ; } toString ( ) { return n... | org . junit . Assert . assertThat ( sut . toString ( ) , org . hamcrest . CoreMatchers . is ( org . hamcrest . CoreMatchers . equalTo ( "" ) ) ) |
test ( ) { int expected = org . roaringbitmap . realdata . RealDataBenchmarkOrTest . EXPECTED_RESULTS . get ( dataset ) ; org . roaringbitmap . realdata . RealDataBenchmarkOr bench = new org . roaringbitmap . realdata . RealDataBenchmarkOr ( ) ; "<AssertPlaceHolder>" ; } pairwiseOr ( org . roaringbitmap . realdata . st... | org . junit . Assert . assertEquals ( expected , bench . pairwiseOr ( bs ) ) |
testGetJenkinsServerSettings ( ) { com . kylenicholls . stash . parameterizedbuilds . ciserver . Server expected = new com . kylenicholls . stash . parameterizedbuilds . ciserver . Server ( "url" , null , "user" , "token" , false , false ) ; when ( pluginSettings . get ( ".jenkinsSettings" ) ) . thenReturn ( expected .... | org . junit . Assert . assertEquals ( expected . asMap ( ) , actual . asMap ( ) ) |
testCannotInstallAmbiguousFacetType ( ) { org . jboss . forge . addon . projects . Project project = projectFactory . createTempProject ( ) ; "<AssertPlaceHolder>" ; facetFactory . install ( project , org . jboss . forge . addon . javaee . jms . JMSFacet . class ) ; } createTempProject ( ) { return createTempProject ( ... | org . junit . Assert . assertNotNull ( project ) |
updateConsidersMappingAnnotations ( ) { org . springframework . data . mongodb . core . MongoTemplateTests . TypeWithFieldAnnotation entity = new org . springframework . data . mongodb . core . MongoTemplateTests . TypeWithFieldAnnotation ( ) ; entity . emailAddress = "old" ; template . save ( entity ) ; org . springfr... | org . junit . Assert . assertThat ( result . emailAddress , is ( "new" ) ) |
getsAndSetsDescription ( ) { com . mpatric . mp3agic . ID3v2CommentFrameData frameData = new com . mpatric . mp3agic . ID3v2CommentFrameData ( false ) ; com . mpatric . mp3agic . EncodedText description = new com . mpatric . mp3agic . EncodedText ( "my<sp>description" ) ; frameData . setDescription ( description ) ; "<... | org . junit . Assert . assertEquals ( description , frameData . getDescription ( ) ) |
shouldExecuteRealMethod ( ) { doCallRealMethod ( ) . when ( mock ) . setValue ( anyString ( ) ) ; mock . setValue ( "REAL_VALUE" ) ; "<AssertPlaceHolder>" ; } setValue ( fr . inria . lille . repair . expression . value . Value ) { expressionUnderEvaluation . setValue ( value ) ; } | org . junit . Assert . assertEquals ( "REAL_VALUE" , mock . value ) |
testFromEbXmlEmpty ( ) { org . openehealth . ipf . commons . ihe . xds . core . ebxml . EbXMLClassification ebXML = transformer . toEbXML ( new org . openehealth . ipf . commons . ihe . xds . core . metadata . Code ( ) , objectLibrary ) ; "<AssertPlaceHolder>" ; } fromEbXML ( org . openehealth . ipf . commons . ihe . x... | org . junit . Assert . assertEquals ( new org . openehealth . ipf . commons . ihe . xds . core . metadata . Code ( ) , transformer . fromEbXML ( ebXML ) ) |
testFailSecond ( ) { org . apache . hadoop . fs . shell . find . Or or = new org . apache . hadoop . fs . shell . find . Or ( ) ; org . apache . hadoop . fs . shell . PathData pathData = mock ( org . apache . hadoop . fs . shell . PathData . class ) ; org . apache . hadoop . fs . shell . find . Expression first = mock ... | org . junit . Assert . assertEquals ( Result . PASS , or . apply ( pathData ) ) |
loadConfig ( ) { com . networknt . encode . ResponseEncodeConfig config = ( ( com . networknt . encode . ResponseEncodeConfig ) ( com . networknt . config . Config . getInstance ( ) . getJsonObjectConfig ( ResponseEncodeConfig . CONFIG_NAME , com . networknt . encode . ResponseEncodeConfig . class ) ) ) ; "<AssertPlace... | org . junit . Assert . assertEquals ( config . getEncoders ( ) . size ( ) , 2 ) |
testCheckTimeoutActive ( ) { txn . checkTimeout ( ) ; java . lang . Thread . sleep ( com . sun . sgs . test . impl . service . transaction . TestTransactionCoordinatorImpl . TIMED_OUT ) ; try { txn . checkTimeout ( ) ; org . junit . Assert . fail ( "Expected<sp>TransactionTimeoutException" ) ; } catch ( com . sun . sgs... | org . junit . Assert . assertTrue ( txn . isAborted ( ) ) |
getReviewKeyForDeletion_SelectedReviewIsNull ( ) { manageReviewModel . setServiceReview ( null ) ; long result = manageReviewCtrl . getReviewKeyForDeletion ( ) ; "<AssertPlaceHolder>" ; } getReviewKeyForDeletion ( ) { if ( ( manageReviewModel . getServiceReview ( ) ) != null ) { return manageReviewModel . getServiceRev... | org . junit . Assert . assertEquals ( 0 , result ) |
testGetExtraHiddenFieldsNotNullMapFromProcessorResult ( ) { when ( requestDataValueProcessor . getExtraHiddenFields ( any ( javax . servlet . http . HttpServletRequest . class ) ) ) . thenReturn ( new java . util . HashMap < java . lang . String , java . lang . String > ( ) ) ; java . util . Map < java . lang . String ... | org . junit . Assert . assertNotNull ( map ) |
openSafelayerEnvelope ( ) { final java . security . KeyStore ks = java . security . KeyStore . getInstance ( "PKCS12" ) ; ks . load ( java . lang . ClassLoader . getSystemResourceAsStream ( es . gob . afirma . envelopers . cms . TestSafelayerEnvelopes . CERT_PATH ) , es . gob . afirma . envelopers . cms . TestSafelayer... | org . junit . Assert . assertArrayEquals ( originalData , recoveredData ) |
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 ( clusterGroups . isEmpty ( ) ) |
testUserId ( ) { org . eclipse . orion . server . core . metastore . WorkspaceInfo workspaceInfo = new org . eclipse . orion . server . core . metastore . WorkspaceInfo ( ) ; java . lang . String userId = "id" ; workspaceInfo . setUserId ( userId ) ; "<AssertPlaceHolder>" ; } getUserId ( ) { return userId ; } | org . junit . Assert . assertEquals ( userId , workspaceInfo . getUserId ( ) ) |
testTranceCellRefreshToken ( ) { java . lang . String base = "https://localhost:8080/dc1-core/testcell1/__role/__/" ; java . util . List < com . fujitsu . dc . common . auth . token . Role > roleList = new java . util . ArrayList < com . fujitsu . dc . common . auth . token . Role > ( ) ; roleList . add ( new com . fuj... | org . junit . Assert . assertEquals ( tokenStr , token2 . toTokenString ( ) ) |
testConfiguredProxyAvoidProxyNonProxyHost ( ) { avoidProxy = true ; httpProxyHost = "foo" ; httpNonProxyHosts = "www.google.com" ; java . lang . String pac = makeProxyPAC ( ) ; java . lang . String expected = "function<sp>FindProxyForURL(url,<sp>host)<sp>{<sp>" + ( ( "if<sp>(shExpMatch(host,<sp>'www.google.com'))<sp>{<... | org . junit . Assert . assertEquals ( expected , pac ) |
test ( ) { com . arjuna . orbportability . ORB myORB = null ; com . arjuna . orbportability . RootOA myOA = null ; myORB = com . arjuna . orbportability . ORB . getInstance ( "test" ) ; myOA = com . arjuna . orbportability . OA . getRootOA ( myORB ) ; myORB . initORB ( new java . lang . String [ ] { } , null ) ; myOA .... | org . junit . Assert . assertNotNull ( myControl ) |
put ( ) { com . addthis . bundle . value . ValueObject value = com . addthis . hydra . data . filter . value . TestValueFilterMapValue . applyFilter ( "{key:<sp>z,<sp>put:<sp>0}" ) ; com . addthis . bundle . value . ValueMap result = com . addthis . bundle . value . ValueFactory . createMap ( ) ; result . put ( "a" , c... | org . junit . Assert . assertEquals ( value , result ) |
testConfiguredAllowNullValueTypeForList ( ) { org . jboss . dmr . ModelNode description = createSubsystemSkeleton ( ModelType . LIST , ( ( org . jboss . dmr . ModelType ) ( null ) ) ) ; org . jboss . as . subsystem . test . ModelDescriptionValidator . ValidationConfiguration arbitraryDescriptors = new org . jboss . as ... | org . junit . Assert . assertEquals ( 0 , errors . size ( ) ) |
noConnectedProfiles ( ) { java . util . List < com . springsource . greenhouse . members . ConnectedProfile > connectedProfiles = profileRepository . findConnectedProfiles ( 2L ) ; "<AssertPlaceHolder>" ; } findConnectedProfiles ( java . lang . Long ) { return jdbcTemplate . query ( com . springsource . greenhouse . me... | org . junit . Assert . assertEquals ( 0 , connectedProfiles . size ( ) ) |
testMerge ( ) { java . io . InputStream stream1 = getClassLoaderResource ( "/tiff/ccitt/group3_1d.tif" ) . openStream ( ) ; java . io . InputStream stream2 = getClassLoaderResource ( "/tiff/ccitt/group3_2d.tif" ) . openStream ( ) ; java . io . InputStream stream3 = getClassLoaderResource ( "/tiff/ccitt/group4.tif" ) . ... | org . junit . Assert . assertEquals ( 3 , reader . getNumImages ( true ) ) |
testParseSuperErr ( ) { target = new org . o3project . odenos . core . component . network . flow . query . FlowActionOutputQuery ( null ) ; "<AssertPlaceHolder>" ; } parse ( ) { if ( ! ( super . parse ( ) ) ) { return false ; } if ( ! ( org . o3project . odenos . core . component . network . BasicQuery . checkMapExact... | org . junit . Assert . assertThat ( target . parse ( ) , org . hamcrest . CoreMatchers . is ( false ) ) |
whenCheckingIsSupertypeOf_shouldReturnFalseIfGenericIsSpecified ( ) { com . google . common . reflect . TypeToken < java . util . ArrayList < java . lang . String > > listString = new com . google . common . reflect . TypeToken < java . util . ArrayList < java . lang . String > > ( ) { } ; com . google . common . refle... | org . junit . Assert . assertFalse ( isSupertypeOf ) |
testMinorCompactionDisabled ( ) { java . lang . String dbName = "default" ; java . lang . String tblName = "delete<sp>from<sp>" 7 ; org . apache . hadoop . hive . ql . txn . compactor . TestCrudCompactorOnTez . executeStatementOnDriver ( ( "delete<sp>from<sp>" 1 + tblName ) , driver ) ; org . apache . hadoop . hive . q... | org . junit . Assert . assertEquals ( 0 , compacts . size ( ) ) |
testGetQoS_3 ( ) { java . lang . String qos = "shared=oneweek" ; java . lang . String shared = org . apache . airavata . gfac . core . GFacUtils . getQoS ( qos , "compute" ) ; "<AssertPlaceHolder>" ; } getQoS ( java . lang . String , java . lang . String ) { if ( ( ( ( preferredBatchQueue == null ) || ( preferredBatchQ... | org . junit . Assert . assertNull ( shared ) |
testConvertAll ( ) { java . lang . Long id = 1L ; java . lang . String abbrName = "abbr<sp>Name" ; java . lang . String name = "n<sp>a<sp>m<sp>e" ; org . lnu . is . domain . employee . type . EmployeeType source = new org . lnu . is . domain . employee . type . EmployeeType ( ) ; source . setId ( id ) ; source . setAbb... | org . junit . Assert . assertEquals ( expecteds , actuals ) |
testOFPFlowActionSetMplsTtlInteger ( ) { org . o3project . odenos . core . component . network . flow . ofpflow . OFPFlowActionSetMplsTtl target = new org . o3project . odenos . core . component . network . flow . ofpflow . OFPFlowActionSetMplsTtl ( 1234 ) ; "<AssertPlaceHolder>" ; } getMplsTtl ( ) { return mplsTtl ; } | org . junit . Assert . assertThat ( target . getMplsTtl ( ) , org . hamcrest . CoreMatchers . is ( new java . lang . Integer ( 1234 ) ) ) |
testSelectParameterizedEmptyNotIn ( ) { createArtistsDataSet ( ) ; org . apache . cayenne . query . SelectQuery < org . apache . cayenne . testdo . testmap . Artist > query = new org . apache . cayenne . query . SelectQuery ( org . apache . cayenne . testdo . testmap . Artist . class ) ; org . apache . cayenne . exp . ... | org . junit . Assert . assertEquals ( 20 , objects . size ( ) ) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.