input stringlengths 28 18.7k | output stringlengths 39 1.69k |
|---|---|
shouldNotBeValidWith2Null ( ) { io . gravitee . management . model . InlinePictureEntity apiPicture = mock ( io . gravitee . management . model . InlinePictureEntity . class ) ; when ( mockApiService . getPicture ( io . gravitee . management . service . ApiQualityMetricLogoTest . API_ID ) ) . thenReturn ( apiPicture ) ... | org . junit . Assert . assertFalse ( valid ) |
createProxyConnector ( ) { org . jboss . modcluster . container . tomcat . ConnectorFactory factory = mock ( org . jboss . modcluster . container . tomcat . ConnectorFactory . class ) ; org . apache . catalina . Engine engine = mock ( org . apache . catalina . Engine . class ) ; org . jboss . modcluster . container . C... | org . junit . Assert . assertSame ( expected , result ) |
testColumnCountGetFilterWithFilterList ( ) { java . lang . String family = "Family" ; org . apache . hadoop . hbase . HTableDescriptor htd = new org . apache . hadoop . hbase . HTableDescriptor ( "testColumnCountGetFilter" ) ; htd . addFamily ( new org . apache . hadoop . hbase . HColumnDescriptor ( family ) ) ; org . ... | org . junit . Assert . assertEquals ( 100 , results . size ( ) ) |
checkScriptingEngineCostAndIsolation ( ) { try ( org . nuxeo . automation . scripting . api . AutomationScriptingService . Session session = pool . get ( this . session ) ) { try ( java . io . InputStream stream = this . getClass ( ) . getResourceAsStream ( "/QuickScript.js" ) ) { "<AssertPlaceHolder>" ; java . lang . ... | org . junit . Assert . assertNotNull ( stream ) |
whenUseCaptorAnnotation_thenTheSam ( ) { mockedList . add ( "one" ) ; org . baeldung . mockito . Mockito . verify ( mockedList ) . add ( argCaptor . capture ( ) ) ; "<AssertPlaceHolder>" ; } getValue ( ) { return value ; } | org . junit . Assert . assertEquals ( "one" , argCaptor . getValue ( ) ) |
testUnindexed ( ) { java . util . List < org . apache . lucene . index . Term > terms = com . google . common . collect . ImmutableList . copyOf ( new com . greplin . lucene . index . TermsForField ( this . reader , "noIndex" ) ) ; "<AssertPlaceHolder>" ; } | org . junit . Assert . assertEquals ( java . util . Collections . < org . apache . lucene . index . Term > emptyList ( ) , terms ) |
testEncryptedDataSecurityHeaderWithoutReferenceInbound ( ) { java . io . ByteArrayOutputStream baos = new java . io . ByteArrayOutputStream ( ) ; { java . io . InputStream sourceDocument = this . getClass ( ) . getClassLoader ( ) . getResourceAsStream ( "testdata/plain-soap-1.1.xml" ) ; org . w3c . dom . Document doc =... | org . junit . Assert . assertEquals ( nodeList . getLength ( ) , 0 ) |
testSetRandomSeed_long ( ) { long seed = java . lang . System . currentTimeMillis ( ) ; org . openscience . cdk . math . RandomNumbersTool . setRandomSeed ( seed ) ; "<AssertPlaceHolder>" ; } getRandomSeed ( ) { return org . openscience . cdk . math . RandomNumbersTool . randomSeed ; } | org . junit . Assert . assertEquals ( seed , org . openscience . cdk . math . RandomNumbersTool . getRandomSeed ( ) ) |
selectForEach ( ) { org . eclipse . collections . api . LazyIterable < java . lang . Integer > select = org . eclipse . collections . impl . utility . LazyIterate . select ( org . eclipse . collections . impl . list . Interval . oneTo ( 5 ) , org . eclipse . collections . impl . block . factory . Predicates . lessThan ... | org . junit . Assert . assertEquals ( 10 , sum ) |
toVOTriggerProcessParameter_NullValue ( ) { org . oscm . internal . vo . VOTriggerProcessParameter voParam = org . oscm . triggerservice . assembler . TriggerProcessAssembler . toVOTriggerProcessParameter ( null ) ; "<AssertPlaceHolder>" ; } toVOTriggerProcessParameter ( org . oscm . domobjects . TriggerProcessParamete... | org . junit . Assert . assertNull ( voParam ) |
getMultipartCopyPartSizeDefaultIsNull ( ) { com . hotels . bdp . circustrain . s3s3copier . S3S3CopierOptions options = new com . hotels . bdp . circustrain . s3s3copier . S3S3CopierOptions ( copierOptions ) ; "<AssertPlaceHolder>" ; } getMultipartCopyPartSize ( ) { return org . apache . commons . collections . MapUtil... | org . junit . Assert . assertNull ( options . getMultipartCopyPartSize ( ) ) |
testGet ( ) { c . stubGet ( "/contacts" , "contacts.json" , 200 ) ; com . sparkplatform . api . core . Response r = c . get ( "/contacts" , new java . util . HashMap < com . sparkplatform . api . core . ApiParameter , java . lang . String > ( ) ) ; "<AssertPlaceHolder>" ; com . sparkplatform . api . models . Contact m ... | org . junit . Assert . assertNotNull ( r ) |
shortArrayWrappedOrCopy2 ( ) { long [ ] array = new long [ ] { 0 , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 } ; org . diirt . util . array . ListNumber coll = new org . diirt . util . array . ArrayLong ( array ) ; short [ ] array2 = org . diirt . util . array . CollectionNumbers . shortArrayWrappedOrCopy ( coll ) ; "<AssertPl... | org . junit . Assert . assertThat ( array2 , equalTo ( new short [ ] { 0 , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 } ) ) |
testNVParseAll ( ) { java . lang . String s = "test;<sp>test1<sp>=<sp>stuff<sp>;<sp>test2<sp>=<sp>\"stuff;<sp>stuff\";<sp>test3=\"stuff" , params [ 3 ] . getName ( ) ) ; org . junit . Assert . assertEquals ( "1test" , params [ 0 ] . getName ( ) ) ; org . junit . Assert . assertEquals ( null , params [ 0 ] . getValue ( ... | org . junit . Assert . assertEquals ( 0 , params . length ) |
testHas13 ( ) { java . lang . String perm = "test.test1.test2" ; java . util . List < java . lang . String > perms = new java . util . ArrayList ( ) ; perms . add ( "test.test1.test2" ) ; perms . add ( "-test.*" ) ; perms . add ( "test.*" ) ; perms . add ( "-test.test1.*" ) ; perms . add ( "*" ) ; "<AssertPlaceHolder>"... | org . junit . Assert . assertTrue ( resolver . has ( perms , perm ) ) |
testAcceptOfferAndLaunchTasksWithFutureUnavailability ( ) { org . jenkinsci . plugins . mesos . Date now = new org . jenkinsci . plugins . mesos . Date ( ) ; org . jenkinsci . plugins . mesos . Date startDate = new org . jenkinsci . plugins . mesos . Date ( ( ( now . getTime ( ) ) + ( TimeUnit . HOURS . toMillis ( 1 ) ... | org . junit . Assert . assertEquals ( 0 , jenkinsScheduler . getUnmatchedLabels ( ) . size ( ) ) |
testResponse ( ) { org . jinstagram . http . Response result = new org . jinstagram . http . Response ( mockHttpConnection ) ; "<AssertPlaceHolder>" ; } | org . junit . Assert . assertNotNull ( result ) |
responseMessageOnErrorShouldPauseTheCommunicator ( ) { com . willwinder . universalgcodesender . connection . Connection connection = mock ( com . willwinder . universalgcodesender . connection . Connection . class ) ; instance . setConnection ( connection ) ; asl . add ( new com . willwinder . universalgcodesender . t... | org . junit . Assert . assertTrue ( instance . isPaused ( ) ) |
testSetRight_returnsCell ( ) { org . eclipse . rap . rwt . template . Cell < ? > cell = new org . eclipse . rap . rwt . template . TestCell ( template , "foo" ) ; org . eclipse . rap . rwt . template . Cell < ? > actualCell = cell . setRight ( 23 ) ; "<AssertPlaceHolder>" ; } setRight ( int ) { return setRight ( 0 , of... | org . junit . Assert . assertSame ( cell , actualCell ) |
testMatchExactlyIdleTimeoutErr ( ) { java . util . List < org . o3project . odenos . core . component . network . flow . basic . BasicFlowMatch > matches = null ; java . util . List < java . lang . String > path = null ; java . util . Map < java . lang . String , java . util . List < org . o3project . odenos . core . c... | org . junit . Assert . assertThat ( target . matchExactly ( flow ) , org . hamcrest . CoreMatchers . is ( false ) ) |
testAsInt4 ( ) { org . apache . tajo . datum . Datum d = org . apache . tajo . datum . DatumFactory . createTime ( org . apache . tajo . datum . TestTimeDatum . TIME ) ; org . apache . tajo . datum . Datum copy = org . apache . tajo . datum . DatumFactory . createTime ( d . asInt4 ( ) ) ; "<AssertPlaceHolder>" ; } asIn... | org . junit . Assert . assertEquals ( d , copy ) |
find_elements_in_list_with_apachecommons ( ) { java . util . List < java . lang . Integer > numbers = com . google . common . collect . Lists . newArrayList ( new java . lang . Integer ( 1 ) , new java . lang . Integer ( 2 ) , new java . lang . Integer ( 3 ) ) ; java . lang . Integer value = ( ( java . lang . Integer )... | org . junit . Assert . assertEquals ( new java . lang . Integer ( 3 ) , value ) |
testCloneVariables ( ) { doReturn ( GuidedDecisionTable52 . TableFormat . LIMITED_ENTRY ) . when ( model ) . getTableFormat ( ) ; final java . util . List < org . drools . workbench . models . guided . dtable . shared . model . BRLConditionVariableColumn > variables = new java . util . ArrayList < org . drools . workbe... | org . junit . Assert . assertEquals ( 3 , clones . size ( ) ) |
testEvaluateTwoIndexThreeVarInvalidOrder1 ( ) { final org . eclipse . rdf4j . model . IRI superclass = org . apache . rya . indexing . external . AccumuloPcjIT . VF . createIRI ( "o" 2 ) ; final org . eclipse . rdf4j . model . IRI superclass2 = org . apache . rya . indexing . external . AccumuloPcjIT . VF . createIRI (... | org . junit . Assert . assertEquals ( crh1 . getCount ( ) , crh2 . getCount ( ) ) |
actionNotInActionList ( ) { actionEvaluator . setAction ( generateText ( ) ) ; org . json . simple . JSONObject json = ( ( org . json . simple . JSONObject ) ( new org . json . simple . parser . JSONParser ( ) . parse ( ( ( "{\"node\":{\"rmNode\":{\"actions\":[\"" + ( generateText ( ) ) ) + "\"]}}}" ) ) ) ) ; "<AssertP... | org . junit . Assert . assertFalse ( actionEvaluator . evaluate ( json ) ) |
previousDayShouldBeReturnedWhenNonExistingDayIsRequested2 ( ) { com . graphaware . module . timetree . domain . TimeInstant timeInstant ; org . neo4j . graphdb . Node previous ; try ( org . neo4j . graphdb . Transaction tx = getDatabase ( ) . beginTx ( ) ) { previous = timeTree . getOrCreateInstant ( com . graphaware .... | org . junit . Assert . assertEquals ( previous , dayNode ) |
testWrite ( ) { com . serotonin . modbus4j . ModbusMaster master = com . freedomotic . Modbus . gateways . ModbusMasterGateway . getInstance ( ) ; int value1 = 235 ; int value = 0 ; try { master . init ( ) ; com . serotonin . modbus4j . locator . NumericLocator bl = new com . serotonin . modbus4j . locator . NumericLoc... | org . junit . Assert . assertEquals ( value , value1 ) |
testArrayIndex2 ( ) { com . jmethods . catatumbo . entities . ParentEntity parentEntity = new com . jmethods . catatumbo . entities . ParentEntity ( ) ; parentEntity . setField1 ( "ArrayIndexTest" ) ; parentEntity = com . jmethods . catatumbo . EntityManagerTest . em . insert ( parentEntity ) ; com . jmethods . catatum... | org . junit . Assert . assertEquals ( 0 , results . size ( ) ) |
testListEvents ( ) { org . apache . hadoop . mapreduce . Cluster mockCluster = mock ( org . apache . hadoop . mapreduce . Cluster . class ) ; org . apache . hadoop . mapreduce . tools . CLI cli = spy ( new org . apache . hadoop . mapreduce . tools . CLI ( new org . apache . hadoop . conf . Configuration ( ) ) ) ; doRet... | org . junit . Assert . assertEquals ( ( - 1 ) , exitCode ) |
testBuildWithDisabledStatusConstraint ( ) { unit . setActive ( false ) ; org . lnu . is . domain . person . family . PersonFamily context = new org . lnu . is . domain . person . family . PersonFamily ( ) ; java . lang . String expectedQuery = "SELECT<sp>e<sp>FROM<sp>PersonFamily<sp>e<sp>WHERE<sp>e.crtUserGroup<sp>IN<s... | org . junit . Assert . assertEquals ( expectedQuery , actualQuery ) |
testCustomizeInvalidReadTimeout ( ) { java . lang . String someInvalidReadTimeout = "a" ; java . lang . System . setProperty ( "apollo.readTimeout" , someInvalidReadTimeout ) ; com . ctrip . framework . apollo . util . ConfigUtil configUtil = new com . ctrip . framework . apollo . util . ConfigUtil ( ) ; "<AssertPlaceH... | org . junit . Assert . assertTrue ( ( ( configUtil . getReadTimeout ( ) ) > 0 ) ) |
testPhysicalIgnoresFutureConsumed ( ) { org . candlepin . model . Pool futurePool = org . candlepin . test . TestUtil . createPool ( owner , product ) ; futurePool . setStartDate ( org . candlepin . test . TestUtil . createDate ( 2050 , 1 , 1 ) ) ; futurePool . setEndDate ( org . candlepin . test . TestUtil . createDat... | org . junit . Assert . assertEquals ( new java . lang . Long ( 4 ) , suggested . getSuggested ( ) ) |
testFormats ( ) { java . util . Set < java . lang . String > formats = ogr . getSupportedFormats ( ) ; "<AssertPlaceHolder>" ; } size ( ) { if ( ( featureCache ) != null ) { return featureCache . size ( ) ; } if ( ( org . geoserver . wfs . FeatureSizeFeatureCollection . FEATURE_CACHE_LIMIT ) > 0 ) { try { int count = f... | org . junit . Assert . assertTrue ( ( ( formats . size ( ) ) > 0 ) ) |
testEmptyExtendedCommunityAttributeParser ( ) { final io . netty . buffer . ByteBuf output = io . netty . buffer . Unpooled . buffer ( ) ; this . handler . serializeAttribute ( new org . opendaylight . yang . gen . v1 . urn . opendaylight . params . xml . ns . yang . bgp . message . rev180329 . path . attributes . Attr... | org . junit . Assert . assertEquals ( io . netty . buffer . Unpooled . buffer ( ) , output ) |
testValidMove ( ) { edu . harvard . iq . dataverse . engine . command . DataverseRequest aRequest = new edu . harvard . iq . dataverse . engine . command . DataverseRequest ( auth , httpRequest ) ; testEngine . submit ( new edu . harvard . iq . dataverse . engine . command . impl . MoveDatasetCommand ( aRequest , moved... | org . junit . Assert . assertEquals ( childA , moved . getOwner ( ) ) |
tripleHash_6Test ( ) { long hash = greycat . utility . HashHelper . tripleHash ( ( ( byte ) ( 4 ) ) , 0 , 0 , 0 , CoreConstants . END_OF_TIME ) ; "<AssertPlaceHolder>" ; } tripleHash ( byte , long , long , long , long ) { if ( max <= 0 ) { throw new java . lang . IllegalArgumentException ( "Max<sp>must<sp>be<sp>><sp>0"... | org . junit . Assert . assertTrue ( ( hash < ( greycat . internal . CoreConstants . END_OF_TIME ) ) ) |
testGetBestServerWithoutInformation ( ) { com . facebook . buck . slb . ServerHealthManager manager = newServerHealthManager ( ) ; java . net . URI server = manager . getBestServer ( ) ; "<AssertPlaceHolder>" ; } getBestServer ( ) { return healthManager . getBestServer ( ) ; } | org . junit . Assert . assertNotNull ( server ) |
verkeerdStelsel ( ) { nl . bzk . algemeenbrp . dal . domein . brp . entity . Leveringsautorisatie leveringsautorisatie = new nl . bzk . algemeenbrp . dal . domein . brp . entity . Leveringsautorisatie ( nl . bzk . algemeenbrp . dal . domein . brp . enums . Stelsel . BRP , false ) ; nl . bzk . algemeenbrp . dal . domein... | org . junit . Assert . assertEquals ( false , subject . bepaalAutorisatie ( "000123" , Rol . AFNEMER , SoortDienst . ZOEK_PERSOON ) . isPresent ( ) ) |
testGetTableApproximateSizeLimit ( ) { long expected = 10L ; when ( _server . getTableApproximateSize ( "table-name" , 10 ) ) . thenReturn ( expected ) ; long tableApproximateSize = sorClient ( test . integration . sor . DataStoreJerseyTest . APIKEY_TABLE ) . getTableApproximateSize ( "table-name" , 10 ) ; "<AssertPlac... | org . junit . Assert . assertEquals ( tableApproximateSize , expected ) |
testCustomer ( ) { com . sun . jersey . api . client . WebResource webResource = resource ( ) . path ( "customer" ) ; com . sun . jersey . samples . moxy . beans . Customer customer = webResource . accept ( MediaType . APPLICATION_XML ) . get ( com . sun . jersey . samples . moxy . beans . Customer . class ) ; customer... | org . junit . Assert . assertEquals ( customer , updatedCustomer ) |
testEmptyToken ( ) { com . google . gwt . event . logical . shared . ValueChangeEvent < java . lang . String > event = new com . mvp4g . client . test_tools . ValueChangeEventStub < java . lang . String > ( "" ) ; placeServiceDefault . onValueChange ( event ) ; "<AssertPlaceHolder>" ; } isHistoryInit ( ) { return histo... | org . junit . Assert . assertTrue ( module . isHistoryInit ( ) ) |
filterOrderForTwoWithAddFirstForSecond ( ) { java . awt . image . BufferedImage img = new java . awt . image . BufferedImage ( 200 , 200 , java . awt . image . BufferedImage . TYPE_INT_ARGB ) ; final java . util . List < java . lang . Integer > order = new java . util . ArrayList < java . lang . Integer > ( ) ; net . c... | org . junit . Assert . assertEquals ( java . util . Arrays . asList ( 2 , 1 ) , order ) |
testCanReadRule ( ) { java . lang . String rule = getRule ( ) ; "<AssertPlaceHolder>" ; } getRule ( ) { java . net . URL url = this . getClass ( ) . getResource ( "/org/cogroo/tools/checker/rules/applier/sinlgetonRule.xml" ) ; return org . cogroo . util . FileUtils . readFile ( new java . io . File ( url . getFile ( ) ... | org . junit . Assert . assertNotNull ( rule ) |
testNoHeaderMap ( ) { try ( final org . apache . commons . csv . CSVParser parser = org . apache . commons . csv . CSVParser . parse ( "a,b,c\n1,2,3\nx,y,z" , CSVFormat . DEFAULT ) ) { "<AssertPlaceHolder>" ; } } getHeaderMap ( ) { return ( this . headerMap ) == null ? null : new java . util . LinkedHashMap ( this . he... | org . junit . Assert . assertNull ( parser . getHeaderMap ( ) ) |
test_dag_ancestors_1b ( ) { slib . graph . algo . extraction . rvf . RVF_TAX rvf_loc = new slib . graph . algo . extraction . rvf . RVF_TAX ( g , slib . graph . model . graph . utils . Direction . OUT ) ; java . util . Map < org . openrdf . model . URI , java . util . Set < org . openrdf . model . URI > > ancestorsMap ... | org . junit . Assert . assertTrue ( ( ( anc . size ( ) ) == 1 ) ) |
testGetArgCount ( ) { System . out . println ( "<sp>getArgCount" ) ; org . geotools . filter . function . EnvFunction fn = new org . geotools . filter . function . EnvFunction ( ) ; "<AssertPlaceHolder>" ; } getArgCount ( ) { return 1 ; } | org . junit . Assert . assertEquals ( 1 , fn . getArgCount ( ) ) |
testInvokeCallbackWithTypedArray_Int16Array ( ) { com . eclipsesource . v8 . JavaCallback callback = new com . eclipsesource . v8 . JavaCallback ( ) { @ com . eclipsesource . v8 . Override public com . eclipsesource . v8 . Boolean invoke ( final com . eclipsesource . v8 . V8Object receiver , final com . eclipsesource .... | org . junit . Assert . assertTrue ( ( ( java . lang . Boolean ) ( result ) ) ) |
testCannotInstallAmbiguousFacetType ( ) { org . jboss . forge . addon . projects . Project project = projectFactory . createTempProject ( ) ; "<AssertPlaceHolder>" ; facetFactory . install ( project , org . jboss . forge . addon . javaee . rest . RestFacet . class ) ; } createTempProject ( ) { return createTempProject ... | org . junit . Assert . assertNotNull ( project ) |
testSerializedSize ( ) { io . jafka . message . Message m = new io . jafka . message . Message ( "demo" . getBytes ( ) ) ; "<AssertPlaceHolder>" ; } serializedSize ( ) { return 4 + ( buffer . limit ( ) ) ; } | org . junit . Assert . assertEquals ( ( ( 4 + 6 ) + ( "demo" . length ( ) ) ) , m . serializedSize ( ) ) |
hashCode_differentPrimaryKeys_differentResult ( ) { com . vaadin . v7 . data . util . sqlcontainer . RowId id = new com . vaadin . v7 . data . util . sqlcontainer . RowId ( new java . lang . Object [ ] { "id" , "name" } ) ; com . vaadin . v7 . data . util . sqlcontainer . RowId id2 = new com . vaadin . v7 . data . util... | org . junit . Assert . assertFalse ( ( ( id . hashCode ( ) ) == ( id2 . hashCode ( ) ) ) ) |
testFindAll ( ) { int demographicNo1 = 300 ; int demographicNo2 = 100 ; int demographicNo3 = 200 ; org . oscarehr . common . model . Relationships relationships1 = new org . oscarehr . common . model . Relationships ( ) ; org . oscarehr . common . dao . utils . EntityDataGenerator . generateTestDataForModelClass ( rela... | org . junit . Assert . assertTrue ( true ) |
mustAutomaticallyStartEvictionThread ( ) { try ( org . neo4j . io . fs . FileSystemAbstraction fs = new org . neo4j . io . fs . DefaultFileSystemAbstraction ( ) ; org . neo4j . scheduler . JobScheduler jobScheduler = new org . neo4j . scheduler . ThreadPoolJobScheduler ( ) ) { java . io . File file = new java . io . Fi... | org . junit . Assert . assertTrue ( cursor . next ( ) ) |
areRequestMethodArgumentsRequiredTrue ( ) { final java . lang . String value = "true" ; context . checking ( new org . jmock . Expectations ( ) { { allowing ( jaccProviderServiceRef ) . getProperty ( com . ibm . ws . security . authorization . jacc . internal . JaccServiceImplTest . JACC_POLICY_PROVIDER ) ; will ( retu... | org . junit . Assert . assertTrue ( jaccService . areRequestMethodArgumentsRequired ( ) ) |
testWrongUsage ( ) { org . hipparchus . geometry . euclidean . twod . PolygonsSet ps = new org . hipparchus . geometry . euclidean . twod . PolygonsSet ( new org . hipparchus . geometry . partitioning . BSPTree < org . hipparchus . geometry . euclidean . twod . Euclidean2D > ( ) , 1.0E-10 ) ; "<AssertPlaceHolder>" ; tr... | org . junit . Assert . assertNotNull ( ps ) |
executeOneConsumer ( ) { com . linkedpipes . etl . executor . api . v1 . component . task . TaskExecutionTest . MockedTaskExecution component = new com . linkedpipes . etl . executor . api . v1 . component . task . TaskExecutionTest . MockedTaskExecution ( ) ; org . mockito . Mockito . when ( component . config . getTh... | org . junit . Assert . assertEquals ( 1 , component . consumers . size ( ) ) |
testSearchServices_UnknownLocale ( ) { org . oscm . serviceprovisioningservice . bean . VOServiceListResult hits = org . oscm . serviceprovisioningservice . bean . SearchServiceBeanListIT . search . searchServices ( org . oscm . serviceprovisioningservice . bean . SearchServiceBeanListIT . FUJITSU , "ede" , "wicked_de"... | org . junit . Assert . assertEquals ( 0 , hits . getResultSize ( ) ) |
testMoederHeeftGeenTechnischeSleutel ( ) { final nl . bzk . brp . model . bericht . kern . FamilierechtelijkeBetrekkingBericht relatie = maakFamilieRelatie ( null , maakOuderBetrokkenheid ( null , null , JaNeeAttribuut . JA ) , null ) ; final java . util . List < nl . bzk . brp . model . basis . BerichtEntiteit > beric... | org . junit . Assert . assertEquals ( 0 , berichtEntiteiten . size ( ) ) |
testApiGroupBy ( ) { org . geotools . arcsde . session . ISession session = store . getSession ( Transaction . AUTO_COMMIT ) ; com . esri . sde . sdk . client . SeSqlConstruct sqlConstruct = new com . esri . sde . sdk . client . SeSqlConstruct ( ) ; java . lang . String [ ] tables = new java . lang . String [ ] { InPro... | org . junit . Assert . assertEquals ( expectedCount , count ) |
testOpStatus1 ( ) { "<AssertPlaceHolder>" ; } byNumber ( int ) { switch ( val ) { case 0 : return org . nd4j . linalg . api . ops . executioner . OpStatus . ND4J_STATUS_OK ; case 1 : return org . nd4j . linalg . api . ops . executioner . OpStatus . ND4J_STATUS_BAD_INPUT ; case 2 : return org . nd4j . linalg . api . ops... | org . junit . Assert . assertEquals ( OpStatus . ND4J_STATUS_OK , org . nd4j . linalg . api . ops . executioner . OpStatus . byNumber ( 0 ) ) |
resolveAbsolute ( ) { org . apache . shindig . common . uri . Uri base = org . apache . shindig . common . uri . Uri . parse ( "http://example.org/foo/bar/baz?blah=blah#boo" ) ; org . apache . shindig . common . uri . Uri other = org . apache . shindig . common . uri . Uri . parse ( "http://www.ietf.org/rfc/rfc2396.txt... | org . junit . Assert . assertEquals ( "http://www.ietf.org/rfc/rfc2396.txt" , base . resolve ( other ) . toString ( ) ) |
shutdownTest ( ) { java . util . concurrent . ScheduledExecutorService scheduler = makeScheduler ( 1 ) ; try { scheduler . shutdownNow ( ) ; "<AssertPlaceHolder>" ; try { scheduler . execute ( org . threadly . concurrent . DoNothingRunnable . instance ( ) ) ; org . junit . Assert . fail ( "Execption<sp>should<sp>have<s... | org . junit . Assert . assertTrue ( scheduler . isShutdown ( ) ) |
testGetOperationExceptions ( ) { org . apache . cxf . binding . corba . CorbaConduit conduit = org . apache . cxf . binding . corba . CorbaConduitTest . control . createMock ( org . apache . cxf . binding . corba . CorbaConduit . class ) ; org . apache . cxf . binding . corba . wsdl . OperationType opType = org . apach... | org . junit . Assert . assertEquals ( exlist . size ( ) , 0 ) |
canInjectStore ( ) { com . picocontainer . logging . store . InjectingLoggerTest . ComponentWithInjectedStore c = new com . picocontainer . logging . store . InjectingLoggerTest . ComponentWithInjectedStore ( new com . picocontainer . logging . store . LoggerStore ( ) { public com . picocontainer . logging . Logger get... | org . junit . Assert . assertNotNull ( c . getLogger ( ) ) |
dirWithSpaces ( ) { java . util . Collection < java . net . URL > urls = org . reflections . util . ClasspathHelper . forPackage ( "dir+with<sp>spaces" ) ; "<AssertPlaceHolder>" ; for ( java . net . URL url : urls ) { testVfsDir ( url ) ; } } | org . junit . Assert . assertFalse ( urls . isEmpty ( ) ) |
testIsTableItemPatternAvailable ( ) { mmarquee . automation . pattern . TableItem pattern = org . mockito . Mockito . mock ( mmarquee . automation . pattern . TableItem . class ) ; when ( pattern . isAvailable ( ) ) . thenReturn ( true ) ; mmarquee . automation . controls . AutomationWindow window = new mmarquee . auto... | org . junit . Assert . assertTrue ( value ) |
testDemoListLoaded ( ) { final java . util . List < java . lang . String > expectedList = java . util . Arrays . asList ( new java . lang . String [ ] { "WFS_getFeature-1.1.xml" , "WMS_describeLayer.url" } ) ; org . apache . wicket . markup . html . form . DropDownChoice dropDown = ( ( org . apache . wicket . markup . ... | org . junit . Assert . assertEquals ( expectedList , choices ) |
testSimpleAnd ( ) { org . antlr . v4 . runtime . misc . IntervalSet s = org . antlr . v4 . runtime . misc . IntervalSet . of ( 10 , 20 ) ; org . antlr . v4 . runtime . misc . IntervalSet s2 = org . antlr . v4 . runtime . misc . IntervalSet . of ( 13 , 15 ) ; java . lang . String expecting = "{13..15}" ; java . lang . S... | org . junit . Assert . assertEquals ( expecting , result ) |
testFTPDefaultPort ( ) { org . apache . hadoop . fs . ftp . FTPFileSystem ftp = new org . apache . hadoop . fs . ftp . FTPFileSystem ( ) ; "<AssertPlaceHolder>" ; } getDefaultPort ( ) { return org . apache . commons . net . ftp . FTP . DEFAULT_PORT ; } | org . junit . Assert . assertEquals ( FTP . DEFAULT_PORT , ftp . getDefaultPort ( ) ) |
test_buildPageContent_zero_ok_emptyController ( ) { try { com . webpagebytes . cms . engine . InternalModel model = new com . webpagebytes . cms . engine . InternalModel ( ) ; java . lang . String externalKey = "index" ; org . easymock . EasyMock . expect ( pageMock . getIsTemplateSource ( ) ) . andReturn ( 1 ) ; model... | org . junit . Assert . assertTrue ( false ) |
testReadEmptyStream ( ) { byte [ ] bytes = org . drools . core . util . IoUtils . readBytesFromInputStream ( new org . drools . core . io . impl . ReaderInputStream ( new java . io . StringReader ( "" ) ) ) ; "<AssertPlaceHolder>" ; } readBytesFromInputStream ( java . io . InputStream ) { return org . drools . core . u... | org . junit . Assert . assertEquals ( 0 , bytes . length ) |
testRegionMove ( ) { org . apache . hadoop . hbase . HRegionLocation loc = org . apache . hadoop . hbase . client . TestAsyncSingleRequestRpcRetryingCaller . CONN . getRegionLocator ( org . apache . hadoop . hbase . client . TestAsyncSingleRequestRpcRetryingCaller . TABLE_NAME ) . getRegionLocation ( org . apache . had... | org . junit . Assert . assertArrayEquals ( org . apache . hadoop . hbase . client . TestAsyncSingleRequestRpcRetryingCaller . VALUE , result . getValue ( org . apache . hadoop . hbase . client . TestAsyncSingleRequestRpcRetryingCaller . FAMILY , org . apache . hadoop . hbase . client . TestAsyncSingleRequestRpcRetrying... |
testSetWorkItem ( ) { final java . lang . String workItemKey = "workItem" ; final org . drools . workbench . models . datamodel . workitems . PortableWorkDefinition workDefinition = mock ( org . drools . workbench . models . datamodel . workitems . PortableWorkDefinition . class ) ; final org . drools . workbench . mod... | org . junit . Assert . assertEquals ( workItemKey , plugin . getWorkItem ( ) ) |
should_calculate_parameters_count_from_body_with_one_param ( ) { cucumber . runtime . java8 . Java8StepDefinition java8StepDefinition = cucumber . runtime . java8 . Java8StepDefinition . create ( "I<sp>have<sp>some<sp>step" , StepdefBody . A1 . class , oneParamStep ( ) , typeRegistry ) ; "<AssertPlaceHolder>" ; } getPa... | org . junit . Assert . assertEquals ( java . lang . Integer . valueOf ( 1 ) , java8StepDefinition . getParameterCount ( ) ) |
testReflect16 ( ) { com . ibm . wala . ipa . callgraph . AnalysisScope scope = com . ibm . wala . core . tests . callGraph . ReflectionTest . findOrCreateAnalysisScope ( ) ; com . ibm . wala . ipa . cha . IClassHierarchy cha = com . ibm . wala . core . tests . callGraph . ReflectionTest . findOrCreateCHA ( scope ) ; ja... | org . junit . Assert . assertFalse ( nodes . isEmpty ( ) ) |
ifAFollowerTimesOutBeforeAPollCompletesThenTheFollowerWillBeginAnotherPollAndIgnoreTheResultsOfTheFirst ( ) { final c5db . interfaces . replication . QuorumConfiguration configuration = aFiveNodeConfiguration ( ) ; withLogReflectingConfiguration ( configuration ) ; whenTheReplicatorIsInState ( c5db . replication . FOLL... | org . junit . Assert . assertThat ( theReplicatorHasStartedAnElection ( ) , org . hamcrest . Matchers . is ( false ) ) |
testGetReportLogsForAuditKeyAdmin ( ) { org . apache . ranger . common . SearchCriteria searchCriteria = new org . apache . ranger . common . SearchCriteria ( ) ; java . util . List < org . apache . ranger . view . VXTrxLog > vXTrxLogs = new java . util . ArrayList < org . apache . ranger . view . VXTrxLog > ( ) ; org ... | org . junit . Assert . assertEquals ( vXTrxLogList , expectedVXTrxLogListt ) |
testTransformQuantityType ( ) { org . eclipse . smarthome . core . library . types . QuantityType < javax . measure . quantity . Dimensionless > airQuality = new org . eclipse . smarthome . core . library . types . QuantityType ( "992<sp>ppm" ) ; java . lang . String aqScaleFile = "scale/netatmo_aq.scale" ; java . lang... | org . junit . Assert . assertEquals ( expected , transformedResponse ) |
convert_NULL_EXTERNAL_IDENTIFIERS ( ) { eu . dnetlib . iis . transformers . metadatamerger . schemas . ExtractedDocumentMetadataMergedWithOriginal docMetadata = baseDocMetadataBuilder . clearExternalIdentifiers ( ) . build ( ) ; eu . dnetlib . iis . citationmatching . direct . schemas . DocumentMetadata retDocDirectCit... | org . junit . Assert . assertEquals ( expectedDocDirectCitationMetadata , retDocDirectCitationMetadata ) |
testConvert ( ) { java . lang . Long id = 1L ; java . lang . String strValue = "strValue" ; java . lang . Long markscaleId = 1L ; org . lnu . is . domain . mark . scale . MarkScale markscale = new org . lnu . is . domain . mark . scale . MarkScale ( ) ; markscale . setId ( markscaleId ) ; org . lnu . is . resource . ma... | org . junit . Assert . assertEquals ( expected , actual ) |
shouldValidateEmpty ( ) { boolean valid = validator . isValid ( "" , context ) ; "<AssertPlaceHolder>" ; } isValid ( java . lang . Object , javax . validation . ConstraintValidatorContext ) { java . lang . Class < ? extends java . lang . Object > type = toValidate . getClass ( ) ; if ( ! ( hasChoiceItens ( toValidate )... | org . junit . Assert . assertTrue ( valid ) |
testStringArraySize2 ( ) { java . lang . String [ ] array = new java . lang . String [ ] { val1 , val2 } ; org . apache . stanbol . commons . jsonld . JsonLd jsonLd = createJsonLdObj ( fieldName , array , false ) ; java . lang . String actual = jsonLd . toString ( ) ; java . lang . String expected = "{\"testprop\":[\"v... | org . junit . Assert . assertEquals ( expected , actual ) |
testDifferentZonesSameTime ( ) { final nl . bzk . brp . bijhouding . bericht . model . DatumTijdElement datumTijdElementAmsterdam = new nl . bzk . brp . bijhouding . bericht . model . DatumTijdElement ( java . time . ZonedDateTime . parse ( "2016-09-29T19:00Z[Europe/Amsterdam]" ) ) ; final nl . bzk . brp . bijhouding .... | org . junit . Assert . assertEquals ( datumTijdElementAmsterdam , datumTijdElementUTC ) |
shouldWriteSimpleStringToFile ( ) { beforeAfter . FileWriter writer = null ; java . io . File file = null ; try { file = java . io . File . createTempFile ( "FileWriterTest" , "" ) ; writer = new beforeAfter . FileWriter ( file ) ; writer . writeString ( "String" ) ; "<AssertPlaceHolder>" ; } finally { closeWriter ( wr... | org . junit . Assert . assertEquals ( "String" , readString ( file ) ) |
testDynamicQueryByProjectionMissing ( ) { com . liferay . portal . kernel . dao . orm . DynamicQuery dynamicQuery = com . liferay . portal . kernel . dao . orm . DynamicQueryFactoryUtil . forClass ( com . liferay . portal . tools . service . builder . test . model . LVEntryLocalizationVersion . class , _dynamicQueryCla... | org . junit . Assert . assertEquals ( 0 , result . size ( ) ) |
initializeSubscription_Bug10481_Admin ( ) { org . oscm . internal . subscriptiondetails . SubscriptionDetailsService ss = mock ( org . oscm . internal . subscriptiondetails . SubscriptionDetailsService . class ) ; org . oscm . internal . vo . VOSubscriptionDetails subscription = givenSubscription ( ( ! ( SUBSCRIPTION_F... | org . junit . Assert . assertEquals ( Boolean . TRUE , java . lang . Boolean . valueOf ( model . getIsReportIssueAllowed ( ) ) ) |
shouldInstrumentES6BlockScopedFunction ( ) { java . lang . String source = "{\n" + ( ( ( ( ( ( ( ( ( ( ( ( ( "<sp>_$jscoverage[\'test.js\'].lineData[14]++;\n" 4 + "<sp>return<sp>1\n" ) + "<sp>return<sp>1;\n" 3 ) + "<sp>_$jscoverage[\'test.js\'].lineData[14]++;\n" 7 ) + "<sp>_$jscoverage[\'test.js\'].lineData[14]++;\n" ... | org . junit . Assert . assertEquals ( expectedSource , instrumentedSource ) |
testFindMatchingPatternWithoutMatchingTokenBounds ( ) { java . util . regex . Pattern testPattern = java . util . regex . Pattern . compile ( "[0-8]<sp>year" ) ; java . lang . String [ ] sentence = new java . lang . String [ ] { "a" , "80" , "year" , "c" } ; java . util . regex . Pattern [ ] patterns = new java . util ... | org . junit . Assert . assertTrue ( ( ( result . length ) == 0 ) ) |
testGetAtomCount_IChemFile ( ) { int count = org . openscience . cdk . tools . manipulator . ChemFileManipulator . getAtomCount ( chemFile ) ; "<AssertPlaceHolder>" ; } getAtomCount ( org . openscience . cdk . interfaces . IChemFile ) { int count = 0 ; for ( int i = 0 ; i < ( file . getChemSequenceCount ( ) ) ; i ++ ) ... | org . junit . Assert . assertEquals ( 6 , count ) |
test_Customers_Example_8 ( ) { com . orientechnologies . orient . core . sql . executor . OResultSet resultSet = db . query ( ( "MATCH<sp>{class:<sp>Customers,<sp>as:<sp>c,<sp>where:<sp>(OrderedId=1)}<-HasCustomer-{class:<sp>Orders,<sp>as:<sp>o}<sp>\n" + "RETURN<sp>$pathelements" ) ) ; final java . util . List < com . ... | org . junit . Assert . assertEquals ( results . size ( ) , 2 ) |
setInvalidBean_bound_singleEventOnSetValue ( ) { binder . forField ( nameField ) . bind ( Person :: getFirstName , Person :: setFirstName ) ; binder . setBean ( item ) ; binder . withValidator ( com . vaadin . flow . data . binder . Validator . from ( ( bean ) -> false , "" ) ) ; binder . addStatusChangeListener ( this... | org . junit . Assert . assertNull ( event . get ( ) ) |
testBindIndex6 ( ) { fr . inria . corese . core . Graph g = fr . inria . corese . core . Graph . create ( ) ; fr . inria . corese . core . query . QueryProcess exec = fr . inria . corese . core . query . QueryProcess . create ( g ) ; java . lang . String q = "select<sp>" + ( ( ( ( ( ( ( ( ( "(us:test(3)<sp>as<sp>?t)<sp... | org . junit . Assert . assertEquals ( 1 , map . size ( ) ) |
strokeOpacitySetWithoutStroke ( ) { com . itextpdf . svg . renderers . impl . AbstractSvgNodeRenderer renderer = new com . itextpdf . svg . renderers . impl . CircleSvgNodeRenderer ( ) ; renderer . setAttribute ( SvgConstants . Attributes . STROKE_OPACITY , "0.75" ) ; renderer . draw ( sdc ) ; com . itextpdf . kernel .... | org . junit . Assert . assertTrue ( resources . getResourceNames ( ) . isEmpty ( ) ) |
testDelete ( ) { final net . violet . platform . datamodel . Lang frLang = getSiteFrLang ( ) ; final net . violet . platform . datamodel . User theOwner = new net . violet . platform . datamodel . mock . UserMock ( 42 , net . violet . common . StringShop . EMPTY_STRING , net . violet . common . StringShop . EMPTY_STRIN... | org . junit . Assert . assertNull ( theResult ) |
testSetMultiCustomExceptionFormatter ( ) { net . sourceforge . squirrel_sql . fw . util . ExceptionFormatter formatter1 = createMock ( net . sourceforge . squirrel_sql . fw . util . ExceptionFormatter . class ) ; net . sourceforge . squirrel_sql . fw . util . ExceptionFormatter formatter2 = createMock ( net . sourcefor... | org . junit . Assert . assertEquals ( "formatter1" , formattedEx ) |
executeNow_should_use_tenant_id_as_group_in_job_details ( ) { final java . lang . String tenantId = "3" ; quartzSchedulerExecutor . executeNow ( 10L , tenantId , "myJob" , true ) ; final org . mockito . ArgumentCaptor < org . quartz . JobDetail > jobDetailCaptor = org . mockito . ArgumentCaptor . forClass ( org . quart... | org . junit . Assert . assertThat ( group ) |
batchRemove ( ) { java . util . List < java . lang . String > txGroupIds = org . assertj . core . util . Lists . newArrayList ( ) ; txGroupIds . add ( "1408937230" ) ; txGroupIds . add ( "353342572" ) ; final java . lang . Boolean aBoolean = txTransactionGroupService . batchRemove ( txGroupIds ) ; "<AssertPlaceHolder>"... | org . junit . Assert . assertNotNull ( aBoolean ) |
processLocaleForRequest ( ) { org . slim3 . tester . MockServletContext servletContext = new org . slim3 . tester . MockServletContext ( ) ; org . slim3 . tester . MockHttpServletRequest request = new org . slim3 . tester . MockHttpServletRequest ( servletContext ) ; request . addLocale ( Locale . GERMAN ) ; org . slim... | org . junit . Assert . assertThat ( frontController . processLocale ( request ) , org . hamcrest . CoreMatchers . is ( Locale . GERMAN ) ) |
checkWontEquivalateToBothWithOverlappingScores ( ) { org . atlasapi . equiv . results . EquivalenceResult equivalenceResult = itemsWithBroadcastAndScores ( new org . joda . time . DateTime ( ) . withHourOfDay ( 2 ) , new org . joda . time . DateTime ( ) . withHourOfDay ( 4 ) , new org . joda . time . DateTime ( ) . wit... | org . junit . Assert . assertTrue ( ( ( equivalenceResult . strongEquivalences ( ) . values ( ) . size ( ) ) == 1 ) ) |
simple ( ) { addTransaction ( "testing" , false ) ; "<AssertPlaceHolder>" ; } list ( ) { java . util . List < com . asakusafw . testdriver . loader . MockDataModel > results = com . asakusafw . testdriver . loader . BasicDataLoaderTest . loader ( new com . asakusafw . testdriver . loader . MockDataModel ( "A" ) , new c... | org . junit . Assert . assertThat ( list ( ) , contains ( "testing" ) ) |
testPropertyOptionRequired ( ) { final org . apache . commons . cli . Options opts = new org . apache . commons . cli . Options ( ) ; opts . addOption ( org . apache . commons . cli . OptionBuilder . isRequired ( ) . create ( "f" ) ) ; final java . util . Properties properties = new java . util . Properties ( ) ; prope... | org . junit . Assert . assertTrue ( cmd . hasOption ( "f" ) ) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.