input stringlengths 28 18.7k | output stringlengths 39 1.69k |
|---|---|
getPatientIdentifierTypeByName_shouldNotReturnPatientIdentifierTypeThatPartiallyMatchesGivenName ( ) { org . openmrs . PatientIdentifierType identifierType = org . openmrs . api . context . Context . getPatientService ( ) . getPatientIdentifierTypeByName ( "OpenMRS" ) ; "<AssertPlaceHolder>" ; } getPatientIdentifierTyp... | org . junit . Assert . assertNull ( identifierType ) |
testAlreadyWritableMap ( ) { final org . apache . commons . collections4 . map . HashedMap < java . lang . String , java . lang . String > hashedMap = new org . apache . commons . collections4 . map . HashedMap ( ) ; "<AssertPlaceHolder>" ; } writableMap ( org . apache . commons . collections4 . Put ) { if ( put == nul... | org . junit . Assert . assertSame ( hashedMap , org . apache . commons . collections4 . SplitMapUtils . writableMap ( hashedMap ) ) |
testR1431NietMeerGeldigNederlandseNationaliteit ( ) { final nl . bzk . algemeenbrp . dal . domein . brp . entity . Nationaliteit nationaliteit = new nl . bzk . algemeenbrp . dal . domein . brp . entity . Nationaliteit ( "Nederlandse" , "0001" ) ; final nl . bzk . algemeenbrp . dal . domein . brp . entity . PersoonNatio... | org . junit . Assert . assertEquals ( 0 , meldingen . size ( ) ) |
testSES1988BlankNodePeriodTab ( ) { org . eclipse . rdf4j . model . Model model = org . eclipse . rdf4j . rio . Rio . parse ( new java . io . StringReader ( "<urn:a><sp><urn:b><sp>_:blank.\t" ) , "" , RDFFormat . TURTLE ) ; "<AssertPlaceHolder>" ; } size ( ) { java . util . Iterator < org . eclipse . rdf4j . model . St... | org . junit . Assert . assertEquals ( 1 , model . size ( ) ) |
onInstantTimeLine ( ) { net . time4j . range . SimpleInterval < java . time . Instant > expected = net . time4j . range . SimpleInterval . between ( Instant . EPOCH , java . time . Instant . parse ( "2016-11-01T24:00:00Z" ) ) ; "<AssertPlaceHolder>" ; } onInstantTimeLine ( ) { net . time4j . range . SimpleInterval < ja... | org . junit . Assert . assertThat ( net . time4j . range . SimpleInterval . onInstantTimeLine ( ) . between ( Instant . EPOCH , java . time . Instant . parse ( "2016-11-01T24:00:00Z" ) ) , org . hamcrest . CoreMatchers . is ( expected ) ) |
testGetPendingTaskCount ( ) { java . lang . Integer result = qa . qcri . aidr . dbmanager . ejb . remote . facade . imp . TestTaskAssignmentResourceFacadeImp . taskAssignmentResourceFacadeImp . getPendingTaskCount ( qa . qcri . aidr . dbmanager . ejb . remote . facade . imp . TestTaskAssignmentResourceFacadeImp . user ... | org . junit . Assert . assertEquals ( java . lang . Integer . valueOf ( 1 ) , result ) |
hasPropertyValueForExistingPropertyWithoutValue ( ) { map . getProperty ( "foo" ) ; "<AssertPlaceHolder>" ; } hasPropertyValue ( java . lang . String ) { if ( ! ( properties . has ( name ) ) ) { return false ; } return properties . get ( name ) . hasValue ( ) ; } | org . junit . Assert . assertFalse ( map . hasPropertyValue ( "foo" ) ) |
getPossibleUsersOfTaskShouldReturnAllUsersInThePaginationRange ( ) { final int nbUsers = 21 ; final java . util . List < org . bonitasoft . engine . identity . User > users = new java . util . ArrayList ( nbUsers ) ; final java . util . List < java . lang . Long > userMembershipIds = new java . util . ArrayList ( nbUse... | org . junit . Assert . assertEquals ( 21 , possibleUsers . size ( ) ) |
testSuspendResume ( ) { final java . util . concurrent . BlockingQueue < java . lang . Integer > transferQueue = new java . util . concurrent . LinkedTransferQueue ( ) ; final int contentSizeHalf = 256 * 1024 ; final org . glassfish . grizzly . impl . FutureImpl future = org . glassfish . grizzly . impl . SafeFutureImp... | org . junit . Assert . assertEquals ( 1 , calls . get ( ) ) |
testUpdateSample ( ) { try { com . iggroup . oss . sample . domain . Sample sample = service . getSampleByReference ( "00001" ) ; sample . setName ( "New<sp>name" ) ; service . updateSample ( sample ) ; } catch ( java . lang . Exception e ) { "<AssertPlaceHolder>" ; } } updateSample ( com . iggroup . oss . sample . dom... | org . junit . Assert . assertTrue ( false ) |
shouldEvaluateFlipConditionToTrueGivenEmptyAnnotationArray ( ) { org . springframework . context . ApplicationContext applicationContext = mock ( org . springframework . context . ApplicationContext . class ) ; org . flips . model . FeatureContext featureContext = mock ( org . flips . model . FeatureContext . class ) ;... | org . junit . Assert . assertEquals ( true , result ) |
testStartWithHttp ( ) { org . apache . commons . configuration . PropertiesConfiguration config = new org . apache . commons . configuration . PropertiesConfiguration ( ) ; config . setProperty ( PrometheusMetricsProvider . PROMETHEUS_STATS_HTTP_ENABLE , true ) ; config . setProperty ( PrometheusMetricsProvider . PROME... | org . junit . Assert . assertNotNull ( provider . server ) |
shouldFindProjectAssignmentForProjectIdAndUserId ( ) { java . util . List < net . rrm . ehour . persistence . project . dao . ProjectAssignment > pas = projectAssignmentDAO . findProjectAssignmentForUser ( 1 , 1 ) ; "<AssertPlaceHolder>" ; } size ( ) { return nodes . size ( ) ; } | org . junit . Assert . assertEquals ( 4 , pas . size ( ) ) |
nodeCanBeExplicitIndexedInBeforeCommit ( ) { org . neo4j . graphdb . GraphDatabaseService db = dbRule . getGraphDatabaseAPI ( ) ; final org . neo4j . graphdb . index . Index < org . neo4j . graphdb . Node > index ; try ( org . neo4j . graphdb . Transaction tx = db . beginTx ( ) ) { index = db . index ( ) . forNodes ( "... | org . junit . Assert . assertThat ( node . getProperty ( "random" ) , org . hamcrest . Matchers . is ( 42 ) ) |
dumpAndRestore ( ) { jedis . set ( "foo1" , "bar" ) ; byte [ ] sv = jedis . dump ( "foo1" ) ; jedis . restore ( "foo2" , 0 , sv ) ; "<AssertPlaceHolder>" ; } get ( byte [ ] ) { sendCommand ( redis . clients . jedis . GET , key ) ; } | org . junit . Assert . assertEquals ( "bar" , jedis . get ( "foo2" ) ) |
appendReportEntry_REPLACE_ALREADY_EXISTING_LEAF ( ) { eu . dnetlib . iis . common . schemas . ReportEntry reportEntry = new eu . dnetlib . iis . common . schemas . ReportEntry ( "property1.propertyA" , eu . dnetlib . iis . common . schemas . ReportEntryType . COUNTER , "21" ) ; when ( reportValueConverterManager . conv... | org . junit . Assert . assertEquals ( expectedJson , jsonReport ) |
testApply_NoPayload ( ) { org . apache . hadoop . hbase . regionserver . wal . WALEdit walEdit = new org . apache . hadoop . hbase . regionserver . wal . WALEdit ( ) ; walEdit . add ( new org . apache . hadoop . hbase . KeyValue ( org . apache . hadoop . hbase . util . Bytes . toBytes ( "row" ) , RecordCf . DATA . byte... | org . junit . Assert . assertEquals ( 0 , walEdit . size ( ) ) |
testUnwrapWithNull ( ) { org . apache . druid . collections . bitmap . RoaringBitmapFactory factory = new org . apache . druid . collections . bitmap . RoaringBitmapFactory ( ) ; org . apache . druid . collections . bitmap . ImmutableBitmap bitmap = factory . union ( com . google . common . collect . Iterables . transf... | org . junit . Assert . assertEquals ( 0 , bitmap . size ( ) ) |
testOuderMetOuderlijkGezag ( ) { final java . util . List < nl . bzk . brp . model . basis . BerichtEntiteit > overtreders = brby2013 . voerRegelUit ( maakHuidigePersoon ( ) , maakNieuwePersoon ( nl . bzk . brp . bijhouding . business . regels . impl . gegevenset . ouder . ouderlijkgezag . BRBY2013Test . TECHNISCHE_SLE... | org . junit . Assert . assertEquals ( 0 , overtreders . size ( ) ) |
computeFactor_JustOneUsageForDay ( ) { long startTimeUsage = org . oscm . test . DateTimeHandling . calculateMillis ( "2012-02-29<sp>00:00:00" ) ; long endTimeUsage = org . oscm . test . DateTimeHandling . calculateMillis ( "2012-02-29<sp>23:59:59" ) ; org . oscm . billingservice . service . model . BillingInput billin... | org . junit . Assert . assertEquals ( 1 , factor , 0 ) |
testConfigureDebug ( ) { org . mockito . Mockito . when ( filterConfig . getInitParameter ( ConfigConstants . debug . name ( ) ) ) . thenReturn ( "false" ) ; final ro . isdc . wro . config . jmx . WroConfiguration config = factory . create ( ) ; "<AssertPlaceHolder>" ; } isDebug ( ) { return this . debug ; } | org . junit . Assert . assertEquals ( false , config . isDebug ( ) ) |
isManyToMany_return_true_if_has_multiple_incoming_and_outgoing_transitions ( ) { flowNodeTransitionsWrapper . setInputTransitionsSize ( 2 ) ; flowNodeTransitionsWrapper . setAllOutgoingTransitionDefinitions ( java . util . Arrays . asList ( transition1 , transition2 ) ) ; "<AssertPlaceHolder>" ; } isManyToMany ( ) { re... | org . junit . Assert . assertTrue ( flowNodeTransitionsWrapper . isManyToMany ( ) ) |
testSimpleOr ( ) { java . lang . StringBuilder buff = new java . lang . StringBuilder ( "//*[" ) ; java . lang . StringBuilder buff2 = new java . lang . StringBuilder ( "select<sp>[jcr:path],<sp>[jcr:score],<sp>*<sp>from<sp>[nt:base]<sp>as<sp>a<sp>where<sp>[x]<sp>in(" ) ; for ( int i = 0 ; i < 100000 ; i ++ ) { if ( i ... | org . junit . Assert . assertEquals ( buff2 . toString ( ) , sql2 ) |
testResourceLoading_notNormalized_asStream_noPackage ( ) { java . io . InputStream stream = org . reficio . ws . common . ResourceUtils . getResourceAsStream ( org . reficio . ws . common . System . class , "/org/../org/reficio/../reficio/ws/common/test/soapEncoding.xsd" ) ; "<AssertPlaceHolder>" ; } getResourceAsStrea... | org . junit . Assert . assertNotNull ( stream ) |
testDoubleCollectSet ( ) { io . cdap . cdap . api . data . schema . Schema schema = io . cdap . cdap . api . data . schema . Schema . recordOf ( "test" , Schema . Field . of ( "x" , io . cdap . cdap . api . data . schema . Schema . of ( Schema . Type . DOUBLE ) ) ) ; io . cdap . plugin . batch . aggregator . function .... | org . junit . Assert . assertEquals ( expectedSet , set ) |
eachPipelineContainsDistinctExecutor ( ) { long numberOfExecutors = this . ps . pipelines ( ) . stream ( ) . map ( ( s ) -> s . getExecutor ( ) ) . distinct ( ) . count ( ) ; long numberOfStatistics = this . ps . getAllStatistics ( ) . size ( ) ; "<AssertPlaceHolder>" ; } getAllStatistics ( ) { return this . pipelines ... | org . junit . Assert . assertThat ( numberOfExecutors , org . hamcrest . CoreMatchers . is ( numberOfStatistics ) ) |
testIsEditableReadOnlyTableLockedByCurrentUser ( ) { access . setReadOnly ( true ) ; access . setLock ( GuidedDecisionTablePresenter . Access . LockedBy . CURRENT_USER ) ; "<AssertPlaceHolder>" ; } isEditable ( ) { return access . isEditable ( ) ; } | org . junit . Assert . assertFalse ( access . isEditable ( ) ) |
testIncludeGlobalTags ( ) { java . lang . String prefix = "one.two.three" ; java . lang . String tagMapping = "tagOne.tagTwo.tagThree" ; java . util . Map < java . lang . String , java . lang . String > expected = com . google . common . collect . Maps . newHashMap ( ) ; expected . put ( "tagOne" , "one" ) ; expected .... | org . junit . Assert . assertEquals ( expected , com . etsy . statsd . profiler . util . TagUtil . getTags ( tagMapping , prefix , true ) ) |
testSetLspChecksum ( ) { lspEntry . setLspChecksum ( 0 ) ; result = lspEntry . lspChecksum ( ) ; "<AssertPlaceHolder>" ; } is ( java . lang . Class ) { return true ; } | org . junit . Assert . assertThat ( result , org . hamcrest . CoreMatchers . is ( 0 ) ) |
controleerTijdslijn_HistorieZonderGaten_TijdlijnOK ( ) { final java . util . List < nl . bzk . brp . bijhouding . bericht . model . MeldingElement > meldingen = new java . util . ArrayList ( ) ; final long historieId = 1L ; final nl . bzk . algemeenbrp . dal . domein . brp . entity . PersoonGeslachtsaanduidingHistorie ... | org . junit . Assert . assertEquals ( 0 , meldingen . size ( ) ) |
testFindByPrimaryKeyExisting ( ) { com . liferay . portal . kernel . model . RecentLayoutBranch newRecentLayoutBranch = addRecentLayoutBranch ( ) ; com . liferay . portal . kernel . model . RecentLayoutBranch existingRecentLayoutBranch = _persistence . findByPrimaryKey ( newRecentLayoutBranch . getPrimaryKey ( ) ) ; "<... | org . junit . Assert . assertEquals ( existingRecentLayoutBranch , newRecentLayoutBranch ) |
longString8 ( ) { org . diirt . support . ca . JCAChannelHandler channel = new org . diirt . support . ca . JCAChannelHandler ( "test.NAME$<sp>{\"longString\":false}" , dataSource ) ; "<AssertPlaceHolder>" ; } isLongString ( ) { return longString ; } | org . junit . Assert . assertThat ( channel . isLongString ( ) , equalTo ( false ) ) |
testCompareTo ( ) { ca . corefacility . bioinformatics . irida . model . List < ca . corefacility . bioinformatics . irida . model . user . User > users = new ca . corefacility . bioinformatics . irida . model . ArrayList ( ) ; ca . corefacility . bioinformatics . irida . model . user . User u1 = new ca . corefacility ... | org . junit . Assert . assertTrue ( ( ( curr . compareTo ( users . get ( i ) ) ) < 0 ) ) |
testExactMatchSameCase ( ) { net . ricecode . similarity . LevenshteinDistanceStrategy lds = new net . ricecode . similarity . LevenshteinDistanceStrategy ( ) ; double response = lds . score ( "java" , "java" ) ; "<AssertPlaceHolder>" ; } score ( java . lang . String , java . lang . String ) { int maxLength = java . la... | org . junit . Assert . assertEquals ( 1.0 , response , 0.0 ) |
testTransactedMessagesConsumedSoRollback ( ) { createSessionFactory ( ) ; org . apache . activemq . artemis . api . core . client . ClientSession session1 = createSessionAndQueue ( ) ; org . apache . activemq . artemis . api . core . client . ClientProducer producer = session1 . createProducer ( FailoverTestBase . ADDR... | org . junit . Assert . assertTrue ( session2 . isRollbackOnly ( ) ) |
matchesMatchingValuesIgnoringCase ( ) { matcher . withEntry ( "foo1" , "bar1" ) ; matcher . withEntry ( "FOO2" , "bar2" ) ; org . mockserver . matchers . MultiValueMapMatcher mapMatcher = new org . mockserver . matchers . MultiValueMapMatcher ( new org . mockserver . logging . MockServerLogger ( ) , matcher ) ; matched... | org . junit . Assert . assertTrue ( mapMatcher . matches ( null , matched ) ) |
testChoicesInDropDownChoice_shouldBeInSameOrderAsOptionAttribute ( ) { startEditorPanel ( attribOption ) ; @ org . openengsb . ui . common . editor . SuppressWarnings ( "unchecked" ) java . util . List < java . lang . String > choice = getEditorFieldFormComponent ( attribOption . getId ( ) , org . apache . wicket . mar... | org . junit . Assert . assertThat ( choice . get ( i ) , org . hamcrest . Matchers . is ( attribOption . getOptions ( ) . get ( i ) . getValue ( ) ) ) |
testFrameworkLookupWith ( ) { org . osgi . framework . BundleContext context = mock ( org . osgi . framework . BundleContext . class ) ; doReturn ( "<sp>value<sp>" ) . when ( context ) . getProperty ( "name" ) ; "<AssertPlaceHolder>" ; } lookup ( org . osgi . service . component . ComponentContext , java . lang . Strin... | org . junit . Assert . assertEquals ( "value" , org . apache . jackrabbit . oak . osgi . OsgiUtil . lookup ( context , "name" ) ) |
parseSignature_5 ( ) { final java . lang . String sig = "32sadax" ; final org . erlide . util . erlang . Signature [ ] result = org . erlide . util . erlang . Signature . parse ( sig ) ; final java . lang . String expect = "[t(t(s,a),d,a),<sp>x]" ; "<AssertPlaceHolder>" ; } toString ( int ) { final java . lang . String... | org . junit . Assert . assertTrue ( java . util . Arrays . toString ( result ) . equals ( expect ) ) |
getSoortNlReisdocumentTestOK ( ) { final java . lang . String snrCode = "NI" ; final nl . bzk . algemeenbrp . dal . domein . brp . entity . SoortNederlandsReisdocument expectedSnr = new nl . bzk . algemeenbrp . dal . domein . brp . entity . SoortNederlandsReisdocument ( snrCode , "Nederlandse<sp>identiteitskaart" ) ; f... | org . junit . Assert . assertEquals ( expected , resultSnr ) |
isIriInOntology_nullIri ( ) { final org . semanticweb . owlapi . model . IRI iri = null ; uk . co . flax . biosolr . ontology . core . owl . OWLDataManager dm = new uk . co . flax . biosolr . ontology . core . owl . OWLDataManager ( uk . co . flax . biosolr . ontology . core . owl . OWLDataManagerTest . testOntologyUri... | org . junit . Assert . assertFalse ( dm . isIriInOntology ( iri ) ) |
testConvertWithEmptyFields ( ) { org . lnu . is . domain . degree . Degree source = new org . lnu . is . domain . degree . Degree ( ) ; org . lnu . is . resource . degree . DegreeResource expected = new org . lnu . is . resource . degree . DegreeResource ( ) ; org . lnu . is . resource . degree . DegreeResource actual ... | org . junit . Assert . assertEquals ( expected , actual ) |
testRevert ( ) { org . hipparchus . geometry . euclidean . threed . Line line = new org . hipparchus . geometry . euclidean . threed . Line ( new org . hipparchus . geometry . euclidean . threed . Vector3D ( 1653345.6696423641 , 6170370.041579291 , 90000 ) , new org . hipparchus . geometry . euclidean . threed . Vector... | org . junit . Assert . assertArrayEquals ( expected . toArray ( ) , reverted . getDirection ( ) . toArray ( ) , 0 ) |
testSerialization ( ) { org . apache . camel . util . CaseInsensitiveMap testMap = new org . apache . camel . util . CaseInsensitiveMap ( ) ; testMap . put ( "key" , "value" ) ; testMap . entrySet ( ) ; java . io . ByteArrayOutputStream bStream = new java . io . ByteArrayOutputStream ( ) ; java . io . ObjectOutputStrea... | org . junit . Assert . assertTrue ( testMapCopy . containsKey ( "key" ) ) |
getReportingUnitsShouldReturnUnkownOnUnknownValues ( ) { target . rawResponseListener ( "$13=2" ) ; "<AssertPlaceHolder>" ; } getReportingUnits ( ) { if ( isReportingUnits ( ) ) { if ( "0" . equals ( value ) ) { return UnitUtils . Units . MM ; } else if ( "1" . equals ( value ) ) { return UnitUtils . Units . INCH ; } }... | org . junit . Assert . assertEquals ( UnitUtils . Units . UNKNOWN , target . getReportingUnits ( ) ) |
testNewDerivativeImageOutputStreamWhenDerivativeCacheIsEnabled ( ) { enableDerivativeCache ( ) ; edu . illinois . library . cantaloupe . operation . OperationList opList = new edu . illinois . library . cantaloupe . operation . OperationList ( new edu . illinois . library . cantaloupe . image . Identifier ( "jpg" ) ) ;... | org . junit . Assert . assertNotNull ( os ) |
testIpv4MulticastFwdClass ( ) { org . onosproject . net . flow . TrafficTreatment treatment = org . onosproject . net . flow . DefaultTrafficTreatment . builder ( ) . pushVlan ( ) . setVlanId ( org . onosproject . pipelines . fabric . pipeliner . VLAN_100 ) . build ( ) ; org . onosproject . net . flowobjective . Filter... | org . junit . Assert . assertEquals ( expectedTranslation , actualTranslation ) |
testForEachRemaining ( ) { java . util . List < org . axonframework . eventhandling . DomainEventMessage > expectedMessages = java . util . Arrays . asList ( event1 , event2 , event3 , event4 , event5 ) ; org . axonframework . eventsourcing . eventstore . DomainEventStream concat = new org . axonframework . eventsourci... | org . junit . Assert . assertEquals ( expectedMessages , actualMessages ) |
testRw ( ) { org . spf4j . tsdb2 . avro . DataBlock data = org . spf4j . tsdb2 . avro . DataBlock . newBuilder ( ) . setBaseTimestamp ( 0 ) . setValues ( Collections . EMPTY_LIST ) . build ( ) ; try ( org . spf4j . io . ByteArrayBuilder bab = new org . spf4j . io . ByteArrayBuilder ( ) ) { org . apache . avro . Schema ... | org . junit . Assert . assertEquals ( read , data ) |
testCreatePreferences ( ) { java . util . List < java . lang . String > preferHeaders = new java . util . ArrayList < java . lang . String > ( ) ; preferHeaders . add ( "return=representation" ) ; preferHeaders . add ( "odata.track-changes" ) ; "<AssertPlaceHolder>" ; } createPreferences ( java . util . Collection ) { ... | org . junit . Assert . assertNotNull ( odata . createPreferences ( preferHeaders ) ) |
validNameDicDP ( ) { org . sejda . sambox . cos . COSDictionary filter = new org . sejda . sambox . cos . COSDictionary ( ) ; filter . setItem ( COSName . FILTER , COSName . JBIG2_DECODE ) ; org . sejda . sambox . cos . COSDictionary dp = new org . sejda . sambox . cos . COSDictionary ( ) ; dp . setInt ( COSName . A , ... | org . junit . Assert . assertEquals ( dp , params ) |
testControlledDescNull ( ) { com . j256 . simplemetrics . metric . ControlledMetricValue metric = new com . j256 . simplemetrics . metric . ControlledMetricValue ( "comp" , "mod" , "name" , null , "unit" ) ; "<AssertPlaceHolder>" ; } getDescription ( ) { return metric . getDescription ( ) ; } | org . junit . Assert . assertNull ( metric . getDescription ( ) ) |
testIntSmaller ( ) { executeWithDefaultScope ( "boolVar<sp>=<sp>1<sp><<sp>2" ) ; "<AssertPlaceHolder>" ; } getBoolValue ( ) { return context . getVariable ( "boolVar" ) . getValue ( ) ; } | org . junit . Assert . assertEquals ( true , getBoolValue ( ) ) |
testListOfListRestriction ( ) { org . nuxeo . ecm . core . schema . types . ListType listType = ( ( org . nuxeo . ecm . core . schema . types . ListType ) ( schema . getField ( "listOfLists" ) . getType ( ) ) ) ; org . nuxeo . ecm . core . schema . types . ComplexType itemType = ( ( org . nuxeo . ecm . core . schema . ... | org . junit . Assert . assertEquals ( 2 , constraints . size ( ) ) |
testGetDate ( ) { if ( log . isDebugEnabled ( ) ) { log . debug ( ( "db<sp>date<sp>to<sp>convert:<sp>" + ( new java . util . Date ( ) ) ) ) ; } java . lang . String date = org . appfuse . util . DateUtil . getDate ( new java . util . Date ( ) ) ; if ( log . isDebugEnabled ( ) ) { log . debug ( ( "converted<sp>ui<sp>dat... | org . junit . Assert . assertTrue ( ( date != null ) ) |
testGetMetaDataReturnsTheSameMapAsWasInsertedInTheQueryUpdate ( ) { org . axonframework . messaging . MetaData expectedMetaData = org . axonframework . messaging . MetaData . with ( "some-key" , "some-value" ) ; org . axonframework . queryhandling . SubscriptionQueryUpdateMessage < java . lang . Object > testSubscripti... | org . junit . Assert . assertEquals ( expectedMetaData , testSubject . getMetaData ( ) ) |
testAddingDestinationResourcesWithTargets ( ) { final java . lang . String resourceName = "form:propertyContentPage:propertySheet:propertSectionTextField:descProp:desc" 9 + ( generateRandomString ( ) ) ; final java . lang . String instanceName = "form:propertyContentPage:topButtons:saveButton" 0 + ( generateRandomStrin... | org . junit . Assert . assertEquals ( resourceName , getText ( ( prefix + "form:propertyContentPage:topButtons:saveButton" 7 ) ) ) |
wildCardTopicSelf ( ) { java . util . concurrent . CountDownLatch latch = new java . util . concurrent . CountDownLatch ( 1 ) ; com . openfin . desktop . BusListener busListener = ( sourceUuid , receivingTopic , payload ) -> { com . openfin . desktop . InterApplicationBusTest . logger . debug ( java . lang . String . f... | org . junit . Assert . assertEquals ( latch . getCount ( ) , 0 ) |
getIndicatieGezagMinderjarigeOkTest ( ) { final java . lang . String code = "1" ; final java . lang . String expedtedLabel = "Ouder1" ; final java . lang . String expected = java . lang . String . format ( nl . bzk . migratiebrp . ggo . viewer . service . impl . Lo3StamtabelServiceTest . STRING_FORMAT , code , expedted... | org . junit . Assert . assertEquals ( expected , resultNat ) |
testParseMinKeyInArrayStrict ( ) { final com . allanbank . mongodb . bson . json . JsonParser parser = new com . allanbank . mongodb . bson . json . JsonParser ( ) ; final java . lang . Object doc = parser . parse ( "{<sp>a<sp>:<sp>[{<sp>$minKey:1}]<sp>}" ) ; final com . allanbank . mongodb . bson . builder . DocumentB... | org . junit . Assert . assertEquals ( b . build ( ) , doc ) |
testGetSecurityRoleKeys ( ) { final java . util . List < org . finra . herd . model . api . xml . SecurityRoleKey > securityRoleKeys = com . google . common . collect . ImmutableList . of ( new org . finra . herd . model . api . xml . SecurityRoleKey ( SECURITY_ROLE ) , new org . finra . herd . model . api . xml . Secu... | org . junit . Assert . assertEquals ( securityRoleKeys , result ) |
testGetSelection ( ) { "<AssertPlaceHolder>" ; } getSelection ( ) { return new org . eclipse . jface . viewers . StructuredSelection ( getSelectedLibraries ( ) ) ; } | org . junit . Assert . assertNull ( page . getSelection ( ) ) |
testXML ( ) { final java . lang . String testMsg = "Test<sp>message<sp>{}" ; final org . apache . logging . log4j . message . StringMapMessage msg = new org . apache . logging . log4j . message . StringMapMessage ( ) ; msg . put ( "message" , testMsg ) ; msg . put ( "project" , "Log4j" ) ; final java . lang . String re... | org . junit . Assert . assertEquals ( expected , result ) |
testGetAndSet ( ) { com . clearspring . analytics . stream . cardinality . RegisterSet rs = new com . clearspring . analytics . stream . cardinality . RegisterSet ( ( ( int ) ( java . lang . Math . pow ( 2 , 4 ) ) ) ) ; rs . set ( 0 , 11 ) ; "<AssertPlaceHolder>" ; } get ( int ) { int bucketPos = position / ( com . cle... | org . junit . Assert . assertEquals ( 11 , rs . get ( 0 ) ) |
testInjectionSimpleBinding ( ) { com . ibm . ws . injectionengine . TestHelper helper = new com . ibm . ws . injectionengine . TestHelper ( ) . addInjectionClass ( com . ibm . ws . injectionengine . InjectionTargetMapTest . TestInjectionSimpleBinding1 . class ) . addInjectionClass ( com . ibm . ws . injectionengine . I... | org . junit . Assert . assertEquals ( java . util . Arrays . toString ( targets ) , 1 , targets . length ) |
getValue ( ) { mandatorySubject . setValue ( SpdConstants . NotificationType . NON_RECEIPT ) ; "<AssertPlaceHolder>" ; } getValue ( ) { return value ; } | org . junit . Assert . assertEquals ( SpdConstants . NotificationType . NON_RECEIPT , mandatorySubject . getValue ( ) ) |
testEmbeddedSubtemplate ( ) { java . lang . String dir = getRandomDir ( ) ; java . lang . String groupFile = "a" 0 + ( ( ( ( ( "[\n" + "a" 2 ) + "<sp>bar\n" ) + "<sp>}>\n" ) + "]\n" ) + ">>\n" ) ; writeFile ( dir , "group.stg" , groupFile ) ; org . stringtemplate . v4 . test . STGroup group = new org . stringtemplate .... | org . junit . Assert . assertEquals ( expected , result ) |
testCreateStreamMessage ( ) { javax . jms . StreamMessage message = context . createStreamMessage ( ) ; "<AssertPlaceHolder>" ; } createStreamMessage ( ) { try { return getSession ( ) . createStreamMessage ( ) ; } catch ( javax . jms . JMSException jmse ) { throw org . apache . qpid . jms . exceptions . JmsExceptionSup... | org . junit . Assert . assertNotNull ( message ) |
testConvert ( ) { java . lang . Long id = 1L ; java . lang . String name = "name" ; java . lang . String abbrName = "abbr<sp>name" ; org . lnu . is . domain . timeperiod . TimePeriodType expected = new org . lnu . is . domain . timeperiod . TimePeriodType ( ) ; expected . setAbbrName ( abbrName ) ; expected . setName (... | org . junit . Assert . assertEquals ( expected , actual ) |
testImmutableEmpty ( ) { try { eu . stratosphere . pact . runtime . task . drivers . TestTaskContext < eu . stratosphere . api . common . functions . GenericReduce < eu . stratosphere . api . java . tuple . Tuple2 < java . lang . String , java . lang . Integer > > , eu . stratosphere . api . java . tuple . Tuple2 < jav... | org . junit . Assert . assertEquals ( 0 , result . getList ( ) . size ( ) ) |
testFindByG_U_F_M_StatusAny_EmptyRepositories ( ) { com . liferay . portal . kernel . dao . orm . QueryDefinition < com . liferay . document . library . kernel . model . DLFileEntry > queryDefinition = new com . liferay . portal . kernel . dao . orm . QueryDefinition ( ) ; queryDefinition . setStatus ( WorkflowConstant... | org . junit . Assert . assertEquals ( dlFileEntries . toString ( ) , 2 , dlFileEntries . size ( ) ) |
testFlowNamedNotMapped ( ) { org . apache . fop . events . FlowNamedNotMappedTestCase . FlowNameNotMappedEventChecker flowChecker ; org . apache . fop . apps . Fop fop ; org . apache . fop . apps . FopFactory fopFactory = org . apache . fop . apps . FopFactory . newInstance ( new java . io . File ( "." ) . toURI ( ) ) ... | org . junit . Assert . assertTrue ( test . contains ( expected ) ) |
testCompareLongLTDecimal ( ) { java . lang . String tableName = generateUniqueName ( ) ; java . sql . Connection conn = java . sql . DriverManager . getConnection ( getUrl ( ) , org . apache . phoenix . end2end . PrimitiveTypeIT . PROPS ) ; org . apache . phoenix . end2end . PrimitiveTypeIT . initTableValues ( conn , t... | org . junit . Assert . assertFalse ( rs . next ( ) ) |
isConfirmationRequired_MarketplaceNotChanged ( ) { org . oscm . internal . service . POServiceForPublish service = new org . oscm . internal . service . POServiceForPublish ( ) ; service . setPartOfUpgradePath ( true ) ; service . setMarketplaceId ( "mId" ) ; m . setServiceDetails ( service ) ; m . setInitialMarketplac... | org . junit . Assert . assertFalse ( confirmationRequired ) |
testContentFromXml ( ) { com . google . common . io . ByteSource bs = com . google . common . io . ByteSource . wrap ( "<root<sp>/>" . getBytes ( Charsets . UTF_8 ) ) ; when ( response . contentAsByteSource ( ) ) . thenReturn ( bs ) ; when ( response . createTransformer ( java . lang . String . class , ContentType . XM... | org . junit . Assert . assertEquals ( "<root></root>" , c ) |
testEncodedPaths ( ) { org . apache . hadoop . fs . FileSystem fs2 = org . apache . hadoop . fs . test . unit . HcfsFileSystemTest . fs ; org . apache . hadoop . fs . Path encodedFiles = new org . apache . hadoop . fs . Path ( ( "/tmp/encodedTest" + ( java . lang . System . currentTimeMillis ( ) ) ) ) ; fs2 . mkdirs ( ... | org . junit . Assert . assertEquals ( 5 , fs2 . listStatus ( encodedFiles ) . length ) |
getSetMembers_shouldReturnUnmodifiableListOfConceptMemberList ( ) { org . openmrs . Concept c = new org . openmrs . Concept ( ) ; c . addSetMember ( new org . openmrs . Concept ( 12345 ) ) ; java . util . List < org . openmrs . Concept > setMembers = c . getSetMembers ( ) ; "<AssertPlaceHolder>" ; setMembers . add ( ne... | org . junit . Assert . assertEquals ( 1 , setMembers . size ( ) ) |
testIsAutoCommitNull ( ) { com . j256 . ormlite . support . DatabaseConnectionProxy proxy = new com . j256 . ormlite . support . DatabaseConnectionProxy ( null ) ; "<AssertPlaceHolder>" ; proxy . close ( ) ; } isAutoCommit ( ) { if ( ( proxy ) == null ) { return false ; } else { return proxy . isAutoCommit ( ) ; } } | org . junit . Assert . assertFalse ( proxy . isAutoCommit ( ) ) |
editAllergyTest ( ) { org . openmrs . reference . page . ActiveVisitsPage activeVisitsPage = homePage . goToActiveVisitsSearch ( ) ; activeVisitsPage . search ( patient . identifier ) ; org . openmrs . reference . page . ClinicianFacingPatientDashboardPage patientDashboardPage = activeVisitsPage . goToPatientDashboardO... | org . junit . Assert . assertTrue ( allergyPage . getReaction ( ) . equals ( org . openmrs . reference . EditAllergyTest . REACTION_NAME ) ) |
testJoinEmpty ( ) { org . dayatang . utils . beans . Item [ ] items = new org . dayatang . utils . beans . Item [ ] { } ; java . lang . String separator = ",<sp>" ; java . lang . String result = org . dayatang . utils . ArrayUtils . join ( items , "id" , separator ) ; "<AssertPlaceHolder>" ; } isEmpty ( ) { return true... | org . junit . Assert . assertTrue ( result . isEmpty ( ) ) |
testDynamicQueryByProjectionMissing ( ) { com . liferay . portal . kernel . dao . orm . DynamicQuery dynamicQuery = com . liferay . portal . kernel . dao . orm . DynamicQueryFactoryUtil . forClass ( com . liferay . expando . kernel . model . ExpandoTable . class , _dynamicQueryClassLoader ) ; dynamicQuery . setProjecti... | org . junit . Assert . assertEquals ( 0 , result . size ( ) ) |
testMaximumTimeMillisecondsViaSetter ( ) { final java . util . Random random = new java . util . Random ( java . lang . System . currentTimeMillis ( ) ) ; final java . util . Set < java . lang . String > keys = new java . util . HashSet < java . lang . String > ( ) ; keys . add ( "k1" ) ; keys . add ( "k2" ) ; final co... | org . junit . Assert . assertThat ( command . getMaximumTimeMilliseconds ( ) , org . hamcrest . Matchers . is ( value ) ) |
docsReturnedTestWithoutDocsHint ( ) { java . lang . String query = java . lang . String . format ( "SELECT<sp>count(*)<sp>from<sp>%s/account" , org . nlpcn . es4sql . TEST_INDEX_ACCOUNT ) ; org . nlpcn . es4sql . query . SqlElasticSearchRequestBuilder searchRequestBuilder = getSearchRequestBuilder ( query ) ; org . ela... | org . junit . Assert . assertEquals ( 0 , response . getHits ( ) . getHits ( ) . length ) |
testSplitCalculatorBackwards ( ) { org . apache . hadoop . hbase . util . TestRegionSplitCalculator . SimpleRange a = new org . apache . hadoop . hbase . util . TestRegionSplitCalculator . SimpleRange ( org . apache . hadoop . hbase . util . Bytes . toBytes ( "C" ) , org . apache . hadoop . hbase . util . Bytes . toByt... | org . junit . Assert . assertEquals ( res , "" ) |
testJavaDocWithLinkToXtendFunctionOnReference ( ) { try { org . eclipse . xtend2 . lib . StringConcatenation _builder = new org . eclipse . xtend2 . lib . StringConcatenation ( ) ; _builder . append ( "package<sp>testpackage" ) ; _builder . newLine ( ) ; _builder . newLine ( ) ; _builder . append ( "SimpleJavaDoc" 4 ) ... | org . junit . Assert . assertEquals ( _builder_1 . toString ( ) , docu ) |
testPluginZipIsDeletedOnError ( ) { java . io . IOException ioException = new java . io . IOException ( ) ; setUpBrokenDownloadAndExtract ( ioException ) ; try { install ( ) ; org . junit . Assert . fail ( ) ; } catch ( java . io . IOException ioe ) { "<AssertPlaceHolder>" ; } org . mockito . Mockito . verify ( _plugin... | org . junit . Assert . assertSame ( ioException , ioe ) |
testIncrementExactInt ( ) { int [ ] specialValues = new int [ ] { Integer . MIN_VALUE , ( Integer . MIN_VALUE ) + 1 , ( Integer . MIN_VALUE ) + 2 , Integer . MAX_VALUE , ( Integer . MAX_VALUE ) - 1 , ( Integer . MAX_VALUE ) - 2 , - 10 , - 9 , - 8 , - 7 , - 6 , - 5 , - 4 , - 3 , - 2 , - 1 , 0 , 1 , 2 , 3 , 4 , 5 , 6 , 7... | org . junit . Assert . assertEquals ( bdSum , java . math . BigInteger . valueOf ( org . hipparchus . util . FastMath . incrementExact ( a ) ) ) |
shouldBeAbleToDeleteChangedNodeCommittingTransaction ( ) { createTestDatabase ( ) ; mutateGraph ( new com . graphaware . tx . event . improved . LazyTransactionDataComprehensiveTest . BeforeCommitCallback . RememberingAdapter ( ) { @ com . graphaware . tx . event . improved . Override public void doBeforeCommit ( com .... | org . junit . Assert . assertEquals ( 6 , countNodes ( db ) ) |
testToVOUda_Null ( ) { "<AssertPlaceHolder>" ; } toVOUda ( org . oscm . domobjects . Uda , org . oscm . i18nservice . bean . LocalizerFacade ) { if ( uda == null ) { return null ; } org . oscm . internal . vo . VOUda voUda = new org . oscm . internal . vo . VOUda ( ) ; updateValueObject ( voUda , uda ) ; voUda . setTar... | org . junit . Assert . assertNull ( org . oscm . accountservice . assembler . UdaAssembler . toVOUda ( null , null ) ) |
testNot1 ( ) { org . nd4j . linalg . api . ndarray . INDArray x = org . nd4j . linalg . factory . Nd4j . create ( new double [ ] { 0 , 0 , 1 , 0 , 0 } ) ; org . nd4j . linalg . api . ndarray . INDArray exp = org . nd4j . linalg . factory . Nd4j . create ( new boolean [ ] { false , false , true , false , false } ) ; org... | org . junit . Assert . assertEquals ( exp , z ) |
testSetGetFileMarker ( ) { final long markerPosition = 1234 ; adapter . setFileMarker ( markerPosition ) ; "<AssertPlaceHolder>" ; } getFileMarker ( ) { return fileMarker ; } | org . junit . Assert . assertEquals ( markerPosition , adapter . getFileMarker ( ) ) |
isValidLoraGatewayReturnsFalseForMissingData ( ) { final io . vertx . core . json . JsonObject gateway = getValidGateway ( ) ; gateway . remove ( "data" ) ; "<AssertPlaceHolder>" ; } isValidLoraGateway ( io . vertx . core . json . JsonObject ) { final io . vertx . core . json . JsonObject data = gateway . getJsonObject... | org . junit . Assert . assertFalse ( org . eclipse . hono . adapter . lora . providers . LoraUtils . isValidLoraGateway ( gateway ) ) |
testRollupWithNotNullDistinct1 ( ) { java . lang . String sqlText = java . lang . String . format ( ( "DEPTNO<sp>|<sp>2<sp>|<sp>3<sp>|\n" 5 + ( ( ( ( "SELECT<sp>deptno,<sp>count(distinct<sp>salary)<sp>as<sp>s_sum<sp>" + "DEPTNO<sp>|<sp>2<sp>|<sp>3<sp>|\n" 3 ) + "group<sp>by<sp>rollup(deptno)<sp>)<sp>v1<sp>" ) + "group<... | org . junit . Assert . assertEquals ( ( ( "DEPTNO<sp>|<sp>2<sp>|<sp>3<sp>|\n" 0 + sqlText ) + "DEPTNO<sp>|<sp>2<sp>|<sp>3<sp>|\n" 0 ) , expected , TestUtils . FormattedResult . ResultFactory . toStringUnsorted ( rs ) ) |
testGoedPad ( ) { final nl . bzk . brp . domain . algemeen . Autorisatiebundel autorisatiebundel = maakAutorisatiebundel ( 10 ) ; final nl . bzk . brp . service . bevraging . zoekpersoon . ZoekPersoonVerzoek bevragingVerzoek = new nl . bzk . brp . service . bevraging . zoekpersoon . ZoekPersoonVerzoek ( ) ; final nl . ... | org . junit . Assert . assertEquals ( persoonslijstLijstMock . size ( ) , persoonslijstLijst . size ( ) ) |
testGetRecurrencePeriod ( ) { hudson . plugins . jobConfigHistory . JobConfigHistoryPurger sut = new hudson . plugins . jobConfigHistory . JobConfigHistoryPurger ( mockedPlugin , mockedDao , mockedOverviewDao ) ; long expResult = ( ( 24 * 60 ) * 60 ) * 1000 ; long result = sut . getRecurrencePeriod ( ) ; "<AssertPlaceH... | org . junit . Assert . assertEquals ( expResult , result ) |
testOpensslAesCtrCryptoCodec ( ) { org . apache . hadoop . test . GenericTestUtils . assumeInNativeProfile ( ) ; if ( ! ( org . apache . hadoop . util . NativeCodeLoader . buildSupportsOpenssl ( ) ) ) { org . apache . hadoop . crypto . TestCryptoCodec . LOG . warn ( "Skipping<sp>test<sp>since<sp>openSSL<sp>library<sp>n... | org . junit . Assert . assertEquals ( null , org . apache . hadoop . crypto . OpensslCipher . getLoadingFailureReason ( ) ) |
isAllowed_hasOnlyWan_WanAllowedByUserAndConfig_policyIsTrue ( ) { setupConnectivity ( true , false , true ) ; com . amazonaws . mobileconnectors . amazonmobileanalytics . internal . delivery . policy . ConnectivityPolicy target = new com . amazonaws . mobileconnectors . amazonmobileanalytics . internal . delivery . pol... | org . junit . Assert . assertThat ( target . isAllowed ( ) , org . hamcrest . Matchers . is ( true ) ) |
testWindow_applyIf ( ) { cz . seznam . euphoria . core . client . flow . Flow flow = cz . seznam . euphoria . core . client . flow . Flow . create ( "TEST" ) ; cz . seznam . euphoria . core . client . dataset . Dataset < java . lang . String > dataset = cz . seznam . euphoria . core . client . operator . Util . createM... | org . junit . Assert . assertTrue ( ( ( reduce . getWindowing ( ) ) instanceof cz . seznam . euphoria . core . client . dataset . windowing . Time ) ) |
testGetAnnotation ( ) { "<AssertPlaceHolder>" ; } getAnnotation ( java . lang . String ) { return getAnnotations ( ) . get ( key ) ; } | org . junit . Assert . assertEquals ( "bar" , resource . getAnnotation ( "foo" ) ) |
testResetUsingPlanWhenAfterEndOffset ( ) { final java . util . Map < org . apache . kafka . common . TopicPartition , java . lang . Long > endOffsets = new java . util . HashMap ( ) ; endOffsets . put ( topicPartition , 3L ) ; consumer . updateEndOffsets ( endOffsets ) ; final java . util . Map < org . apache . kafka .... | org . junit . Assert . assertEquals ( 2 , records . count ( ) ) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.