input stringlengths 28 18.7k | output stringlengths 39 1.69k |
|---|---|
eq1 ( ) { java . lang . Object a = - 1 ; java . lang . Object b = null ; java . lang . Class < ? > c = com . diffblue . deeptestutils . Reflector . forName ( "com.alibaba.fastjson.JSONPath" ) ; java . lang . reflect . Method m = c . getDeclaredMethod ( "eq" , com . diffblue . deeptestutils . Reflector . forName ( "java... | org . junit . Assert . assertEquals ( false , retval ) |
Sorted_All_Higher ( ) { java . util . Map < java . lang . Object , java . lang . Object > diff = org . javersion . core . Diff . diff ( org . javersion . core . DiffTest . sorted ( 1 , 1 , 2 , 2 ) , org . javersion . core . DiffTest . sorted ( 3 , 3 , 4 , 4 ) ) ; "<AssertPlaceHolder>" ; } | org . junit . Assert . assertThat ( diff , org . hamcrest . Matchers . equalTo ( org . javersion . core . DiffTest . sorted ( 1 , null , 2 , null , 3 , 3 , 4 , 4 ) ) ) |
alwaysPass ( ) { com . vaadin . flow . data . binder . Validator < java . lang . String > alwaysPass = com . vaadin . flow . data . binder . Validator . alwaysPass ( ) ; com . vaadin . flow . data . binder . ValidationResult result = alwaysPass . apply ( "foo" , new com . vaadin . flow . data . binder . ValueContext ( ... | org . junit . Assert . assertFalse ( result . isError ( ) ) |
calcSignatureForByte ( ) { "<AssertPlaceHolder>" ; } calcSignature ( java . lang . Class ) { if ( clazz . isPrimitive ( ) ) { switch ( clazz . getName ( ) ) { case "boolean" : return "Z" ; case "byte" : return "B" ; case "char" : return "byte" 1 ; case "[" 3 : return "byte" 2 ; case "int" : return "[" 7 ; case "long" :... | org . junit . Assert . assertEquals ( "B" , me . tomassetti . turin . resolvers . jdk . ReflectionTypeDefinitionFactory . calcSignature ( byte . class ) ) |
testGenerateStopNarrativesWithConflictingDirections ( ) { org . onebusaway . transit_data_federation . impl . transit_graph . StopEntryImpl stopEntry = stop ( "stopA" , 47.663146 , ( - 122.300928 ) ) ; org . mockito . Mockito . when ( _transitGraphDao . getAllStops ( ) ) . thenReturn ( java . util . Arrays . asList ( (... | org . junit . Assert . assertNull ( narrative . getDirection ( ) ) |
testPutUnMatchDims ( ) { java . util . List < java . util . List < java . lang . Integer > > indices = new java . util . ArrayList ( ) ; indices . add ( java . util . Arrays . asList ( 0 ) ) ; indices . add ( java . util . Arrays . asList ( 0 , 1 ) ) ; org . nd4j . linalg . api . ndarray . INDArray linspace = org . nd4... | org . junit . Assert . assertEquals ( assertion , linspace . slice ( 0 ) . slice ( i ) ) |
testFetchByPrimaryKeyMissing ( ) { long pk = com . liferay . portal . kernel . test . util . RandomTestUtil . nextLong ( ) ; com . liferay . dynamic . data . lists . model . DDLRecord missingDDLRecord = _persistence . fetchByPrimaryKey ( pk ) ; "<AssertPlaceHolder>" ; } fetchByPrimaryKey ( long ) { return com . liferay... | org . junit . Assert . assertNull ( missingDDLRecord ) |
testClusterInitializationException ( ) { hadoopFileSystemLocator = mock ( org . pentaho . bigdata . api . hdfs . HadoopFileSystemLocator . class ) ; when ( hadoopFileSystemLocator . getHadoopFilesystem ( namedCluster ) ) . thenThrow ( new org . pentaho . big . data . api . initializer . ClusterInitializationException (... | org . junit . Assert . assertEquals ( 0 , runtimeTestResultSummary . getRuntimeTestResultEntries ( ) . size ( ) ) |
ruleSuggestionsPipeDelimiter ( ) { com . dremio . dac . explore . model . extract . Selection selection = new com . dremio . dac . explore . model . extract . Selection ( "col" , "1|2|3|4|5" , 1 , 1 ) ; java . util . List < com . dremio . dac . proto . model . dataset . SplitRule > rules = recommender . getRules ( sele... | org . junit . Assert . assertEquals ( 1 , rules . size ( ) ) |
testGetSourceAreaReturnsSameAreaAsCachedProvider ( ) { de . lessvoid . nifty . spi . render . RenderImage image = createMock ( de . lessvoid . nifty . spi . render . RenderImage . class ) ; de . lessvoid . nifty . render . image . areaprovider . AreaProvider areaProvider = createMock ( de . lessvoid . nifty . render . ... | org . junit . Assert . assertEquals ( cachedAreaProvider . getSourceArea ( image ) , areaProvider . getSourceArea ( image ) ) |
testGetValuePathNormal ( ) { prepareGetValue ( "name" , java . lang . String . class ) ; pathVars . put ( "name" , "value" ) ; "<AssertPlaceHolder>" ; } getValue ( java . lang . Object [ ] ) { return ( ( T ) ( args [ paramIndex ] ) ) ; } | org . junit . Assert . assertEquals ( "value" , processor . getValue ( request ) ) |
testCompositeFormatting ( ) { ch . qos . logback . core . pattern . parser . Parser < java . lang . Object > p = new ch . qos . logback . core . pattern . parser . Parser ( "hello%5(XYZ)" ) ; ch . qos . logback . core . pattern . parser . Node t = p . parse ( ) ; ch . qos . logback . core . pattern . parser . Node witn... | org . junit . Assert . assertEquals ( witness , t ) |
testDynamicQueryByProjectionMissing ( ) { com . liferay . portal . kernel . dao . orm . DynamicQuery dynamicQuery = com . liferay . portal . kernel . dao . orm . DynamicQueryFactoryUtil . forClass ( com . liferay . portal . kernel . model . Region . class , _dynamicQueryClassLoader ) ; dynamicQuery . setProjection ( co... | org . junit . Assert . assertEquals ( 0 , result . size ( ) ) |
testSetRadii ( ) { mRoundedBitmapDrawable . setRadii ( new float [ ] { 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 } ) ; verify ( mCallback ) . invalidateDrawable ( mRoundedBitmapDrawable ) ; "<AssertPlaceHolder>" ; } getRadii ( ) { return mCornerRadii ; } | org . junit . Assert . assertArrayEquals ( new float [ ] { 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 } , mRoundedBitmapDrawable . getRadii ( ) , 0 ) |
testNested ( ) { java . util . List < ch . qos . logback . core . pattern . parser . Token > tl = new ch . qos . logback . core . pattern . parser . TokenStream ( "%(%a%(%b))" ) . tokenize ( ) ; java . util . List < ch . qos . logback . core . pattern . parser . Token > witness = new java . util . ArrayList < ch . qos ... | org . junit . Assert . assertEquals ( witness , tl ) |
testParseNegativeX ( ) { java . lang . String source = ( ( ( "{-1" + ( getDecimalCharacter ( ) ) ) + "2323;<sp>1" ) + ( getDecimalCharacter ( ) ) ) + "4343}" ; org . apache . commons . math4 . geometry . euclidean . twod . Vector2D expected = new org . apache . commons . math4 . geometry . euclidean . twod . Cartesian2... | org . junit . Assert . assertEquals ( expected , actual ) |
shouldThrowDarcyExceptionWhenAnIOExceptionOccurs ( ) { com . redhat . darcy . webdriver . internal . TargetedWebDriver driver = mock ( com . redhat . darcy . webdriver . internal . TargetedWebDriver . class ) ; com . redhat . darcy . web . api . Browser browser = new com . redhat . darcy . webdriver . WebDriverBrowser ... | org . junit . Assert . assertThat ( "Expected<sp>DarcyException<sp>to<sp>be<sp>thrown" , e . getClass ( ) , org . hamcrest . Matchers . equalTo ( com . redhat . darcy . ui . DarcyException . class ) ) |
testGetDefinition ( ) { org . apache . tiles . definition . dao . DefinitionDAO < java . util . Locale > dao = createMock ( org . apache . tiles . definition . dao . DefinitionDAO . class ) ; org . apache . tiles . locale . LocaleResolver localeResolver = createMock ( org . apache . tiles . locale . LocaleResolver . cl... | org . junit . Assert . assertEquals ( definition , factory . getDefinition ( "myDefinition" , request ) ) |
testDoesOrganizationAssignedToTenantExist_notExists ( ) { doReturn ( 0L ) . when ( tenantDao ) . doesOrganizationForTenantExist ( any ( org . oscm . domobjects . Tenant . class ) ) ; boolean result = tenantServiceLocalBean . doesOrganizationAssignedToTenantExist ( new org . oscm . domobjects . Tenant ( ) ) ; "<AssertPl... | org . junit . Assert . assertFalse ( result ) |
testSerialization ( ) { org . jfree . chart . labels . BoxAndWhiskerToolTipGenerator g1 = new org . jfree . chart . labels . BoxAndWhiskerToolTipGenerator ( ) ; org . jfree . chart . labels . BoxAndWhiskerToolTipGenerator g2 = ( ( org . jfree . chart . labels . BoxAndWhiskerToolTipGenerator ) ( org . jfree . chart . Te... | org . junit . Assert . assertEquals ( g1 , g2 ) |
testToJson ( ) { org . apache . tajo . datum . Datum d = org . apache . tajo . datum . DatumFactory . createTimestampDatumWithUnixTime ( org . apache . tajo . datum . TestTimestampDatum . unixtime ) ; org . apache . tajo . datum . Datum copy = org . apache . tajo . json . CommonGsonHelper . fromJson ( d . toJson ( ) , ... | org . junit . Assert . assertEquals ( d , copy ) |
someEnum ( ) { java . lang . Class < ? > cls = classSubstitutor . getClass ( org . apache . isis . core . metamodel . specloader . classsubstitutor . ClassSubstitutorTest_getClass . SomeDomainObject . SomeEnum . class ) ; "<AssertPlaceHolder>" ; } getClass ( java . lang . Class ) { if ( cls == null ) { return null ; } ... | org . junit . Assert . assertEquals ( org . apache . isis . core . metamodel . specloader . classsubstitutor . ClassSubstitutorTest_getClass . SomeDomainObject . SomeEnum . class , cls ) |
synch1XReplicationService ( ) { setUp ( this . nodeCount ) ; this . replicationTargetFactoryLink = Replication1xExampleFactoryService . SELF_LINK ; this . host . joinNodesAndVerifyConvergence ( ( ( this . host . getPeerCount ( ) ) - 1 ) ) ; com . vmware . xenon . services . common . NodeGroupService . NodeGroupConfig c... | org . junit . Assert . assertEquals ( replicationCount , 1 ) |
testIsRelatedSuggestions ( ) { _displayBuilder . setRelatedQueriesSuggestions ( java . util . Arrays . asList ( com . liferay . portal . kernel . test . util . RandomTestUtil . randomString ( ) ) ) ; _displayBuilder . setRelatedQueriesSuggestionsEnabled ( true ) ; com . liferay . portal . search . web . internal . sugg... | org . junit . Assert . assertTrue ( suggestionsPortletDisplayContext . isRelatedQueriesSuggestionsEnabled ( ) ) |
testToHashtable ( ) { java . util . Map < java . lang . String , java . lang . Object > map = new org . apache . camel . util . CaseInsensitiveMap ( ) ; map . put ( "foo" , "bar" ) ; java . util . Map < java . lang . String , java . lang . Object > out = org . apache . camel . converter . CollectionConverter . toHashta... | org . junit . Assert . assertEquals ( 1 , out . size ( ) ) |
testTwoNull ( ) { org . openscience . cdk . tools . diff . tree . IDifference result = org . openscience . cdk . tools . diff . tree . IntegerDifference . construct ( "Foo" , null , null ) ; "<AssertPlaceHolder>" ; } construct ( java . lang . String , java . lang . Integer , java . lang . Integer ) { if ( ( first == nu... | org . junit . Assert . assertNull ( result ) |
cyclicDependencies ( ) { org . pf4j . PluginDescriptor pd1 = new org . pf4j . DefaultPluginDescriptor ( ) . setPluginId ( "p1" ) . setPluginVersion ( "0.0.0" ) . setDependencies ( "p2" ) ; org . pf4j . PluginDescriptor pd2 = new org . pf4j . DefaultPluginDescriptor ( ) . setPluginId ( "p2" ) . setPluginVersion ( "0.0.0... | org . junit . Assert . assertTrue ( result . hasCyclicDependency ( ) ) |
testAppAttemptLocalityStatistics ( ) { org . apache . hadoop . conf . Configuration conf = org . apache . hadoop . yarn . server . resourcemanager . scheduler . capacity . TestUtils . getConfigurationWithMultipleQueues ( new org . apache . hadoop . conf . Configuration ( false ) ) ; conf . setBoolean ( YarnConfiguratio... | org . junit . Assert . assertArrayEquals ( new int [ ] [ ] { new int [ ] { 1 , 0 , 0 } , new int [ ] { 0 , 1 , 0 } , new int [ ] { 0 , 0 , 1 } } , attemptMetrics . getLocalityStatistics ( ) ) |
is_interrupting_if_interrupting_catch_event ( ) { catchEvent . setInterrupting ( true ) ; "<AssertPlaceHolder>" ; } isInterrupting ( ) { return interrupting ; } | org . junit . Assert . assertTrue ( catchEvent . isInterrupting ( ) ) |
testDataObjectAOImpl ( ) { org . irods . jargon . core . connection . IRODSProtocolManager irodsConnectionManager = org . irods . jargon . core . connection . IRODSSimpleProtocolManager . instance ( ) ; org . irods . jargon . core . connection . IRODSAccount irodsAccount = org . irods . jargon . core . pub . DataObject... | org . junit . Assert . assertNotNull ( dataObjectAO ) |
testSetPaintFilterBitmap ( ) { mRoundedCornersDrawable . setPaintFilterBitmap ( true ) ; verify ( mCallback ) . invalidateDrawable ( mRoundedCornersDrawable ) ; "<AssertPlaceHolder>" ; } getPaintFilterBitmap ( ) { return mPaintFilterBitmap ; } | org . junit . Assert . assertTrue ( mRoundedCornersDrawable . getPaintFilterBitmap ( ) ) |
assertPreconditions ( ) { "<AssertPlaceHolder>" ; } getInstrumentation ( ) { return com . uphyca . testing . Infrastructure . sInstrumentation . get ( ) ; } | org . junit . Assert . assertNotNull ( getInstrumentation ( ) ) |
testSubmitTextValue ( ) { browser . get ( ( ( contextPath . toExternalForm ( ) ) + "submit.jsf" ) ) ; input ( ) . setTestedValue ( getTestedValue ( ) ) ; guardHttp ( httpSubmitBtn ) . click ( ) ; waitModel ( ) . until ( ) . element ( output ) . is ( ) . visible ( ) ; "<AssertPlaceHolder>" ; } getTestedValueResponse ( )... | org . junit . Assert . assertEquals ( getTestedValueResponse ( ) , output . getText ( ) ) |
testSelectLikeSingle_WildcardMatch ( ) { createArtistsDataSet ( ) ; org . apache . cayenne . query . SelectQuery < org . apache . cayenne . testdo . testmap . Artist > query = new org . apache . cayenne . query . SelectQuery ( org . apache . cayenne . testdo . testmap . Artist . class ) ; org . apache . cayenne . exp .... | org . junit . Assert . assertEquals ( 1 , objects . size ( ) ) |
testUnrecognizedCommandDataHdrState ( ) { com . dumbster . smtp . SmtpRequest request = new com . dumbster . smtp . SmtpRequest ( SmtpActionType . UNRECOG , null , SmtpState . DATA_HDR ) ; com . dumbster . smtp . SmtpResponse response = request . execute ( ) ; "<AssertPlaceHolder>" ; } getCode ( ) { return code ; } | org . junit . Assert . assertThat ( response . getCode ( ) , org . hamcrest . Matchers . is ( ( - 1 ) ) ) |
testFlowWithMapLoopsWithEmptyBreak ( ) { final java . net . URI resource = getClass ( ) . getResource ( "/yaml/loops/loop_with_empty_break_with_map.sl" ) . toURI ( ) ; final java . net . URI operation1 = getClass ( ) . getResource ( "/yaml/loops/operation_that_fails_when_value_is_2.sl" ) . toURI ( ) ; java . util . Set... | org . junit . Assert . assertEquals ( 3 , actualSteps . size ( ) ) |
testUpdateEmptyList ( ) { deleteAllIn ( provider ) ; ddf . catalog . operation . UpdateResponse response = provider . update ( new ddf . catalog . operation . impl . UpdateRequestImpl ( new java . util . ArrayList < java . util . Map . Entry < java . io . Serializable , ddf . catalog . data . Metacard > > ( ) , ddf . c... | org . junit . Assert . assertEquals ( 0 , response . getUpdatedMetacards ( ) . size ( ) ) |
testRepeating ( ) { java . lang . String good = "" ; java . lang . String html = "" ; for ( int i = 0 ; i < 10 ; ++ i ) { html += "Ç" ; good += "" ; } java . lang . String output = edu . ucla . sspace . text . StringUtils . unescapeHTML ( html ) ; "<AssertPlaceHolder>" ; } unescapeHTML ( java . lang . String ) {... | org . junit . Assert . assertEquals ( good , output ) |
load ( ) { java . net . URL resource = getClass ( ) . getResource ( "sample.png" ) ; java . awt . Image image = tray . ImageLoader . load ( resource ) ; int actualWidth = image . getWidth ( null ) ; int samplePngKnownSize = 417 ; "<AssertPlaceHolder>" ; } load ( java . net . URL ) { try { if ( imageURL . getFile ( ) . ... | org . junit . Assert . assertEquals ( samplePngKnownSize , actualWidth ) |
localBindingThreadPoolKeepAlive ( ) { org . ebayopensource . turmeric . runtime . common . utils . ThreadPoolConfig tpConf = org . ebayopensource . turmeric . runtime . sif . impl . internal . pipeline . LocalBindingThreadPool . getInstance ( ) . getConfiguration ( ) ; org . ebayopensource . turmeric . runtime . sif . ... | org . junit . Assert . assertEquals ( keepAliveFromConf , keepAliveFromStats ) |
testSaveAttributes ( ) { final java . util . ArrayList < org . oscm . provisioning . data . ServiceAttribute > list = new java . util . ArrayList ( ) ; org . oscm . provisioning . data . ServiceAttribute attr = new org . oscm . provisioning . data . ServiceAttribute ( ) ; attr . setAttributeId ( "TEST" ) ; attr . setVa... | org . junit . Assert . assertEquals ( 0 , result . getRc ( ) ) |
testCleanPasswordFromRequestStringMatchedAtMiddleDoubleQuote ( ) { final java . lang . String input = "\"username=foo&password=bar&goo=sdf\"" ; final java . lang . String expected = "\"username=foo&goo=sdf\"" ; final java . lang . String result = com . cloud . utils . StringUtils . cleanString ( input ) ; "<AssertPlace... | org . junit . Assert . assertEquals ( result , expected ) |
testCharCharMakesInt ( ) { org . jboss . errai . codegen . ArithmeticExpression expr = org . jboss . errai . codegen . util . Arith . expr ( ( ( char ) ( 1 ) ) , ArithmeticOperator . Addition , ( ( char ) ( 3 ) ) ) ; "<AssertPlaceHolder>" ; } get ( java . lang . String ) { return org . jboss . errai . codegen . meta . ... | org . junit . Assert . assertEquals ( org . jboss . errai . codegen . meta . MetaClassFactory . get ( int . class ) , expr . getType ( ) ) |
testParseZeroReal ( ) { java . lang . String source = ( ( ( "0" + ( getDecimalCharacter ( ) ) ) + "0<sp>-<sp>1" ) + ( getDecimalCharacter ( ) ) ) + "4343i" ; org . hipparchus . complex . Complex expected = new org . hipparchus . complex . Complex ( 0.0 , ( - 1.4343 ) ) ; org . hipparchus . complex . Complex actual = co... | org . junit . Assert . assertEquals ( expected , actual ) |
testGetPropertyStringListForNull ( ) { java . lang . String key = null ; org . apache . ranger . common . PropertiesUtil . getPropertyStringList ( key ) ; "<AssertPlaceHolder>" ; } getPropertyStringList ( java . lang . String ) { if ( key == null ) { return null ; } java . lang . String value = org . apache . ranger . ... | org . junit . Assert . assertNull ( key ) |
TestSha1Case4 ( ) { pkgYkneoOath . OathObj obj = new pkgYkneoOath . OathObj ( ) ; obj . setKey ( new byte [ ] { 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 10 , 11 , 12 , 13 , 14 , 15 , 16 , 17 , 18 , 19 , 20 , 21 , 22 , 23 , 24 , 25 } , ( ( short ) ( 0 ) ) , ( ( byte ) ( ( pkgYkneoOath . OathObj . TOTP_TYPE ) | ( pkgYkneoOath... | org . junit . Assert . assertArrayEquals ( expected , res ) |
testCheckSimpleRequestType ( ) { com . erudika . para . utils . filters . MockHttpServletRequest request = new com . erudika . para . utils . filters . MockHttpServletRequest ( ) ; request . setHeader ( CORSFilter . REQUEST_HEADER_ORIGIN , TestConfigs . HTTP_TOMCAT_APACHE_ORG ) ; request . setMethod ( "GET" ) ; com . e... | org . junit . Assert . assertEquals ( CORSFilter . CORSRequestType . SIMPLE , requestType ) |
testNegative ( ) { com . orientechnologies . orient . core . sql . executor . OResultSet results = com . orientechnologies . orient . core . sql . executor . OIfStatementExecutionTest . db . command ( "if(1=2){<sp>select<sp>1<sp>as<sp>a;<sp>}" ) ; "<AssertPlaceHolder>" ; results . close ( ) ; } hasNext ( ) { return thi... | org . junit . Assert . assertFalse ( results . hasNext ( ) ) |
testAsInt ( ) { org . apache . tajo . datum . Datum d = org . apache . tajo . datum . DatumFactory . createBit ( ( ( byte ) ( 5 ) ) ) ; "<AssertPlaceHolder>" ; } asInt4 ( ) { throw new org . apache . tajo . datum . exception . InvalidCastException ( ( ( type ) + "<sp>cannot<sp>be<sp>casted<sp>to<sp>INT<sp>type" ) ) ; } | org . junit . Assert . assertEquals ( 5 , d . asInt4 ( ) ) |
test_freeze_partition_double ( ) { com . noctarius . snowcast . impl . SequencerDefinition definition = new com . noctarius . snowcast . impl . SequencerDefinition ( "empty" , com . noctarius . snowcast . SnowcastEpoch . byTimestamp ( 1 ) , 128 , ( ( short ) ( 1 ) ) ) ; com . hazelcast . nio . Address address1 = new co... | org . junit . Assert . assertNotNull ( logicalNodeId ) |
testOr ( ) { java . util . List < java . lang . Integer > cl = toList ( org . apache . solr . search . xjoin . Combinations . or ( a , b ) ) ; "<AssertPlaceHolder>" ; } | org . junit . Assert . assertEquals ( java . util . Arrays . asList ( cs ) , cl ) |
testTestResourceQueryReturnModels ( ) { com . iciql . Db db = com . iciql . test . IciqlSuite . openNewDb ( Mode . TEST ) ; db . insertAll ( com . iciql . test . models . Product . getList ( ) ) ; db . insertAll ( com . iciql . test . models . Order . getList ( ) ) ; db . setDaoStatementProvider ( new com . iciql . Dao... | org . junit . Assert . assertEquals ( 2 , products . length ) |
AccessInstanceVariableIndirect_SuperSuperClass ( ) { java . lang . String fromClass = "domain.indirect.violatingfrom.AccessInstanceVariableIndirect_SuperSuperClass" ; java . lang . String toClass = "technology.direct.dao.CallInstanceSuperClassDAO" ; java . util . ArrayList < java . lang . String > typesToFind = new jav... | org . junit . Assert . assertTrue ( areDependencyTypesDetected ( fromClass , toClass , typesToFind , true ) ) |
test001 ( ) { org . kapott . hbci . GV . HBCIJobImpl job = ( ( org . kapott . hbci . GV . HBCIJobImpl ) ( handler . newJob ( "HKUEB:0:5+0001956434:EUR:280:30060601+0001956434:EUR:280:30060601+TEST++0,01:EUR+51++TEST'" 0 ) ) ) ; job . setParam ( "src" , passport . getAccounts ( ) [ 0 ] ) ; job . setParam ( "dst" , passp... | org . junit . Assert . assertEquals ( "HKUEB:0:5+0001956434:EUR:280:30060601+0001956434:EUR:280:30060601+TEST++0,01:EUR+51++TEST'" , msg ) |
testZoekHisVolledigRootObjectVoorPersoonBerichtMetReferentieId ( ) { final nl . bzk . brp . bijhouding . business . stappen . context . BijhoudingBerichtContext context = new nl . bzk . brp . bijhouding . business . stappen . context . BijhoudingBerichtContext ( new nl . bzk . brp . webservice . business . stappen . Be... | org . junit . Assert . assertEquals ( persoonHisVolledig , resultaat ) |
should_extend_process_context_sequence_dictionary_when_encountering_named_contig_partner ( ) { au . edu . wehi . idsv . GenomicProcessingContext pc = getContext ( ) ; int seqCount = pc . getDictionary ( ) . size ( ) ; new au . edu . wehi . idsv . VariantContextDirectedEvidence ( pc , AES ( ) , minimalVariant ( ) . star... | org . junit . Assert . assertEquals ( ( seqCount + 1 ) , pc . getDictionary ( ) . size ( ) ) |
shouldEnableIncrementalBuildWhenConfigured ( ) { victim . setIncrementalBuildEnabled ( true ) ; "<AssertPlaceHolder>" ; } isIncrementalBuild ( ) { return ( buildContext ) != null ? ( buildContext . isIncremental ( ) ) || ( incrementalBuildEnabled ) : incrementalBuildEnabled ; } | org . junit . Assert . assertTrue ( victim . isIncrementalBuild ( ) ) |
testConsistency ( ) { java . util . List < eu . abc4trust . cryptoEngine . user . PseudonymSerializerTest . PwmWithName > clist = new java . util . ArrayList < eu . abc4trust . cryptoEngine . user . PseudonymSerializerTest . PwmWithName > ( ) ; clist . add ( new eu . abc4trust . cryptoEngine . user . PseudonymSerialize... | org . junit . Assert . assertTrue ( ok ) |
testAndTemporalBefore ( ) { final org . opengis . temporal . Instant start = instant ( "2016-01-01T00:00:00.000-0500" ) ; final org . opengis . filter . Filter f = ff . and ( ff . bbox ( "geom" , ( - 10 ) , ( - 10 ) , 10 , 10 , null ) , ff . before ( ff . literal ( "someDate" ) , ff . literal ( start ) ) ) ; final org ... | org . junit . Assert . assertEquals ( new org . locationtech . jts . geom . Envelope ( ( - 10 ) , 10 , ( - 10 ) , 10 ) , env ) |
determineSegmentCount_override1 ( ) { int _segs = org . cache2k . core . InternalCache2kBuilder . determineSegmentCount ( false , 12 , true , 1000000 , 1 ) ; "<AssertPlaceHolder>" ; } determineSegmentCount ( boolean , int , boolean , long , int ) { int _segmentCount = 1 ; if ( _availableProcessors > 1 ) { _segmentCount... | org . junit . Assert . assertEquals ( 1 , _segs ) |
testOnManagedObjectKeys ( ) { com . sun . sgs . test . app . util . TestScalableHashMap . txnScheduler . runTask ( new com . sun . sgs . test . util . TestAbstractKernelRunnable ( ) { public void run ( ) throws com . sun . sgs . test . app . util . Exception { java . util . Map < com . sun . sgs . test . app . util . T... | org . junit . Assert . assertEquals ( control , test ) |
preloadMultipleServices ( ) { preloader . tasks . add ( new org . apache . shindig . gadgets . preload . ConcurrentPreloaderServiceTest . TestPreloadCallable ( new org . apache . shindig . gadgets . preload . ConcurrentPreloaderServiceTest . DataPreload ( org . apache . shindig . gadgets . preload . ConcurrentPreloader... | org . junit . Assert . assertEquals ( com . google . common . collect . ImmutableList . < java . lang . Object > of ( com . google . common . collect . ImmutableMap . of ( org . apache . shindig . gadgets . preload . ConcurrentPreloaderServiceTest . PRELOAD_STRING_KEY , org . apache . shindig . gadgets . preload . Conc... |
testFatCat2 ( ) { java . lang . String result = org . biojava . nbio . structure . align . multiple . util . MultipleAlignmentWriter . toFatCat ( alignment2 ) ; java . io . FileReader file = new java . io . FileReader ( "src/test/resources/testMSTA2.fatcat" ) ; java . io . BufferedReader reader = new java . io . Buffer... | org . junit . Assert . assertEquals ( expected , result ) |
shouldNotReturnEncountersWithCodedObsValue ( ) { executeDataSet ( "encounterWithCodedObs1_9.xml" ) ; org . springframework . mock . web . MockHttpServletRequest req = request ( RequestMethod . GET , getURI ( ) ) ; req . addParameter ( "s" , "byObs" ) ; req . addParameter ( "patient" , RestTestConstants1_9 . PATIENT_WIT... | org . junit . Assert . assertEquals ( 0 , encounters . size ( ) ) |
initWithXmlFile ( ) { org . ff4j . store . FeatureStoreEhCache storeEHcache = new org . ff4j . store . FeatureStoreEhCache ( "ehcache.xml" ) ; "<AssertPlaceHolder>" ; } | org . junit . Assert . assertNotNull ( storeEHcache ) |
testGetGroupsNull ( ) { java . util . List < java . lang . String > tenants = com . vmware . admiral . common . util . QueryUtil . getGroups ( null ) ; "<AssertPlaceHolder>" ; } getGroups ( java . util . List ) { if ( ( tenantLinks == null ) || ( tenantLinks . isEmpty ( ) ) ) { return tenantLinks ; } return tenantLinks... | org . junit . Assert . assertNull ( tenants ) |
testTimestamp ( ) { "<AssertPlaceHolder>" ; } getTimestamp ( ) { return timestamp ; } | org . junit . Assert . assertEquals ( date , position . getTimestamp ( ) ) |
testGetLog ( ) { org . openscience . cdk . inchi . InChIToStructure parser = new org . openscience . cdk . inchi . InChIToStructure ( "InChI=1S/CH5/h1H4" , org . openscience . cdk . DefaultChemObjectBuilder . getInstance ( ) ) ; parser . getAtomContainer ( ) ; java . lang . String message = parser . getMessage ( ) ; "<... | org . junit . Assert . assertNotNull ( message ) |
testSerialization ( ) { org . jfree . data . time . TimePeriodValuesCollection c1 = new org . jfree . data . time . TimePeriodValuesCollection ( ) ; org . jfree . data . time . TimePeriodValuesCollection c2 = ( ( org . jfree . data . time . TimePeriodValuesCollection ) ( org . jfree . chart . TestUtils . serialised ( c... | org . junit . Assert . assertEquals ( c1 , c2 ) |
testOngeldigeAangewezenObjectOfVoorkomen_GeenVoorkomenSleutel ( ) { final nl . bzk . brp . bijhouding . bericht . model . BijhoudingPersoon partner = mock ( nl . bzk . brp . bijhouding . bericht . model . BijhoudingPersoon . class ) ; when ( bericht . getEntiteitVoorObjectSleutel ( nl . bzk . brp . bijhouding . bericht... | org . junit . Assert . assertNull ( actie . getOngeldigAangewezenObjectOfVoorkomen ( ) ) |
shouldRejectPathBiggerthen128Chars ( ) { hm = org . openstack . atlas . api . validation . validators . HealthMonitorValidatorTest . whenValidatingPut . initHealthMonitor ( null , org . openstack . atlas . api . validation . validators . HTTP , "10" , "20" , "10" , bigStr , ".*" , ".*" ) ; result = hmv . validate ( hm ... | org . junit . Assert . assertFalse ( resultMessage ( result , org . openstack . atlas . api . validation . validators . PUT ) , result . passedValidation ( ) ) |
testServerException ( ) { "<AssertPlaceHolder>" ; com . alibaba . dubbo . rpc . RpcInvocation invocation = new com . alibaba . dubbo . rpc . RpcInvocation ( ) ; invocation . setMethodName ( "echoString" ) ; invocation . setParameterTypes ( new java . lang . Class < ? > [ ] { java . lang . String . class } ) ; java . la... | org . junit . Assert . assertNotNull ( invoker ) |
testHasColumnReturnsTrueWithExistingColumn ( ) { _mockTableWithColumn ( com . liferay . portal . kernel . dao . db . DBInspectorUnitTest . _TABLE_NAME , com . liferay . portal . kernel . dao . db . DBInspectorUnitTest . _COLUMN_NAME ) ; com . liferay . portal . kernel . dao . db . DBInspector dbInspector = new com . li... | org . junit . Assert . assertTrue ( dbInspector . hasColumn ( com . liferay . portal . kernel . dao . db . DBInspectorUnitTest . _TABLE_NAME , com . liferay . portal . kernel . dao . db . DBInspectorUnitTest . _COLUMN_NAME ) ) |
file_append ( ) { java . io . File file = folder . newFile ( ) ; ezvcard . util . Utf8Writer writer = new ezvcard . util . Utf8Writer ( file ) ; writer . write ( "one" ) ; writer . close ( ) ; writer = new ezvcard . util . Utf8Writer ( file , false ) ; writer . write ( "two" ) ; writer . close ( ) ; writer = new ezvcar... | org . junit . Assert . assertEquals ( expected , actual ) |
testGetGreetingCorrectActionCreate ( ) { when ( mockEditor . composeEmail ( ) ) . thenReturn ( "test<sp>email" ) ; java . lang . String reply = emailController . getGreeting ( "create" ) ; "<AssertPlaceHolder>" ; } composeEmail ( ) { return "hola<sp>mundo" ; } | org . junit . Assert . assertEquals ( "test<sp>email" , reply ) |
testSRL ( ) { edu . emory . clir . clearnlp . reader . TSVReader reader = new edu . emory . clir . clearnlp . reader . TSVReader ( 0 , 1 , 2 , 3 , 4 , 5 , 6 , 7 ) ; reader . open ( new java . io . FileInputStream ( "src/test/resources/dependency/dependency.cnlp" ) ) ; edu . emory . clir . clearnlp . dependency . DEPTre... | org . junit . Assert . assertEquals ( str , tree . toString ( DEPNode :: toStringSRL ) ) |
test4 ( ) { java . util . ArrayList < java_programs . Node > empty = new java . util . ArrayList < java_programs . Node > ( ) ; java_programs . Node nodef = new java_programs . Node ( "F" ) ; java . lang . Boolean result = java_programs . BREADTH_FIRST_SEARCH . breadth_first_search ( nodef , nodef ) ; java . lang . Str... | org . junit . Assert . assertEquals ( "Path<sp>found!" , resultStr ) |
testClientPut ( ) { com . streamsets . lib . security . http . RestClient client = org . mockito . Mockito . spy ( com . streamsets . lib . security . http . RestClient . builder ( "http://foo" ) . build ( ) ) ; com . streamsets . lib . security . http . RestClient . Response response = org . mockito . Mockito . mock (... | org . junit . Assert . assertEquals ( response , client . put ( data ) ) |
parseWithProtocolAndHostAndOneQueryParameter ( ) { final com . azure . common . implementation . http . UrlBuilder builder = com . azure . common . implementation . http . UrlBuilder . parse ( "https://www.bing.com?a=1" ) ; "<AssertPlaceHolder>" ; } toString ( ) { return this . value ; } | org . junit . Assert . assertEquals ( "https://www.bing.com?a=1" , builder . toString ( ) ) |
testUnsupportedPolymorphicDeclaration ( ) { java . lang . String drl = "package<sp>org.drools.test;<sp>\n" + ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( "" + "declare<sp>Foo<sp>end<sp>\n" ) + "declare<sp>Bar<sp>end<sp>\n" ) + "" ) + "" ) + "rule<sp>X<sp>when\n" ) + "when\n" 5 ) + "when\n" 3 ) + "<sp>$x<sp>:<sp>Bar()<sp>\n" ) +... | org . junit . Assert . assertTrue ( kb . hasErrors ( ) ) |
testGetDistinctKeys_LessThanInclusiveAscending ( ) { com . googlecode . cqengine . index . sqlite . ConnectionManager connectionManager = temporaryInMemoryDatabase . getConnectionManager ( true ) ; com . googlecode . cqengine . index . sqlite . SQLiteIndex < java . lang . String , com . googlecode . cqengine . testutil... | org . junit . Assert . assertEquals ( expected , actual ) |
test_shouldNotRemoveBlankName ( ) { org . springframework . shell . core . CommandResult result = removeVolume ( "<sp>" ) ; "<AssertPlaceHolder>" ; } isFailedCommand ( ) { return new fr . treeptik . cloudunit . cli . integration . ShellMatchers . CommandStatusMatcher ( false ) ; } | org . junit . Assert . assertThat ( result , isFailedCommand ( ) ) |
matchMediaDeviceTest ( ) { com . itextpdf . styledxmlparser . css . media . MediaDeviceDescription deviceDescription = new com . itextpdf . styledxmlparser . css . media . MediaDeviceDescription ( "all" ) ; deviceDescription . setHeight ( 450 ) ; deviceDescription . setWidth ( 600 ) ; com . itextpdf . styledxmlparser .... | org . junit . Assert . assertTrue ( rule . matchMediaDevice ( deviceDescription ) ) |
whenCreatedWithInt_notEqualAnotherWithDifferentValue ( ) { io . kubernetes . client . custom . IntOrString intOrString1 = new io . kubernetes . client . custom . IntOrString ( 17 ) ; io . kubernetes . client . custom . IntOrString intOrString2 = new io . kubernetes . client . custom . IntOrString ( 13 ) ; "<AssertPlace... | org . junit . Assert . assertThat ( intOrString1 , org . hamcrest . Matchers . not ( org . hamcrest . Matchers . equalTo ( intOrString2 ) ) ) |
testCapacity0Read ( ) { io . atomix . storage . buffer . Buffer buffer = createBuffer ( 0 , 1024 ) ; "<AssertPlaceHolder>" ; } readLong ( ) { return buffer . readLong ( ) ; } | org . junit . Assert . assertEquals ( 0 , buffer . readLong ( ) ) |
shouldRaiseNoConstraintViolation ( ) { org . agoncal . book . javaee7 . chapter03 . ex02 . Book02 book = new org . agoncal . book . javaee7 . chapter03 . ex02 . Book02 ( "H2G2" , 12.5F , "Best<sp>IT<sp>Scifi<sp>Book" , "1234-4566-9876" , 247 , false ) ; java . util . Set < javax . validation . ConstraintViolation < org... | org . junit . Assert . assertEquals ( 0 , violations . size ( ) ) |
testDynamicQueryByPrimaryKeyMissing ( ) { com . liferay . portal . kernel . dao . orm . DynamicQuery dynamicQuery = com . liferay . portal . kernel . dao . orm . DynamicQueryFactoryUtil . forClass ( com . liferay . calendar . model . CalendarResource . class , _dynamicQueryClassLoader ) ; dynamicQuery . add ( com . lif... | org . junit . Assert . assertEquals ( 0 , result . size ( ) ) |
convertFromProtonNull ( ) { final java . lang . String linkName = "linkName" ; final tests . unit . com . microsoft . azure . sdk . iot . device . transport . amqps . AmqpsSessionManager amqpsSessionManager = new tests . unit . com . microsoft . azure . sdk . iot . device . transport . amqps . AmqpsSessionManager ( moc... | org . junit . Assert . assertNull ( amqpsConvertFromProtonReturnValue ) |
testStringOnly ( ) { net . kyori . text . Component component = TextParsers . XML . parse ( "foo" ) ; net . kyori . text . TextComponent expected = net . kyori . text . TextComponent . of ( "foo" ) ; "<AssertPlaceHolder>" ; } parse ( java . lang . String ) { try { source = ( "<span>" + source ) + "</span>" ; javax . xm... | org . junit . Assert . assertEquals ( expected , component ) |
testGroupOneNullCollection ( ) { "<AssertPlaceHolder>" ; } groupOne ( java . lang . Iterable , java . lang . String ) { if ( com . feilong . core . Validator . isNullOrEmpty ( beanIterable ) ) { return java . util . Collections . emptyMap ( ) ; } org . apache . commons . lang3 . Validate . notBlank ( propertyName , "pr... | org . junit . Assert . assertEquals ( emptyMap ( ) , com . feilong . core . util . CollectionsUtil . groupOne ( null , "name" ) ) |
testAddAndChangeMessae ( ) { int size = client . getMessages ( ) . size ( ) ; java . lang . String changedText = "changed" ; client . addMessage ( ) ; client . editSpecialMessage ( size , changedText ) ; "<AssertPlaceHolder>" ; } getMessages ( ) { return messages ; } | org . junit . Assert . assertTrue ( client . getMessages ( ) . get ( size ) . getText ( ) . equals ( changedText ) ) |
testColumnVectorOpsFortran ( ) { org . nd4j . linalg . api . ndarray . INDArray twoByTwo = org . nd4j . linalg . factory . Nd4j . create ( new float [ ] { 1 , 2 , 3 , 4 } , new long [ ] { 2 , 2 } ) ; org . nd4j . linalg . api . ndarray . INDArray toAdd = org . nd4j . linalg . factory . Nd4j . create ( new float [ ] { 1... | org . junit . Assert . assertEquals ( assertion , twoByTwo ) |
removeExpiredReservationsDoesNotRemoveAnythingIfNothingHasExpired ( ) { int num = reservedValueStore . getCount ( ) ; reservedValueStore . removeExpiredReservations ( ) ; "<AssertPlaceHolder>" ; } getCount ( ) { javax . persistence . criteria . CriteriaBuilder builder = getCriteriaBuilder ( ) ; return getCount ( builde... | org . junit . Assert . assertEquals ( num , reservedValueStore . getCount ( ) ) |
isElementConsentedOneConsentAffectsAllFields ( ) { final org . xwiki . uiextension . UIExtension extension = mock ( org . xwiki . uiextension . UIExtension . class ) ; when ( extension . getId ( ) ) . thenReturn ( org . phenotips . consents . internal . DefaultConsentAuthorizerTest . FIELD_A_LABEL ) ; final org . pheno... | org . junit . Assert . assertFalse ( isElementConsented ) |
mustReleaseReadLockWaitersOnStop ( ) { clientA . acquireExclusive ( org . neo4j . kernel . impl . locking . StopCompatibility . TRACER , org . neo4j . kernel . impl . locking . ResourceTypes . NODE , 1L ) ; clientB . acquireExclusive ( org . neo4j . kernel . impl . locking . StopCompatibility . TRACER , org . neo4j . k... | org . junit . Assert . assertEquals ( 0 , lockCountVisitor . getLockCount ( ) ) |
testIsPortletCSRFWhitelistedForMVCActionCommand ( ) { org . springframework . mock . web . MockHttpServletRequest mockHttpServletRequest = new org . springframework . mock . web . MockHttpServletRequest ( ) ; java . lang . String namespace = com . liferay . portal . kernel . util . PortalUtil . getPortletNamespace ( Te... | org . junit . Assert . assertTrue ( com . liferay . portal . kernel . security . auth . AuthTokenWhitelistUtil . isPortletCSRFWhitelisted ( mockHttpServletRequest , portlet ) ) |
canDetermineContainedTypeOfAnOptionalCollection ( ) { @ com . facebook . buck . util . SuppressWarnings ( "unused" ) class Contained { public java . util . Optional < java . util . Set < ? extends java . util . Calendar > > field ; } java . lang . reflect . Field field = Contained . class . getField ( "field" ) ; java ... | org . junit . Assert . assertEquals ( java . util . Calendar . class , baseType ) |
testDiToAvroByte ( ) { org . apache . avro . Schema expectedSchema = org . talend . daikon . avro . AvroUtils . _byte ( ) ; org . apache . avro . Schema designSchema = org . apache . avro . SchemaBuilder . builder ( ) . record ( "Record" ) . fields ( ) . name ( "booleanField" ) . type ( ) . booleanType ( ) . noDefault ... | org . junit . Assert . assertEquals ( expectedSchema , actualSchema ) |
save_and_get_denormalized_support_count_json_data ( ) { java . lang . Long initiativeId = testHelper . create ( new fi . om . initiative . dao . TestHelper . InitiativeDraft ( userId ) ) ; java . lang . String denormalizedData = "some<sp>denormalized<sp>data" ; supportVoteDao . saveDenormalizedSupportCountDataJson ( in... | org . junit . Assert . assertThat ( supportVoteDao . getDenormalizedSupportCountDataJson ( initiativeId ) , org . hamcrest . core . Is . is ( denormalizedData ) ) |
cosNullBeadsItem ( ) { org . sejda . sambox . pdmodel . PDPage victim = new org . sejda . sambox . pdmodel . PDPage ( ) ; org . sejda . sambox . cos . COSArray beads = new org . sejda . sambox . cos . COSArray ( org . sejda . sambox . cos . COSNull . NULL ) ; victim . getCOSObject ( ) . setItem ( COSName . B , beads ) ... | org . junit . Assert . assertTrue ( victim . getThreadBeads ( ) . isEmpty ( ) ) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.