input stringlengths 28 18.7k | output stringlengths 39 1.69k |
|---|---|
test_Byte_Multi ( ) { byte [ ] array = new byte [ 100 ] ; com . alibaba . dubbo . common . serialize . serialization . AbstractSerializationTest . random . nextBytes ( array ) ; com . alibaba . dubbo . common . serialize . ObjectOutput objectOutput = serialization . serialize ( url , byteArrayOutputStream ) ; for ( byt... | org . junit . Assert . assertEquals ( b , deserialize . readByte ( ) ) |
testMultipleCallsAndRandomElm ( ) { dk . alexandra . fresco . suite . spdz . storage . SpdzDataSupplier supplier = new dk . alexandra . fresco . suite . spdz . storage . TestStorage . Initializer ( ) . numTriples ( 1 ) . init ( ) ; dk . alexandra . fresco . framework . builder . numeric . field . FieldElement ssk1 = su... | org . junit . Assert . assertEquals ( ssk1 , ssk2 ) |
indexDeletesShouldNotByVisibleUntilCommit ( ) { commitTx ( ) ; org . neo4j . index . impl . lucene . explicit . WorkThread firstTx = createWorker ( "First" ) ; firstTx . beginTransaction ( ) ; firstTx . removeFromIndex ( key , value ) ; try ( org . neo4j . graphdb . Transaction transaction = org . neo4j . index . impl ... | org . junit . Assert . assertThat ( indexHits , org . neo4j . index . impl . lucene . explicit . Contains . contains ( node ) ) |
graph_union_1t ( ) { java . util . List < org . apache . jena . sparql . engine . binding . Binding > results = exec ( ( ( "(graph<sp><" + ( Quad . unionGraph . getURI ( ) ) ) + "><sp>(bgp<sp>(<s2><sp>?p<sp>?o)))" ) , org . apache . jena . sparql . core . TestSpecialGraphNames . Mode . TRIPLES ) ; "<AssertPlaceHolder>"... | org . junit . Assert . assertEquals ( 2 , results . size ( ) ) |
testRandomVariableSimpleGradient ( ) { net . finmath . montecarlo . RandomVariableFromDoubleArray randomVariable01 = new net . finmath . montecarlo . RandomVariableFromDoubleArray ( 0.0 , new double [ ] { 3.0 , 1.0 , 0.0 , 2.0 , 4.0 } ) ; net . finmath . montecarlo . RandomVariableFromDoubleArray randomVariable02 = new... | org . junit . Assert . assertTrue ( analyticGradient [ i ] . equals ( aadGradient . get ( keys [ i ] ) ) ) |
testMaxLength ( ) { "<AssertPlaceHolder>" ; pm . maxLen6 . setValue ( 1234567 ) ; _PmAssert . validateNotSuccessful ( pm . maxLen6 , "Please<sp>enter<sp>maximal<sp>6<sp>characters<sp>in<sp>field<sp>\"pmAttrIntegerTest.MyPm.maxLen6\"." ) ; pm . maxLen6 . setValue ( 123456 ) ; _PmAssert . validateSuccessful ( pm ) ; } ge... | org . junit . Assert . assertEquals ( 6 , pm . maxLen6 . getMaxLen ( ) ) |
defaultSystemProperty ( ) { java . lang . String expected = "expected" ; java . lang . System . setProperty ( "jboss.mod_cluster.jvmRoute" , expected ) ; org . jboss . modcluster . container . Engine engine = mock ( org . jboss . modcluster . container . Engine . class ) ; org . jboss . modcluster . config . JvmRouteFa... | org . junit . Assert . assertSame ( expected , result ) |
testWithSyntax ( ) { java . lang . String ori = "<sp>WITH<sp>tmp2<sp>AS\n" 4 + ( ( ( ( ( ( ( ( ( ( ( "<sp>WITH<sp>tmp2<sp>AS\n" 1 + "<sp>FROM<sp>t)<sp>\n" ) + "<sp>WITH<sp>tmp2<sp>AS\n" 3 ) + "FROM<sp>(\n" ) + "<sp>WITH<sp>tmp2<sp>AS\n" ) + "<sp>(SELECT<sp>*\n" ) + "<sp>FROM<sp>t)<sp>\n" ) + "<sp>WITH<sp>tmp2<sp>AS\n" ... | org . junit . Assert . assertEquals ( expected , org . apache . kylin . query . util . PushDownUtil . schemaCompletion ( ori , "<sp>WITH<sp>tmp2<sp>AS\n" 2 ) ) |
testDelete ( ) { java . sql . PreparedStatement ps = com . splicemachine . derby . impl . sql . execute . operations . RowIdIT . spliceClassWatcher . prepareStatement ( java . lang . String . format ( "insert<sp>into<sp>%s<sp>(i)<sp>values<sp>(?)" , com . splicemachine . derby . impl . sql . execute . operations . RowI... | org . junit . Assert . assertEquals ( 0 , count ) |
testPartialUpdateXMLDscriptor ( ) { System . out . println ( "constraint1.xml" 2 ) ; java . lang . String [ ] filenames = new java . lang . String [ ] { "constraint1.xml" , "constraint1.xml" 3 , "constraint3.xml" , "constraint1.xml" 5 , "constraint5.xml" } ; com . marklogic . client . DatabaseClientFactory . SecurityCo... | org . junit . Assert . assertTrue ( "constraint1.xml" 4 , content . contains ( "constraint1.xml" 1 ) ) |
testHashCode ( ) { org . eclipse . aether . repository . Authentication auth1 = new org . eclipse . aether . util . repository . ComponentAuthentication ( "key" , new org . eclipse . aether . util . repository . ComponentAuthenticationTest . Component ( ) ) ; org . eclipse . aether . repository . Authentication auth2 =... | org . junit . Assert . assertEquals ( auth1 . hashCode ( ) , auth2 . hashCode ( ) ) |
canConvertFastqToString ( ) { java . lang . Class < java . lang . String > clazz = java . lang . String . class ; org . springframework . http . MediaType mediaType = new org . springframework . http . MediaType ( "application" , "fastq" ) ; "<AssertPlaceHolder>" ; } canRead ( java . lang . Class , org . springframewor... | org . junit . Assert . assertFalse ( converter . canRead ( clazz , mediaType ) ) |
testNewIsotope_String ( ) { org . openscience . cdk . interfaces . IChemObjectBuilder builder = org . openscience . cdk . AbstractChemObjectBuilderTest . rootObject . getBuilder ( ) ; org . openscience . cdk . interfaces . IIsotope isotope = builder . newInstance ( org . openscience . cdk . interfaces . IIsotope . clas... | org . junit . Assert . assertNotNull ( isotope ) |
getNumberOfCategoriesOfInexistentProcess ( ) { final long numberOfCategories = getProcessAPI ( ) . getNumberOfCategories ( Long . MAX_VALUE ) ; "<AssertPlaceHolder>" ; } getNumberOfCategories ( long ) { try { final org . bonitasoft . engine . service . TenantServiceAccessor tenantAccessor = getTenantAccessor ( ) ; fina... | org . junit . Assert . assertEquals ( 0 , numberOfCategories ) |
shouldNotClone ( ) { byte [ ] bytes = "see<sp>issue<sp>#18" . getBytes ( ) ; co . nstant . in . cbor . model . ByteString byteString = new co . nstant . in . cbor . model . ByteString ( bytes ) ; "<AssertPlaceHolder>" ; } getBytes ( ) { if ( ( bytes ) == null ) { return null ; } else { return bytes ; } } | org . junit . Assert . assertEquals ( byteString . getBytes ( ) , bytes ) |
upsertOnlyKeyColsWithNoIdentifiernQuoting ( ) { quoteIdentfiiers = io . confluent . connect . jdbc . util . QuoteMethod . NEVER ; dialect = createDialect ( ) ; io . confluent . connect . jdbc . util . TableId actor = tableId ( "actor" ) ; java . lang . String expected = "merge<sp>into<sp>actor<sp>using<sp>(values(?))<s... | org . junit . Assert . assertEquals ( expected , sql ) |
shouldProvideDependentRequiredModels ( ) { final com . lewisd . maven . lint . ProjectModelsTest . SimpleModel simpleModel = new com . lewisd . maven . lint . ProjectModelsTest . SimpleModel ( ) ; final com . lewisd . maven . lint . ProjectModelsTest . DependentModel dependentModel = new com . lewisd . maven . lint . P... | org . junit . Assert . assertEquals ( dependentModel , models . get ( com . lewisd . maven . lint . ProjectModelsTest . DEPENDENT_MODEL ) ) |
testStartEndBeforeFind ( ) { try { com . google . re2j . Matcher m = com . google . re2j . Pattern . compile ( "a" ) . matcher ( "abaca" ) ; m . start ( ) ; org . junit . Assert . fail ( ) ; } catch ( java . lang . IllegalStateException ise ) { "<AssertPlaceHolder>" ; } } fail ( ) { return new com . google . re2j . Com... | org . junit . Assert . assertTrue ( true ) |
testAboveTransformWithLimitGreatThanUpperBoarderDPsEvalMax ( ) { com . salesforce . dva . argus . service . metric . transform . Transform aboveTransform = new com . salesforce . dva . argus . service . metric . transform . MetricFilterWithInteralReducerTransform ( new com . salesforce . dva . argus . service . metric ... | org . junit . Assert . assertEquals ( result . size ( ) , 0 ) |
shouldUseGivenPrefixWhenNoRelationsInSameSlaveGroup ( ) { java . util . List < ch . puzzle . itc . mobiliar . business . property . entity . ResourceEditRelation > relations = new java . util . ArrayList ( ) ; ch . puzzle . itc . mobiliar . business . property . entity . ResourceEditRelation rel0 = new ch . puzzle . it... | org . junit . Assert . assertThat ( s , org . hamcrest . core . Is . is ( prefix ) ) |
testAddLargeBlocks ( ) { final java . util . ArrayList < org . eclipse . jgit . revwalk . RevCommit > lst = new java . util . ArrayList ( ) ; for ( int i = 0 ; i < ( 3 * ( BlockRevQueue . Block . BLOCK_SIZE ) ) ; i ++ ) { final org . eclipse . jgit . revwalk . RevCommit c = commit ( ) ; lst . add ( c ) ; q . add ( c ) ... | org . junit . Assert . assertSame ( lst . get ( i ) , q . next ( ) ) |
testHasValueGivenProperty ( ) { final java . lang . String insert = "INSERT<sp>DATA<sp>{<sp>GRAPH<sp><http://updated/test><sp>{\n" + ( ( ( ( ( ( ( ( ( ( ( ( "<sp><urn:Biped><sp>owl:onProperty<sp><urn:walksUsingLegs><sp>.<sp>\n" + "<sp><urn:Biped><sp>owl:hasValue<sp>\"2\"urn:Vertebrata" 4 ) + "urn:Vertebrata" 8 ) + "urn... | org . junit . Assert . assertEquals ( typeToValueImplications , inferenceEngine . getHasValueByProperty ( org . apache . rya . rdftriplestore . inference . InferenceEngineTest . VF . createIRI ( "urn:Vertebrata" 6 ) ) ) |
testSetHeaderBackground_nullValue ( ) { org . eclipse . swt . graphics . Color color = new org . eclipse . swt . graphics . Color ( display , 1 , 2 , 3 ) ; tree . setHeaderBackground ( color ) ; tree . setHeaderBackground ( null ) ; "<AssertPlaceHolder>" ; } getHeaderBackground ( ) { checkWidget ( ) ; return headerBack... | org . junit . Assert . assertNull ( tree . getHeaderBackground ( ) ) |
testAcceptOfferAndLaunchTasksWithPastUnavailability ( ) { 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 ( ) ) |
testEquals01 ( ) { org . dresdenocl . modelinstancetype . types . IModelInstanceTuple modelInstanceTuple01 ; modelInstanceTuple01 = this . createModelInstanceTuple ( "fourty-two" , new java . lang . Long ( 42 ) ) ; org . dresdenocl . modelinstancetype . types . IModelInstanceTuple modelInstanceTuple02 ; modelInstanceTu... | org . junit . Assert . assertTrue ( modelInstanceTuple01 . equals ( modelInstanceTuple02 ) ) |
testGetResourceNoImplWithContext ( ) { java . io . Serializable resourceLike = new org . nuxeo . ecm . platform . relations . DummyResourceLike ( "test" ) ; org . nuxeo . ecm . platform . relations . api . Resource resource = service . getResource ( "http://nuxeo.org/nxrelations/test-dummy/" , resourceLike , null ) ; "... | org . junit . Assert . assertNull ( resource ) |
authenticationMessageReceivedSuccess ( ) { final java . lang . String propertyKey = "status-code" ; final java . lang . Integer propertyValue = 200 ; new tests . unit . com . microsoft . azure . sdk . iot . device . transport . amqps . NonStrictExpectations ( ) { { mockAmqpsMessage . getProperties ( ) ; result = mockPr... | org . junit . Assert . assertTrue ( isAuthenticated ) |
canCreateFromProductionResource ( ) { "<AssertPlaceHolder>" ; } fromProductionResource ( ) { return new com . hartwig . hmftools . patientdb . curators . TumorLocationCurator ( com . hartwig . hmftools . patientdb . curators . TumorLocationCurator . TUMOR_LOCATION_MAPPING_RESOURCE ) ; } | org . junit . Assert . assertNotNull ( com . hartwig . hmftools . patientdb . curators . TumorLocationCurator . fromProductionResource ( ) ) |
zipPrecedence ( ) { com . jnape . palatable . lambda . adt . hlist . Tuple5 < java . lang . String , java . lang . Integer , java . lang . Integer , java . lang . Integer , java . lang . Integer > a = com . jnape . palatable . lambda . adt . hlist . HList . tuple ( "foo" , 1 , 2 , 3 , 4 ) ; com . jnape . palatable . la... | org . junit . Assert . assertEquals ( com . jnape . palatable . lambda . adt . hlist . HList . tuple ( "bar" , 2 , 3 , 4 , 5 ) , a . zip ( b ) ) |
convertFromProtonReturnsNull ( tests . unit . com . microsoft . azure . sdk . iot . device . transport . amqps . AmqpsMessage , tests . unit . com . microsoft . azure . sdk . iot . device . transport . amqps . DeviceClientConfig ) { java . lang . String deviceId = "deviceId" ; byte [ ] bytes = new byte [ 1 ] ; tests . ... | org . junit . Assert . assertNull ( amqpsConvertFromProtonReturnValue ) |
parse_withFilterNumbersAndLettersOnly_shouldReturnOnlyNumbersAndLetters ( ) { System . out . println ( "parse" ) ; java . lang . String text = "<sp>abcd()!@#$%&*()12345xyz,<sp>.<sp>:<sp>;/?ABC<sp>" ; coffeepot . bean . wr . mapper . Metadata metadata = null ; coffeepot . bean . wr . typeHandler . DefaultStringHandler i... | org . junit . Assert . assertEquals ( expResult , result ) |
extractAssertionFromRespondingGatewayDSDefResponseType ( ) { gov . hhs . fha . nhinc . event . builder . AssertionDescriptionExtractor extractor = new gov . hhs . fha . nhinc . event . builder . AssertionDescriptionExtractor ( ) ; gov . hhs . fha . nhinc . common . nhinccommonentity . RespondingGatewayProvideAndRegiste... | org . junit . Assert . assertNotNull ( returnAssertion ) |
testSelectSumBaseTable ( ) { org . verdictdb . core . sqlobject . BaseTable base = new org . verdictdb . core . sqlobject . BaseTable ( "myschema" , "mytable" , "t" ) ; org . verdictdb . core . sqlobject . SelectQuery relation = org . verdictdb . core . sqlobject . SelectQuery . create ( java . util . Arrays . < org . ... | org . junit . Assert . assertEquals ( expected , actual ) |
testUpdateCourse1 ( ) { thrown . expect ( org . fastquery . core . RepositoryException . class ) ; thrown . expectMessage ( containsString ( "@Set<sp>" ) ) ; int effect = db . updateCourse ( null , null , null , null , no ) ; "<AssertPlaceHolder>" ; } | org . junit . Assert . assertThat ( effect , is ( 1 ) ) |
testUnequalDistribution ( ) { final com . persistit . Exchange exchange = _persistit . getExchange ( _volumeName , "HistogramTestTestUnequalDistribution" , true ) ; final int total = 100000 ; final int samples = 10 ; exchange . removeAll ( ) ; for ( int i = 0 ; i < total ; i ++ ) { exchange . getValue ( ) . put ( java ... | org . junit . Assert . assertEquals ( 3 , histogram . getSampleSize ( ) ) |
testGetZoneOperation ( ) { org . easymock . EasyMock . expect ( computeRpcMock . getZoneOperation ( com . google . cloud . compute . deprecated . ComputeImplTest . ZONE_OPERATION_ID . getZone ( ) , com . google . cloud . compute . deprecated . ComputeImplTest . ZONE_OPERATION_ID . getOperation ( ) , com . google . clou... | org . junit . Assert . assertEquals ( zoneOperation , operation ) |
testSerialize ( ) { menuHolder . addMenu ( new org . eclipse . swt . widgets . Menu ( shell ) ) ; org . eclipse . swt . internal . widgets . MenuHolder deserializedMenuHolder = serializeAndDeserialize ( menuHolder ) ; "<AssertPlaceHolder>" ; } size ( ) { return new org . eclipse . jface . internal . databinding . swt .... | org . junit . Assert . assertEquals ( 1 , deserializedMenuHolder . size ( ) ) |
testComputeIndexMap ( ) { int [ ] expectedIndexMap = new int [ ] { 0 , 1 , 2 } ; org . apache . avro . Schema designSchema = org . apache . avro . SchemaBuilder . builder ( ) . record ( "Record" ) . fields ( ) . name ( "col0" ) . type ( ) . intType ( ) . noDefault ( ) . name ( "col1" ) . type ( ) . stringType ( ) . noD... | org . junit . Assert . assertArrayEquals ( expectedIndexMap , actualIndexMap ) |
execGetResponse ( ) { redis . clients . jedis . Transaction t = jedis . multi ( ) ; t . set ( "foo" , "bar" ) ; t . smembers ( "foo" ) ; t . get ( "foo" ) ; java . util . List < redis . clients . jedis . Response < ? > > lr = t . execGetResponse ( ) ; try { lr . get ( 1 ) . get ( ) ; org . junit . Assert . fail ( "We<s... | org . junit . Assert . assertEquals ( "bar" , lr . get ( 2 ) . get ( ) ) |
testAnd1Expression ( ) { com . hundredwordsgof . interpreter . Context context = new com . hundredwordsgof . interpreter . Context ( ) ; com . hundredwordsgof . interpreter . TerminalExpression firstTerminalExpression = new com . hundredwordsgof . interpreter . TerminalExpression ( false ) ; com . hundredwordsgof . int... | org . junit . Assert . assertEquals ( false , context . isResult ( ) ) |
itShouldReturnDaysCountTillDate ( ) { java . lang . Integer daysCount = hydrograph . engine . transformation . standardfunctions . DateFunctions . getDaysCountTillDate ( ) ; "<AssertPlaceHolder>" ; } getDaysCountTillDate ( ) { java . util . Date fromDate = null ; java . time . LocalDate localDate = java . time . LocalD... | org . junit . Assert . assertNotNull ( daysCount ) |
createUserGroup ( ) { group . setIsDefault ( false ) ; product . setStatus ( ServiceStatus . ACTIVE ) ; when ( userGroupService . getDm ( ) . getReference ( org . oscm . domobjects . Product . class , 1L ) ) . thenReturn ( product ) ; org . oscm . domobjects . UserGroup result = userGroupService . createUserGroup ( gro... | org . junit . Assert . assertEquals ( result . getKey ( ) , group . getKey ( ) ) |
constructor ( ) { cruise . umple . compiler . Comment c = new cruise . umple . compiler . Comment ( "blah2" ) ; "<AssertPlaceHolder>" ; } getText ( ) { return text ; } | org . junit . Assert . assertEquals ( "blah2" , c . getText ( ) ) |
testNewIsotope_IElement ( ) { org . openscience . cdk . interfaces . IChemObjectBuilder builder = org . openscience . cdk . AbstractChemObjectBuilderTest . rootObject . getBuilder ( ) ; org . openscience . cdk . interfaces . IIsotope isotope = builder . newInstance ( org . openscience . cdk . interfaces . IIsotope . cl... | org . junit . Assert . assertNotNull ( isotope ) |
save_bound_beanIsUpdated ( ) { com . vaadin . flow . data . binder . Binder < com . vaadin . flow . tests . data . bean . Person > binder = new com . vaadin . flow . data . binder . Binder ( ) ; binder . bind ( nameField , Person :: getFirstName , Person :: setFirstName ) ; com . vaadin . flow . tests . data . bean . P... | org . junit . Assert . assertEquals ( fieldValue , person . getFirstName ( ) ) |
testProtocolLineTooLong ( ) { try ( io . nats . client . NatsTestServer ts = new io . nats . client . NatsTestServer ( false ) ; io . nats . client . impl . NatsConnection nc = ( ( io . nats . client . impl . NatsConnection ) ( io . nats . client . Nats . connect ( new io . nats . client . Options . Builder ( ) . serve... | org . junit . Assert . assertFalse ( true ) |
shouldFindBySourceName ( ) { org . openmrs . module . webservices . rest . SimpleObject result = deserialize ( handle ( newGetRequest ( getURI ( ) , new org . openmrs . module . webservices . rest . web . v1_0 . controller . openmrs1_9 . Parameter ( "source" , "Some<sp>Standardized<sp>Terminology" ) ) ) ) ; java . lang... | org . junit . Assert . assertThat ( resultsSize , org . hamcrest . Matchers . is ( 8 ) ) |
megabytesDataRate ( ) { long result = org . kaazing . gateway . util . Utils . parseDataRate ( "1MB/s" ) ; "<AssertPlaceHolder>" ; } parseDataRate ( java . lang . String ) { int length = dataRateValue . length ( ) ; if ( length < 1 ) { throw new java . lang . NumberFormatException ( "Illegal<sp>dataRate<sp>value,<sp>em... | org . junit . Assert . assertEquals ( ( ( 1 * 1000 ) * 1000 ) , result ) |
testGetProperties ( ) { java . util . Map < java . lang . String , java . util . Set < java . util . HashMap < java . lang . String , java . lang . String > > > properties = new java . util . HashMap ( ) ; java . util . Set < java . util . HashMap < java . lang . String , java . lang . String > > setting1 = new java . ... | org . junit . Assert . assertEquals ( properties , setting . getProperties ( ) ) |
decodeExtended ( ) { final java . io . ByteArrayInputStream stream = new java . io . ByteArrayInputStream ( extended ) ; final com . flagstone . transform . coder . SWFDecoder decoder = new com . flagstone . transform . coder . SWFDecoder ( stream ) ; fixture = new com . flagstone . transform . image . DefineJPEGImage2... | org . junit . Assert . assertNotNull ( fixture ) |
testGetSchema ( ) { if ( ! ( this . isSetForXTests ) ) { return ; } java . lang . String collName = "testExists" ; dropCollection ( collName ) ; com . mysql . cj . xdevapi . Collection coll = this . schema . getCollection ( collName ) ; "<AssertPlaceHolder>" ; this . schema . dropCollection ( collName ) ; } getSchema (... | org . junit . Assert . assertEquals ( this . schema , coll . getSchema ( ) ) |
arrayOfUnconvertibleType ( ) { java . lang . Object [ ] array = new java . lang . Object [ 0 ] ; java . util . Map < java . lang . String , java . lang . Object > items = new java . util . HashMap ( ) ; items . put ( "array.of.unconvertible.type" , array ) ; com . pholser . util . properties . PropertyBinder < com . ph... | org . junit . Assert . assertSame ( array , bound . array ( ) ) |
testSerialization ( ) { org . jfree . chart . axis . CategoryLabelPositions p1 = CategoryLabelPositions . STANDARD ; org . jfree . chart . axis . CategoryLabelPositions p2 = ( ( org . jfree . chart . axis . CategoryLabelPositions ) ( org . jfree . chart . TestUtils . serialised ( p1 ) ) ) ; "<AssertPlaceHolder>" ; } se... | org . junit . Assert . assertEquals ( p1 , p2 ) |
testGetTupleFamiliesSplit ( ) { java . lang . String family1 = "family1" ; java . lang . String family2 = "family2" ; java . lang . String families = ( family1 + ( org . pentaho . hbase . shim . api . HBaseValueMeta . SEPARATOR ) ) + family2 ; when ( delegate . getTupleFamilies ( ) ) . thenReturn ( families ) ; "<Asser... | org . junit . Assert . assertArrayEquals ( new java . lang . String [ ] { family1 , family2 } , mapping . getTupleFamiliesSplit ( ) ) |
testThatGetColumnMethodReturnsColumnWhenItExists ( ) { io . quantumdb . core . schema . definitions . Column column = new io . quantumdb . core . schema . definitions . Column ( "id" , io . quantumdb . core . schema . definitions . TestTypes . bigint ( ) , Hint . IDENTITY , Hint . AUTO_INCREMENT ) ; io . quantumdb . co... | org . junit . Assert . assertEquals ( column , table . getColumn ( "id" ) ) |
testARinheritance1homozygousOnly ( ) { java . util . ArrayList < jannovar . exome . Variant > lst = new java . util . ArrayList < jannovar . exome . Variant > ( ) ; jannovar . exome . Variant mg1 = constructGenotypeCall ( Genotype . HETEROZYGOUS , Genotype . HETEROZYGOUS , Genotype . HETEROZYGOUS , Genotype . HETEROZYG... | org . junit . Assert . assertEquals ( true , b ) |
testBenzene ( ) { org . openscience . cdk . interfaces . IAtomContainer molecule = org . openscience . cdk . templates . TestMoleculeFactory . makeBenzene ( ) ; addExplicitHydrogens ( molecule ) ; org . openscience . cdk . tools . manipulator . AtomContainerManipulator . percieveAtomTypesAndConfigureAtoms ( molecule ) ... | org . junit . Assert . assertEquals ( 2 , setOfMolecules . getAtomContainerCount ( ) ) |
testToList ( ) { org . spf4j . base . Pair < java . lang . String , java . lang . String > pair1 = org . spf4j . base . Pair . of ( "5" , ",<sp>adf\"klf<sp>" ) ; org . spf4j . base . Pair < java . lang . String , java . lang . String > pair2 = org . spf4j . base . Pair . from ( pair1 . toString ( ) ) ; "<AssertPlaceHol... | org . junit . Assert . assertEquals ( pair1 , pair2 ) |
additionalOnLoadedConsumerNotHit ( ) { org . pdfsam . test . HitConsumer < org . pdfsam . pdf . PdfDocumentDescriptor > consumer = new org . pdfsam . test . HitConsumer ( ) ; victim . addOnLoaded ( consumer ) ; moveToEncrytedState ( victim ) ; "<AssertPlaceHolder>" ; } isHit ( ) { return hit ; } | org . junit . Assert . assertFalse ( consumer . isHit ( ) ) |
testParseNullLabelsInFromMap ( ) { "<AssertPlaceHolder>" ; } fromMap ( java . util . Map ) { if ( labels != null ) { return new io . strimzi . operator . common . model . Labels ( labels ) ; } return io . strimzi . operator . common . model . Labels . EMPTY ; } | org . junit . Assert . assertEquals ( Labels . EMPTY , io . strimzi . operator . common . model . Labels . fromMap ( null ) ) |
test_user_scheduled_sends_get ( ) { com . sendgrid . SendGrid sg = new com . sendgrid . SendGrid ( "SENDGRID_API_KEY" , true ) ; sg . setHost ( "localhost:4010" ) ; sg . addRequestHeader ( "X-Mock" , "200" ) ; com . sendgrid . Request request = new com . sendgrid . Request ( ) ; request . setMethod ( Method . GET ) ; r... | org . junit . Assert . assertEquals ( 200 , response . getStatusCode ( ) ) |
UserDatavalue201 ( ) { java . lang . String userDataId = "userdata001" ; org . json . simple . JSONObject body = new org . json . simple . JSONObject ( ) ; body . put ( "__id" , userDataId ) ; java . lang . String value = createString ( ) ; body . put ( "dynamicProperty" , value ) ; java . lang . String locationHeader ... | org . junit . Assert . assertEquals ( HttpStatus . SC_CREATED , res . getStatusCode ( ) ) |
testAccessQuerySpecRepository ( ) { java . util . List < io . katharsis . client . mock . models . Schedule > schedule = scheduleRepo . findAll ( new io . katharsis . legacy . queryParams . QueryParams ( ) ) ; "<AssertPlaceHolder>" ; } isEmpty ( ) { return map . isEmpty ( ) ; } | org . junit . Assert . assertTrue ( schedule . isEmpty ( ) ) |
shouldIncrementReuseCounterOnReuse ( ) { org . neo4j . kernel . impl . api . KernelTransactionImplementation transaction = newTransaction ( loginContext ( ) ) ; int reuseCount = transaction . getReuseCount ( ) ; transaction . close ( ) ; org . neo4j . kernel . impl . locking . SimpleStatementLocks statementLocks = new ... | org . junit . Assert . assertEquals ( ( reuseCount + 1 ) , transaction . getReuseCount ( ) ) |
testWriteExtraction ( ) { java . lang . String inputString = LabeledBinaryExtractionReaderTest . inputString ; java . io . InputStream in = new java . io . ByteArrayInputStream ( inputString . getBytes ( "UTF-8" ) ) ; edu . washington . cs . knowitall . extractor . conf . LabeledBinaryExtractionReader reader = new edu ... | org . junit . Assert . assertEquals ( inputString , result ) |
targetType_whenAll ( ) { list . add ( new com . hazelcast . simulator . coordinator . registry . WorkerData ( newParameters ( agent1 , 1 , "javaclient" , "maven=3.6" ) ) ) ; list . add ( new com . hazelcast . simulator . coordinator . registry . WorkerData ( newParameters ( agent1 , 2 , "member" , "maven=3.7" ) ) ) ; l... | org . junit . Assert . assertEquals ( list , result ) |
testInequalityToNull ( ) { com . github . davidmoten . rtree3d . geometry . Point p1 = com . github . davidmoten . rtree3d . geometry . PointTest . point ( 1 , 2 ) ; "<AssertPlaceHolder>" ; } equals ( java . lang . Object ) { @ com . github . davidmoten . rtree3d . SuppressWarnings ( "rawtypes" ) com . google . common ... | org . junit . Assert . assertFalse ( p1 . equals ( null ) ) |
testSAMLAssertionWithTestShib ( ) { java . lang . ClassLoader tcl = java . lang . Thread . currentThread ( ) . getContextClassLoader ( ) ; java . io . InputStream configStream = tcl . getResourceAsStream ( "parser/saml2/saml2-assertion-testshib.xml" ) ; org . picketlink . identity . federation . core . parsers . saml .... | org . junit . Assert . assertNotNull ( assertion ) |
testIsSubgraph ( ) { org . openscience . cdk . smiles . SmilesParser sp = new org . openscience . cdk . smiles . SmilesParser ( org . openscience . cdk . DefaultChemObjectBuilder . getInstance ( ) ) ; org . openscience . cdk . interfaces . IAtomContainer target = sp . parseSmiles ( "C\\C=C/Nc1cccc(c1)N(O)\\C=C\\C\\C=C\... | org . junit . Assert . assertEquals ( true , smsd1 . isSubgraph ( true ) ) |
testSerialization ( ) { org . jfree . chart . block . GridArrangement f1 = new org . jfree . chart . block . GridArrangement ( 33 , 44 ) ; org . jfree . chart . block . GridArrangement f2 = ( ( org . jfree . chart . block . GridArrangement ) ( org . jfree . chart . TestUtils . serialised ( f1 ) ) ) ; "<AssertPlaceHolde... | org . junit . Assert . assertEquals ( f1 , f2 ) |
test_pass_inout_boolean ( ) { org . omg . CORBA . BooleanHolder x = new org . omg . CORBA . BooleanHolder ( true ) ; server . pass_inout_boolean ( x ) ; "<AssertPlaceHolder>" ; } pass_inout_boolean ( org . omg . CORBA . BooleanHolder ) { x . value = ! ( x . value ) ; } | org . junit . Assert . assertEquals ( false , x . value ) |
contentShouldBeDetected ( ) { for ( org . eclipse . che . ide . ext . runner . client . tabs . properties . panel . common . Scope scope : org . eclipse . che . ide . ext . runner . client . tabs . properties . panel . common . Scope . values ( ) ) { "<AssertPlaceHolder>" ; } } detect ( java . lang . String ) { for ( o... | org . junit . Assert . assertThat ( scope , org . hamcrest . CoreMatchers . is ( org . eclipse . che . ide . ext . runner . client . tabs . properties . panel . common . Scope . detect ( scope . toString ( ) ) ) ) |
getPlotOptionsForType_PlotOptionsLineIsCreated_ReturnTheLinePlotOptions ( ) { com . vaadin . addon . charts . Chart chart = new com . vaadin . addon . charts . Chart ( ) ; com . vaadin . addon . charts . model . PlotOptionsLine expected = new com . vaadin . addon . charts . model . PlotOptionsLine ( ) ; chart . getConf... | org . junit . Assert . assertEquals ( expected , result ) |
sameElts_02 ( ) { java . util . List < java . lang . String > x1 = java . util . Arrays . asList ( "a" , "b" , "c" , "a" ) ; java . util . List < java . lang . String > x2 = java . util . Arrays . asList ( "a" , "c" , "b" ) ; "<AssertPlaceHolder>" ; } sameElts ( java . util . Collection , java . util . Collection ) { r... | org . junit . Assert . assertTrue ( sameElts ( x1 , x2 ) ) |
getLengthPrecisionOnlyLength ( ) { info . setLength ( "10" ) ; "<AssertPlaceHolder>" ; } getLengthPrecision ( ) { java . lang . StringBuilder lengthPrecision = new java . lang . StringBuilder ( ) ; lengthPrecision . append ( length ) ; lengthPrecision . append ( ( ( "" . equals ( length ) ) || ( "" . equals ( precision... | org . junit . Assert . assertThat ( info . getLengthPrecision ( ) , org . hamcrest . CoreMatchers . is ( "10" ) ) |
testGetDate_null_if_invalid_filename ( ) { org . esa . beam . framework . datamodel . ProductData . UTC date = filenameDateExtractor . getDate ( new java . io . File ( "invalid_20020304_blah.shp" ) ) ; "<AssertPlaceHolder>" ; } getDate ( java . io . File ) { try { if ( isValidFilename ( file ) ) { return timeStampExtra... | org . junit . Assert . assertNull ( date ) |
testLoginOnlineShouldBeSuccess ( ) { com . rapidftr . model . User user = mock ( com . rapidftr . model . User . class ) ; doReturn ( user ) . when ( loginTask ) . loadOnline ( "test1" , "test2" , "test3" ) ; doNothing ( ) . when ( loginTask ) . migrateIfVerified ( user ) ; doNothing ( ) . when ( loginTask ) . cacheFor... | org . junit . Assert . assertTrue ( result ) |
groupByUniqueKey ( ) { org . eclipse . collections . api . map . MapIterable < java . lang . Integer , java . lang . Integer > map = this . newMapWithKeysValues ( 1 , 1 , 2 , 2 , 3 , 3 ) ; "<AssertPlaceHolder>" ; } newWithKeysValues ( K , V , K , V , K , V ) { return new org . eclipse . collections . impl . map . mutab... | org . junit . Assert . assertEquals ( org . eclipse . collections . impl . map . mutable . UnifiedMap . newWithKeysValues ( 1 , 1 , 2 , 2 , 3 , 3 ) , map . groupByUniqueKey ( ( id ) -> id ) ) |
searchAssignedAndPendingHumanTasks ( ) { final long rootProcessDefinitionId = 10 ; final org . bonitasoft . engine . persistence . QueryOptions options = new org . bonitasoft . engine . persistence . QueryOptions ( 0 , 10 ) ; final java . util . Map < java . lang . String , java . lang . Object > parameters = java . ut... | org . junit . Assert . assertNotNull ( result ) |
testFreeClob ( ) { java . sql . Statement stmt = conn . createStatement ( ) ; stmt . execute ( "INSERT<sp>INTO<sp>blobtest<sp>VALUES<sp>(1,<sp>lo_creat(-1))" ) ; java . sql . ResultSet rs = stmt . executeQuery ( "SELECT<sp>data<sp>FROM<sp>blobtest" ) ; "<AssertPlaceHolder>" ; java . sql . Clob clob = rs . getClob ( 1 )... | org . junit . Assert . assertTrue ( rs . next ( ) ) |
createGetConfigurationRequest_returnsValidGetConfigurationRequest ( ) { eu . chargetime . ocpp . model . core . GetConfigurationRequest result = core . createGetConfigurationRequest ( ) ; "<AssertPlaceHolder>" ; } validate ( ) { return true ; } | org . junit . Assert . assertThat ( result . validate ( ) , org . hamcrest . CoreMatchers . is ( true ) ) |
testBoundsAndLineBreaks ( ) { final com . ait . lienzo . client . core . shape . ITextWrapper wrapper = org . kie . workbench . common . stunner . client . lienzo . shape . view . wires . ext . TextWrapperProvider . get ( TextWrapperStrategy . BOUNDS_AND_LINE_BREAKS , text ) ; "<AssertPlaceHolder>" ; } get ( org . kie ... | org . junit . Assert . assertTrue ( ( wrapper instanceof com . ait . lienzo . client . core . shape . TextBoundsAndLineBreaksWrap ) ) |
testHashCodeIdentityOfDifferentObjects ( ) { edu . harvard . iq . dataverse . search . SortBy secondInstance = new edu . harvard . iq . dataverse . search . SortBy ( this . field , this . order ) ; int firstHash = this . instance . hashCode ( ) ; int secondHash = secondInstance . hashCode ( ) ; "<AssertPlaceHolder>" ; ... | org . junit . Assert . assertEquals ( firstHash , secondHash ) |
testMultiMatchQuery1 ( ) { java . lang . Object value = null ; java . util . Set < java . lang . String > fields = new java . util . HashSet ( ) ; com . liferay . portal . search . query . MultiMatchQuery multiMatchQuery = com . liferay . portal . search . query . test . QueriesInstantiationTest . _queries . multiMatch... | org . junit . Assert . assertNotNull ( multiMatchQuery ) |
testAddOne ( ) { slash . navigation . converter . gui . models . PositionsModel positionsModel = mock ( slash . navigation . converter . gui . models . PositionsModel . class ) ; when ( positionsModel . getPosition ( 0 ) ) . thenReturn ( p1 ) ; when ( positionsModel . getRowCount ( ) ) . thenReturn ( 1 ) ; slash . navi... | org . junit . Assert . assertEquals ( singletonList ( w1 ) , waypointUpdater . getPositionWithLayers ( ) ) |
testCreateConnectionPoolDataSourceDefault ( ) { javax . sql . ConnectionPoolDataSource dataSource = dataSourceFactory . createConnectionPoolDataSource ( null ) ; "<AssertPlaceHolder>" ; } createConnectionPoolDataSource ( java . util . Properties ) { props = new org . postgresql . osgi . PGDataSourceFactory . SingleUseP... | org . junit . Assert . assertNotNull ( dataSource ) |
getParamsForBeanTest ( ) { java . util . List < org . drools . workbench . screens . scenariosimulation . model . FactMappingValue > factMappingValues = new java . util . ArrayList ( ) ; org . drools . workbench . screens . scenariosimulation . model . FactMappingValue factMappingValue = new org . drools . workbench . ... | org . junit . Assert . assertTrue ( factMappingValue . isError ( ) ) |
testIsConfigChangedNetConfigsDontDiffer ( ) { org . eclipse . kura . net . admin . monitor . EthernetMonitorServiceImpl svc = new org . eclipse . kura . net . admin . monitor . EthernetMonitorServiceImpl ( ) ; java . util . List < org . eclipse . kura . net . NetInterfaceAddressConfig > newConfig = new java . util . Ar... | org . junit . Assert . assertFalse ( result ) |
testFormatError ( ) { org . openrtb . dsp . intf . model . RTBRequestWrapper wReq = new org . openrtb . dsp . intf . model . RTBRequestWrapper ( requestError ) ; org . openrtb . dsp . intf . model . RTBExchange exchange = new org . openrtb . dsp . intf . model . RTBExchange ( "BigAdExchange" , "http://bigadex.com/rtb" ... | org . junit . Assert . assertNull ( "151" 0 , response ) |
testEqualsWithDifferentTileHeights ( ) { edu . illinois . library . cantaloupe . image . Info info2 = edu . illinois . library . cantaloupe . image . Info . builder ( ) . withSize ( 100 , 80 ) . withTileSize ( 50 , 39 ) . withOrientation ( Orientation . ROTATE_270 ) . withNumResolutions ( 3 ) . withFormat ( Format . JP... | org . junit . Assert . assertFalse ( instance . equals ( info2 ) ) |
stringParams ( ) { com . github . jknack . handlebars . Handlebars handlebars = new com . github . jknack . handlebars . Handlebars ( ) . stringParams ( false ) ; "<AssertPlaceHolder>" ; } stringParams ( boolean ) { setStringParams ( stringParams ) ; return this ; } | org . junit . Assert . assertNotNull ( handlebars ) |
isNotMemberOfWorking ( ) { if ( ( ( isBatoo ( ) ) || ( isOpenJPA ( ) ) ) || ( isEclipselink ( ) ) ) { return ; } final com . uaihebert . model . test . RegularEntityOne regularEntityOne = new com . uaihebert . model . test . RegularEntityOne ( ) ; regularEntityOne . setId ( 1 ) ; final java . util . Map < java . lang .... | org . junit . Assert . assertTrue ( ( ( resultFromJPQL . size ( ) ) > 0 ) ) |
testEvaluation3 ( ) { java . lang . String query = buildFunction ( ContentFunctions . CONTENT_WITHIN_FUNCTION_NAME , "1" , Constants . TERM_OFFSET_MAP_JEXL_VARIABLE_NAME , "'dog'" , "'cat'" ) ; org . apache . commons . jexl2 . Expression expr = datawave . query . jexl . functions . ContentFunctionsTest . engine . creat... | org . junit . Assert . assertTrue ( datawave . query . jexl . functions . ContentFunctionsTest . expect ( o , false ) ) |
testOf ( ) { "<AssertPlaceHolder>" ; } of ( T ) { return new com . github . davidmoten . util . Optional < T > ( t , true ) ; } | org . junit . Assert . assertEquals ( 1L , ( ( long ) ( com . github . davidmoten . util . Optional . of ( 1L ) . get ( ) ) ) ) |
matchKeysByLevenshteinNoMatchNoLimit ( ) { kyotoDb . set ( "fun" , 1 ) ; kyotoDb . set ( "fan" , 2 ) ; kyotoDb . set ( "bun" , 3 ) ; kyotoDb . set ( "far" , 4 ) ; java . util . Set < java . lang . String > matches = new java . util . HashSet < java . lang . String > ( kyotoDb . matchKeysByLevenshtein ( "xxx" , 1 , fm .... | org . junit . Assert . assertThat ( matches . size ( ) , org . hamcrest . CoreMatchers . is ( 0 ) ) |
serializeReplyWithMethodInvocationException ( ) { joynr . exceptions . MethodInvocationException error = new joynr . exceptions . MethodInvocationException ( "detail<sp>message:<sp>MessageInvocationException" ) ; joynr . Reply reply = new joynr . Reply ( java . util . UUID . randomUUID ( ) . toString ( ) , error ) ; ja... | org . junit . Assert . assertEquals ( reply , receivedReply ) |
excludeRowTest ( ) { this . breakExcludes . add ( com . gs . obevocomparer . util . TestUtil . createBreakExclude ( "B" , "A" , null , null , null ) ) ; this . breakExcludes . add ( com . gs . obevocomparer . util . TestUtil . createBreakExclude ( "C" , "C" , null , null , null ) ) ; this . breakExcluder . excludeBreak... | org . junit . Assert . assertEquals ( 2 , this . getExcludeCount ( ) ) |
testMultipleTranscriptAblations ( ) { final java . lang . String outPath = runJannovarOnVCFLine ( "/sv_header.vcf" , "1\t58649139\t.\tN\t<DEL>\t.\t.\tSVTYPE=DEL;END=59309698" ) ; final java . lang . String expected = "1\t58649139\t.\tN\t<DEL>\t.\t.\tEND=59309698;" + ( ( ( ( "SVANN=transcript_ablation&coding_transcript_... | org . junit . Assert . assertEquals ( expected , actual ) |
matchingPrefix_false_sameLength ( ) { T p = createPath ( ) ; if ( ( segments ) != null ) { com . redhat . lightblue . util . Path compare = p . mutableCopy ( ) . setLast ( "nope" ) ; "<AssertPlaceHolder>" ; } } matchingPrefix ( com . redhat . lightblue . util . Path ) { int n = pattern . numSegments ( ) ; if ( n > ( nu... | org . junit . Assert . assertFalse ( compare . matchingPrefix ( p ) ) |
testFetchByPrimaryKeysWithNoPrimaryKeys ( ) { java . util . Set < java . io . Serializable > primaryKeys = new java . util . HashSet < java . io . Serializable > ( ) ; java . util . Map < java . io . Serializable , com . liferay . portal . workflow . kaleo . model . KaleoInstance > kaleoInstances = _persistence . fetch... | org . junit . Assert . assertTrue ( kaleoInstances . isEmpty ( ) ) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.