input stringlengths 28 18.7k | output stringlengths 39 1.69k |
|---|---|
removeWorker ( ) { mInfo . addWorker ( 1 , "MEM" ) ; mInfo . removeWorker ( 1 ) ; "<AssertPlaceHolder>" ; } getWorkers ( ) { java . util . List < alluxio . wire . WorkerInfo > workerInfos = getInfo ( alluxio . client . rest . NO_PARAMS ) . getWorkers ( ) ; org . junit . Assert . assertEquals ( 1 , workerInfos . size ( ... | org . junit . Assert . assertEquals ( 0 , mInfo . getWorkers ( ) . size ( ) ) |
testRethrowError ( ) { org . springframework . retry . support . RetryTemplate retryTemplate = new org . springframework . retry . support . RetryTemplate ( ) ; retryTemplate . setRetryPolicy ( new org . springframework . retry . policy . NeverRetryPolicy ( ) ) ; try { retryTemplate . execute ( new org . springframewor... | org . junit . Assert . assertEquals ( "Realllly<sp>bad!" , e . getMessage ( ) ) |
testGetGraphPanelContainer ( ) { System . out . println ( "getGraphPanelContainer" ) ; kg . apc . jmeter . vizualizers . PageDataExtractorOverTimeGui instance = new kg . apc . jmeter . vizualizers . PageDataExtractorOverTimeGui ( ) ; kg . apc . jmeter . vizualizers . JPanel result = instance . getGraphPanelContainer ( ... | org . junit . Assert . assertNotNull ( result ) |
testServiceRegistered ( ) { java . util . Iterator < org . geotools . renderer . style . ExternalGraphicFactory > it = org . geotools . renderer . style . DynamicSymbolFactoryFinder . getExternalGraphicFactories ( ) ; boolean foundIt = false ; while ( it . hasNext ( ) ) { org . geotools . renderer . style . ExternalGra... | org . junit . Assert . assertTrue ( foundIt ) |
rejectForEach ( ) { com . gs . collections . api . LazyIterable < java . lang . Integer > select = com . gs . collections . impl . utility . LazyIterate . reject ( com . gs . collections . impl . list . Interval . oneTo ( 5 ) , com . gs . collections . impl . block . factory . Predicates . lessThan ( 5 ) ) ; int sum = ... | org . junit . Assert . assertEquals ( 5 , sum ) |
testOpenIdWap ( ) { java . lang . String accessToken = java . lang . System . getProperty ( "connect.token" ) ; com . belerweb . social . bean . Result < com . belerweb . social . qq . connect . bean . OpenID > result = connect . getOAuth2 ( ) . openId ( accessToken , true ) ; "<AssertPlaceHolder>" ; com . belerweb . s... | org . junit . Assert . assertTrue ( result . success ( ) ) |
combineValidationShouldFailOnModulo ( ) { eu . inmite . android . lib . validations . FormsValidatorWithJoinedValidationTest . ModelWithJoinedUnderValidation model = new eu . inmite . android . lib . validations . FormsValidatorWithJoinedValidationTest . ModelWithJoinedUnderValidation ( org . robolectric . Robolectric ... | org . junit . Assert . assertFalse ( result ) |
testGetWithNonExistingKeyReturnsNull ( ) { com . eclipsesource . tabris . ui . PageData data = new com . eclipsesource . tabris . ui . PageData ( ) ; "<AssertPlaceHolder>" ; } get ( java . lang . String , java . lang . Class ) { T result = null ; java . lang . Object value = store . get ( key ) ; if ( value != null ) {... | org . junit . Assert . assertNull ( data . get ( "foo" , java . lang . String . class ) ) |
testBug49598 ( ) { org . apache . catalina . startup . Tomcat tomcat = getTomcatInstance ( ) ; java . io . File docBase = new java . io . File ( java . lang . System . getProperty ( "java.io.tmpdir" ) ) ; org . apache . catalina . Context ctx = tomcat . addContext ( "" , docBase . getAbsolutePath ( ) ) ; org . apache .... | org . junit . Assert . assertEquals ( 1 , count ) |
concatf ( ) { char orderBefore = org . nd4j . linalg . factory . Nd4j . order ( ) ; try { org . nd4j . linalg . factory . Nd4j . factory ( ) . setOrder ( 'f' ) ; org . nd4j . linalg . api . ndarray . INDArray x = org . nd4j . linalg . factory . Nd4j . create ( new double [ ] { 1 , 2 , 3 , 4 , 5 , 6 } , new int [ ] { 1 ... | org . junit . Assert . assertEquals ( exp , out ) |
testForAllIteratorExp01 ( ) { testpackage . Class1 class1 ; class1 = new testpackage . Class1 ( ) ; "<AssertPlaceHolder>" ; } testForAllIteratorExp01 ( ) { testpackage . Class1 class1 ; class1 = new testpackage . Class1 ( ) ; org . junit . Assert . assertTrue ( class1 . testForAllIteratorExp01 ( ) ) ; } | org . junit . Assert . assertTrue ( class1 . testForAllIteratorExp01 ( ) ) |
resultProvidedTest ( ) { java . lang . Object testResult = new java . lang . Object ( ) ; java . util . concurrent . atomic . AtomicReference < java . lang . Object > resultProvided = new java . util . concurrent . atomic . AtomicReference ( null ) ; new org . threadly . concurrent . future . FutureCallbackResultHandle... | org . junit . Assert . assertTrue ( ( testResult == ( resultProvided . get ( ) ) ) ) |
testPopulateResourcesHostBatches ( ) { setUpCommonMocks ( ) ; org . apache . ambari . server . controller . metrics . timeline . AMSPropertyProviderTest . TestStreamProviderForHostComponentMultipleHostsMetricsTest streamProvider = new org . apache . ambari . server . controller . metrics . timeline . AMSPropertyProvide... | org . junit . Assert . assertEquals ( 2 , allSpecs . size ( ) ) |
testDelete ( ) { final org . jboss . narayana . quickstart . jca . model . Customer customer = new org . jboss . narayana . quickstart . jca . model . Customer ( 1 , "First<sp>customer<sp>name" ) ; customerDAO . insert ( customer ) ; customerDAO . delete ( customer ) ; "<AssertPlaceHolder>" ; } get ( int ) { if ( org .... | org . junit . Assert . assertEquals ( null , customerDAO . get ( 1 ) ) |
testMatchesMVEL ( ) { final java . lang . String drl = "hello<sp>;=" 5 + ( ( ( ( ( ( ( "hello<sp>;=" 1 + "hello<sp>;=" 6 ) + "rule<sp>\"Matches<sp>mvel\"hello<sp>;=" 0 ) + "when\n" ) + "<sp>Map(<sp>this[\"content\"]<sp>matches<sp>\"hello<sp>;=\"hello<sp>;=" 4 ) + "hello<sp>;=" 2 ) + "<sp>results.add(<sp>\"OK\"<sp>);\n"... | org . junit . Assert . assertEquals ( 1 , results . size ( ) ) |
encryptStringSymmetric ( ) { byte [ ] key = com . owncloud . android . utils . EncryptionUtils . generateKey ( ) ; java . lang . String encryptedString = com . owncloud . android . utils . EncryptionUtils . encryptStringSymmetric ( privateKey , key ) ; java . lang . String decryptedString = com . owncloud . android . u... | org . junit . Assert . assertEquals ( privateKey , decryptedString ) |
testSkipFloat ( ) { long sentinel = Long . MAX_VALUE ; org . apache . trevni . OutputBuffer out = new org . apache . trevni . OutputBuffer ( ) ; out . writeValue ( Float . MAX_VALUE , ValueType . FLOAT ) ; out . writeLong ( sentinel ) ; org . apache . trevni . InputBuffer in = new org . apache . trevni . InputBuffer ( ... | org . junit . Assert . assertEquals ( sentinel , in . readLong ( ) ) |
testGetQueryTokenizer_Custom ( ) { net . sourceforge . squirrel_sql . fw . sql . IQueryTokenizer customTokenizer = net . sourceforge . squirrel_sql . fw . FwTestUtil . getEasyMockQueryTokenizer ( net . sourceforge . squirrel_sql . client . session . SessionTest . CUSTOM_STMT_SEP , "--" , true , 0 ) ; sessionUnderTest .... | org . junit . Assert . assertEquals ( net . sourceforge . squirrel_sql . client . session . SessionTest . CUSTOM_STMT_SEP , retrievedTokenizer . getSQLStatementSeparator ( ) ) |
testReceiveResponseAcceptsResponseFromSameSessionEpochAndCipherUsingStrictMatching ( ) { org . eclipse . californium . core . network . UdpMatcher matcher = newMatcher ( true ) ; org . eclipse . californium . core . network . Exchange exchange = org . eclipse . californium . core . network . UdpMatcherTest . sendReques... | org . junit . Assert . assertThat ( matchedExchange , org . hamcrest . CoreMatchers . is ( exchange ) ) |
testParseFilterAnd ( ) { r1 . put ( "y" , new model . datafield . DataFieldDouble ( 2 ) ) ; model . SequentialData result = ( ( model . SequentialData ) ( p . parse ( "FILTER<sp>WHERE<sp>((COL(x)<sp>=<sp>1.0)<sp>and<sp>(COL(y)<sp>=<sp>2.0))" , data ) ) ) ; "<AssertPlaceHolder>" ; } parse ( java . lang . String , analyz... | org . junit . Assert . assertTrue ( result . contains ( r1 ) ) |
testFullyOutsideCircle ( ) { org . locationtech . jts . geom . Point p = ( ( org . locationtech . jts . geom . Point ) ( wkt . read ( "POINT(5<sp>5)" ) ) ) ; org . locationtech . jts . geom . LineString ls = ( ( org . locationtech . jts . geom . Polygon ) ( p . buffer ( 10 ) ) ) . getExteriorRing ( ) ; org . locationte... | org . junit . Assert . assertNull ( clipped ) |
testSetProcessConfigAttributesWhenProcessConfigIsNull ( ) { final java . util . Map < ? , ? > configs = mock ( java . util . Map . class ) ; final org . kie . server . api . model . KieContainerResource containerResource = spy ( new org . kie . server . api . model . KieContainerResource ( ) ) ; final java . util . Lis... | org . junit . Assert . assertEquals ( 0 , actualConfigItems . size ( ) ) |
testDeleteUUID ( ) { System . out . println ( "deleteUUID" ) ; java . util . UUID uuid = getBean ( ) . addUUID ( "delete-uuid" ) ; org . ancoron . postgresql . jpa . test . UUIDTestEntity expResult = new org . ancoron . postgresql . jpa . test . UUIDTestEntity ( ) ; expResult . setId ( uuid ) ; expResult . setName ( "d... | org . junit . Assert . assertEquals ( expResult , result ) |
testLogGammaSum ( ) { final int ulps = 2 ; for ( int i = 0 ; i < ( org . apache . commons . math3 . special . BetaTest . LOG_GAMMA_SUM_REF . length ) ; i ++ ) { final double [ ] ref = org . apache . commons . math3 . special . BetaTest . LOG_GAMMA_SUM_REF [ i ] ; final double a = ref [ 0 ] ; final double b = ref [ 1 ] ... | org . junit . Assert . assertEquals ( builder . toString ( ) , expected , actual , tol ) |
testNonLazyRegenerationForProductById ( ) { org . candlepin . model . Owner owner = org . candlepin . test . TestUtil . createOwner ( "test-owner" , "Test<sp>Owner" ) ; org . candlepin . model . Consumer consumer = org . candlepin . test . TestUtil . createConsumer ( owner ) ; org . candlepin . model . Product product ... | org . junit . Assert . assertFalse ( entitlement . isDirty ( ) ) |
testResourceValidation ( ) { org . jboss . seam . rest . test . validation . Person validPerson = new org . jboss . seam . rest . test . validation . Person ( "foo" , "bar" , 100 , false , "foobar" ) ; try { invalidResource . completelyValidatedOperation ( validPerson ) ; throw new java . lang . RuntimeException ( "Exp... | org . junit . Assert . assertEquals ( 3 , e . getViolations ( ) . size ( ) ) |
test ( ) { org . schemarepo . Validator foo = new org . schemarepo . Validator ( ) { @ org . schemarepo . Override public void validate ( java . lang . String schemaToValidate , java . lang . Iterable < org . schemarepo . SchemaEntry > schemasInOrder ) throws org . schemarepo . SchemaValidationException { } } ; org . s... | org . junit . Assert . assertSame ( foo , fact . getValidators ( fooset ) . get ( 0 ) ) |
testTooLong ( ) { pl . edu . icm . cermine . metadata . affiliation . CRFAffiliationParser parser = new pl . edu . icm . cermine . metadata . affiliation . CRFAffiliationParser ( ) ; org . jdom . output . XMLOutputter outputter = new org . jdom . output . XMLOutputter ( ) ; java . lang . StringBuilder inputSB = new jav... | org . junit . Assert . assertEquals ( expected , actual ) |
testStoreOneAndGetOne ( ) { org . hawkular . apm . server . api . model . zipkin . Annotation annotation = new org . hawkular . apm . server . api . model . zipkin . Annotation ( ) ; annotation . setValue ( "foo<sp>bar" ) ; annotation . setTimestamp ( 123456789L ) ; annotation . setEndpoint ( createEndpoint ( "123.123.... | org . junit . Assert . assertEquals ( span , spanFromDb ) |
testGetSetSubGridColor ( ) { shape . setSubGridColour ( DviPsColors . RED ) ; "<AssertPlaceHolder>" ; } getSubGridColour ( ) { return firstIGrid ( ) . map ( ( sh ) -> sh . getSubGridColour ( ) ) . orElse ( DviPsColors . BLACK ) ; } | org . junit . Assert . assertEquals ( DviPsColors . RED , shape . getSubGridColour ( ) ) |
testGeenWijzigingen ( ) { final nl . bzk . brp . model . operationeel . kern . ActieModel actie = support . PersoonHisVolledigUtil . maakActie ( 2L , SoortAdministratieveHandeling . G_B_A_BIJHOUDING_ACTUEEL , SoortActie . CONVERSIE_G_B_A , 19400101 , partij ) ; final nl . bzk . brp . util . hisvolledig . kern . Persoon... | org . junit . Assert . assertEquals ( 0 , resultaat . size ( ) ) |
relative_path_with_$parent_and_invalid_field_returns_null ( ) { com . fasterxml . jackson . databind . JsonNode result = doc . get ( new com . redhat . lightblue . util . Path ( "object.nested1.doublenested1.$parent.notthere" ) ) ; "<AssertPlaceHolder>" ; } get ( java . lang . String ) { return new com . redhat . light... | org . junit . Assert . assertNull ( result ) |
timestampAttributeParsesMillisecondsSinceEpoch ( ) { long time = 1446162101123L ; java . util . Map < java . lang . String , java . lang . String > map = org . apache . beam . vendor . guava . v20_0 . com . google . common . collect . ImmutableMap . of ( "myAttribute" , java . lang . String . valueOf ( time ) ) ; long ... | org . junit . Assert . assertEquals ( time , timestamp ) |
testWriteAvroEntity ( ) { java . lang . String schemaString = "{<sp>\"type\":<sp>\"int\"<sp>}" ; java . io . InputStream is = new java . io . ByteArrayInputStream ( schemaString . getBytes ( ) ) ; org . apache . avro . Schema schema = parser . parse ( is ) ; org . apache . avro . io . DatumWriter < java . lang . Intege... | org . junit . Assert . assertArrayEquals ( new byte [ ] { ( ( byte ) ( 2 ) ) } , bytes ) |
testQueuedFeedbackCalls ( ) { java . util . Map < java . lang . String , java . util . Date > map = java . util . Collections . singletonMap ( "Test" , new java . util . Date ( ) ) ; com . notnoop . apns . internal . ApnsFeedbackConnection feed = mock ( com . notnoop . apns . internal . ApnsFeedbackConnection . class )... | org . junit . Assert . assertEquals ( map , queued . getInactiveDevices ( ) ) |
single_column_via_Object_type ( ) { for ( java . lang . Object s : query ( ) . from ( survey ) . select ( com . querydsl . sql . ExpressionUtils . path ( java . lang . Object . class , survey . name . getMetadata ( ) ) ) . fetch ( ) ) { "<AssertPlaceHolder>" ; } } fetch ( ) { return innerList ( ) ; } | org . junit . Assert . assertEquals ( java . lang . String . class , s . getClass ( ) ) |
shouldAllowAddingQuerystringParametersAfterCreation ( ) { final com . github . scribejava . core . model . OAuthRequest request = new com . github . scribejava . core . model . OAuthRequest ( Verb . GET , "http://example.com?one=val" ) ; request . addQuerystringParameter ( "two" , "other<sp>val" ) ; request . addQuerys... | org . junit . Assert . assertEquals ( 3 , request . getQueryStringParams ( ) . size ( ) ) |
testGetSqlExpressionRedshiftCase1 ( ) { java . lang . String sqlLang = "SQL" ; java . lang . String sqlBody = "SQL<sp>body" ; java . lang . String redshiftLang = SupportDBUrlType . REDSHIFT . getLanguage ( ) ; java . lang . String redshiftBody = "Amazon<sp>redshift<sp>body" ; java . lang . String postgresqlLang = Suppo... | org . junit . Assert . assertEquals ( tdExpression4 , sqlExpression ) |
testVerzamelAfleidingsregels ( ) { nl . bzk . brp . model . bericht . kern . PersoonSamengesteldeNaamGroepBericht samengesteldeNaam = creeerSamengesteldeNaam ( new nl . bzk . brp . model . algemeen . attribuuttype . kern . GeslachtsnaamstamAttribuut ( nl . bzk . brp . bijhouding . business . regels . impl . gegevenset ... | org . junit . Assert . assertEquals ( 1 , verwerker . getAfleidingsregels ( ) . size ( ) ) |
getHandlerIsCaseSensitive ( ) { org . w3c . dom . Element el = org . apache . shindig . common . xml . XmlUtil . parseSilent ( "<tag<sp>xmlns='#test'/>" ) ; "<AssertPlaceHolder>" ; } getHandlerFor ( org . apache . shindig . gadgets . templates . tags . NSName ) { org . apache . shindig . gadgets . templates . tags . Ta... | org . junit . Assert . assertNull ( registry . getHandlerFor ( el ) ) |
testDeleteThing ( ) { org . jboss . resteasy . test . rx . resource . Thing t = org . jboss . resteasy . test . rx . rxjava2 . Rx2SingleProxyServerAsyncTest . proxy . deleteThing ( ) ; "<AssertPlaceHolder>" ; } deleteThing ( ) { return org . jboss . resteasy . test . rx . rxjava2 . resource . Rx2ObservableResourceNoStr... | org . junit . Assert . assertEquals ( new org . jboss . resteasy . test . rx . resource . Thing ( "x" ) , t ) |
shouldFailConnectionWhenResponseHeaderConnectionMissing ( ) { final org . apache . mina . core . service . IoHandler handler = context . mock ( org . apache . mina . core . service . IoHandler . class ) ; context . checking ( new org . kaazing . gateway . transport . test . Expectations ( ) { { never ( handler ) . sess... | org . junit . Assert . assertFalse ( connectFuture . isConnected ( ) ) |
testWrapIfNeeded_AdempiereException ( ) { final org . adempiere . exceptions . AdempiereException expected = newAdempiereException ( ) ; final org . adempiere . exceptions . AdempiereException actual = org . adempiere . exceptions . AdempiereException . wrapIfNeeded ( expected ) ; "<AssertPlaceHolder>" ; } wrapIfNeeded... | org . junit . Assert . assertSame ( expected , actual ) |
testFromEbXML21SourcePatientEmpty ( ) { org . openehealth . ipf . commons . ihe . xds . core . metadata . Identifiable result = org . openehealth . ipf . commons . ihe . xds . core . metadata . Hl7v2Based . parse ( "" , org . openehealth . ipf . commons . ihe . xds . core . metadata . Identifiable . class ) ; "<AssertP... | org . junit . Assert . assertNull ( result ) |
testFilter_accept ( ) { com . navercorp . pinpoint . collector . dao . hbase . filter . SpanEventFilter filter = new com . navercorp . pinpoint . collector . dao . hbase . filter . SequenceSpanEventFilter ( 100 ) ; final com . navercorp . pinpoint . common . server . bo . SpanEventBo spanEventBo = new com . navercorp .... | org . junit . Assert . assertEquals ( filter . filter ( spanEventBo ) , SpanEventFilter . ACCEPT ) |
testIsWarnEnabled ( ) { java . util . logging . Logger mock = createStrictMock ( java . util . logging . Logger . class ) ; expect ( mock . isLoggable ( Level . WARNING ) ) . andReturn ( true ) ; replay ( mock ) ; org . jboss . netty . logging . InternalLogger logger = new org . jboss . netty . logging . JdkLogger ( mo... | org . junit . Assert . assertTrue ( logger . isWarnEnabled ( ) ) |
returnedMessageWithComponentTest ( ) { org . apache . hyracks . api . exceptions . HyracksDataException cause = org . apache . hyracks . api . exceptions . HyracksDataException . create ( ErrorCode . ERROR_PROCESSING_TUPLE , 3 ) ; org . apache . hyracks . api . exceptions . HyracksDataException causeWithNodeId = org . ... | org . junit . Assert . assertEquals ( cause . getMessage ( ) , causeWithNodeId . getMessage ( ) ) |
testDoBuildNewNode ( ) { when ( context . getIndex ( ) . getNode ( org . kie . workbench . common . stunner . bpmn . backend . service . marshaller . json . builder . NodeBuilderImplTest . NODE_ID ) ) . thenReturn ( null ) ; when ( context . getOryxManager ( ) ) . thenReturn ( oryxManager ) ; when ( context . getOryxMa... | org . junit . Assert . assertEquals ( node1 , node ) |
testAddGet ( ) { net . tomp2p . dht . PeerDHT master = null ; try { net . tomp2p . dht . PeerDHT [ ] peers = net . tomp2p . dht . UtilsDHT2 . createNodes ( 200 , net . tomp2p . dht . TestDHT . rnd , 4001 ) ; master = peers [ 0 ] ; net . tomp2p . dht . UtilsDHT2 . perfectRouting ( peers ) ; net . tomp2p . peers . Number... | org . junit . Assert . assertEquals ( true , fget . isSuccess ( ) ) |
allStatic ( ) { com . github . mauricioaniche . ck . CKClassResult a = com . github . mauricioaniche . ck . metric . FieldsTest . report . get ( "fields.Fields" ) ; "<AssertPlaceHolder>" ; } getNumberOfStaticFields ( ) { return numberOfStaticFields ; } | org . junit . Assert . assertEquals ( 2 , a . getNumberOfStaticFields ( ) ) |
testDropSchema ( ) { com . rayo . storage . cassandra . CassandraSchemaHandler schemaHandler = new com . rayo . storage . cassandra . CassandraSchemaHandler ( ) ; org . scale7 . cassandra . pelops . Cluster cluster = new org . scale7 . cassandra . pelops . Cluster ( "localhost" , java . lang . Integer . parseInt ( Cass... | org . junit . Assert . assertFalse ( schemaHandler . schemaExists ( cluster , "rayo" ) ) |
marshalAndUnmarshal ( ) { java . math . BigDecimal givenValue = new java . math . BigDecimal ( "20.34" ) ; java . lang . String valueAsStr = adapter . marshal ( givenValue ) ; java . math . BigDecimal convertedValue = adapter . unmarshal ( valueAsStr ) ; "<AssertPlaceHolder>" ; } unmarshal ( java . lang . String ) { re... | org . junit . Assert . assertThat ( givenValue , org . hamcrest . CoreMatchers . is ( convertedValue ) ) |
logRollbackAndRetrieve ( ) { org . mule . runtime . core . internal . util . journal . queue . LocalTxQueueTransactionJournal transactionJournal = new org . mule . runtime . core . internal . util . journal . queue . LocalTxQueueTransactionJournal ( temporaryFolder . getRoot ( ) . getAbsolutePath ( ) , muleContext ) ; ... | org . junit . Assert . assertThat ( allEntries . size ( ) , org . hamcrest . core . Is . is ( 0 ) ) |
entitySuccess_AutoGen ( ) { in . cubestack . android . lib . storm . core . TableInformation info = dataReader . readAnnotations ( in . cubestack . android . lib . storm . core . MetaReaderTest . EntityPrimaryKey . class , new in . cubestack . android . lib . storm . core . AliasGenerator ( ) ) ; "<AssertPlaceHolder>" ... | org . junit . Assert . assertNotNull ( info ) |
testMaxWidthPerNodeConfig ( ) { org . apache . drill . test . ClusterFixtureBuilder builder = org . apache . drill . test . ClusterFixture . bareBuilder ( dirTestWatcher ) . setOptionDefault ( ExecConstants . MAX_WIDTH_PER_NODE_KEY , 2 ) ; try ( org . apache . drill . test . ClusterFixture cluster = builder . build ( )... | org . junit . Assert . assertEquals ( "2" , maxWidth ) |
testEmptyReport ( ) { org . apache . hadoop . hdfs . protocol . BlockListAsLongs blocks = checkReport ( ) ; "<AssertPlaceHolder>" ; } getBlockListAsLongs ( ) { return org . apache . hadoop . hdfs . protocol . BlockListAsLongs . EMPTY_LONGS ; } | org . junit . Assert . assertArrayEquals ( new long [ ] { 0 , 0 , - 1 , - 1 , - 1 } , blocks . getBlockListAsLongs ( ) ) |
testGetStaticLabel ( ) { System . out . println ( "getStaticLabel" ) ; kg . apc . jmeter . vizualizers . ResponseTimesDistributionGui instance = new kg . apc . jmeter . vizualizers . ResponseTimesDistributionGui ( ) ; java . lang . String result = instance . getStaticLabel ( ) ; "<AssertPlaceHolder>" ; } getStaticLabel... | org . junit . Assert . assertTrue ( ( ( result . length ( ) ) > 0 ) ) |
decimalPointParsingTest ( ) { com . itextpdf . svg . renderers . impl . PathSvgNodeRenderer path = new com . itextpdf . svg . renderers . impl . PathSvgNodeRenderer ( ) ; java . lang . String input = "2.35.96" ; java . lang . String expected = "2.35<sp>.96" ; java . lang . String actual = path . separateDecimalPoints (... | org . junit . Assert . assertEquals ( expected , actual ) |
testParser ( ) { java . lang . String response = "{\"ok\":<sp>true}" ; "<AssertPlaceHolder>" ; } getResponseParser ( ) { return new com . urbanairship . api . client . ResponseParser < com . urbanairship . api . reports . model . ResponseReport > ( ) { @ com . urbanairship . api . reports . Override public com . urbana... | org . junit . Assert . assertEquals ( response , request . getResponseParser ( ) . parse ( response ) ) |
testPutValue ( ) { subject . put ( org . eclipse . smarthome . core . cache . ExpiringCacheMapTest . FIRST_TEST_KEY , org . eclipse . smarthome . core . cache . ExpiringCacheMapTest . CACHE_ACTION ) ; subject . putValue ( org . eclipse . smarthome . core . cache . ExpiringCacheMapTest . FIRST_TEST_KEY , "test" ) ; java... | org . junit . Assert . assertEquals ( "test" , value ) |
testFunction ( ) { org . apache . commons . jexl2 . parser . JexlNode queryA = datawave . query . jexl . JexlASTHelper . parseJexlQuery ( "(FOO<sp>==<sp>'blah1'<sp>&&<sp>FOO<sp>==<sp>'blah2'<sp>&&<sp>content:phrase(termOffsetMap,<sp>'twisted',<sp>'pair'))" ) ; org . apache . commons . jexl2 . parser . JexlNode queryB =... | org . junit . Assert . assertEquals ( datawave . query . jexl . visitors . TreeHashVisitor . getNodeHash ( queryA ) , datawave . query . jexl . visitors . TreeHashVisitor . getNodeHash ( queryB ) ) |
testBuildWithDisabledStatusConstraint ( ) { unit . setActive ( false ) ; org . lnu . is . domain . person . language . PersonLanguage context = new org . lnu . is . domain . person . language . PersonLanguage ( ) ; java . lang . String expectedQuery = "SELECT<sp>e<sp>FROM<sp>PersonLanguage<sp>e<sp>WHERE<sp>e.crtUserGro... | org . junit . Assert . assertEquals ( expectedQuery , actualQuery ) |
testGetReadPreferenceFromClient ( ) { final com . allanbank . mongodb . ReadPreference defaultReadPreference = com . allanbank . mongodb . ReadPreference . preferSecondary ( ) ; expect ( myMockClient . getDefaultReadPreference ( ) ) . andReturn ( defaultReadPreference ) ; replay ( ) ; final com . allanbank . mongodb . ... | org . junit . Assert . assertSame ( defaultReadPreference , result ) |
testOk ( ) { final nl . moderniseringgba . isc . esb . message . sync . impl . BlokkeringAntwoordBericht antwoord = new nl . moderniseringgba . isc . esb . message . sync . impl . BlokkeringAntwoordBericht ( ) ; antwoord . setStatus ( StatusType . OK ) ; final java . util . Map < java . lang . String , java . lang . Ob... | org . junit . Assert . assertEquals ( null , subject . execute ( parameters ) ) |
testNewPDBAtom_IElement ( ) { org . openscience . cdk . interfaces . IChemObjectBuilder builder = org . openscience . cdk . AbstractChemObjectBuilderTest . rootObject . getBuilder ( ) ; org . openscience . cdk . interfaces . IPDBAtom atom = builder . newInstance ( org . openscience . cdk . interfaces . IPDBAtom . class... | org . junit . Assert . assertNotNull ( atom ) |
testGetProperties ( ) { java . util . Set < java . lang . String > properties = new java . util . HashSet ( ) ; org . apache . ambari . server . api . query . QueryInfo info = new org . apache . ambari . server . api . query . QueryInfo ( new org . apache . ambari . server . api . resources . ClusterResourceDefinition ... | org . junit . Assert . assertEquals ( properties , info . getProperties ( ) ) |
testColor ( ) { net . kyori . text . Component component = TextParsers . XML_PARSER . parse ( "<color<sp>color=\"gray\">foo</color>" ) ; net . kyori . text . TextComponent expected = net . kyori . text . TextComponent . of ( "" ) . append ( net . kyori . text . TextComponent . of ( "foo" ) . color ( TextColor . GRAY ) ... | org . junit . Assert . assertEquals ( expected , component ) |
subSupSpaceUnicode ( ) { java . lang . String input = "R<sub>1<sp></sub>" ; java . lang . String expect = "R₁<sp>" ; java . lang . String actual = format . getSimpleHtml ( input ) ; "<AssertPlaceHolder>" ; } | org . junit . Assert . assertEquals ( expect , actual ) |
testAddVisibleHandlerOnVisiblePresenter ( com . gwtplatform . mvp . client . PresenterWidgetTest$PresenterWidgetD ) { "<AssertPlaceHolder>" ; presenterWidgetD . internalReveal ( ) ; presenterWidgetD . addVisibleHandler ( typeA , handlerA ) ; verify ( eventBusA ) . addHandler ( typeA , handlerA ) ; presenterWidgetD . in... | org . junit . Assert . assertFalse ( presenterWidgetD . isVisible ( ) ) |
badFlowOngeldigeLa01ZonderPf03 ( ) { startProcess ( maakUc811Bericht ( "0599" , 1231231234L ) ) ; controleerBerichten ( 0 , 1 , 0 ) ; final nl . bzk . migratiebrp . bericht . model . lo3 . impl . Lq01Bericht lq01Bericht = getBericht ( nl . bzk . migratiebrp . bericht . model . lo3 . impl . Lq01Bericht . class ) ; lq01B... | org . junit . Assert . assertTrue ( processEnded ( ) ) |
testReadingHTDFromFS ( ) { final java . lang . String name = "testReadingHTDFromFS" ; org . apache . hadoop . fs . FileSystem fs = org . apache . hadoop . fs . FileSystem . get ( org . apache . hadoop . hbase . util . TestFSTableDescriptors . UTIL . getConfiguration ( ) ) ; org . apache . hadoop . hbase . util . HTable... | org . junit . Assert . assertTrue ( htd . equals ( htd2 ) ) |
percent_encoding_should_round_trip ( ) { byte [ ] q = new byte [ 90 ] ; byte [ ] b = new byte [ 90 ] ; for ( int i = 0 ; i < ( b . length ) ; i ++ ) { q [ i ] = ( ( byte ) ( i ) ) ; b [ i ] = ( ( byte ) ( 'A' ) ) ; } au . edu . wehi . idsv . VariantContextDirectedEvidence e = ( ( au . edu . wehi . idsv . VariantContext... | org . junit . Assert . assertArrayEquals ( q , e . getBreakendQuality ( ) ) |
testWithArbitraryGranularity ( ) { java . io . File tmpDir = temporaryFolder . newFolder ( ) ; java . io . File tmpFile = java . io . File . createTempFile ( "druid" , "index" , tmpDir ) ; try ( java . io . BufferedWriter writer = com . google . common . io . Files . newWriter ( tmpFile , StandardCharsets . UTF_8 ) ) {... | org . junit . Assert . assertEquals ( 1 , segments . size ( ) ) |
collectionOid_withNoVersion ( ) { org . apache . isis . core . metamodel . adapter . oid . RootOid parentOid = org . apache . isis . core . metamodel . adapter . oid . RootOid . create ( org . apache . isis . core . metamodel . spec . ObjectSpecId . of ( "CUS" ) , "123" ) ; org . apache . isis . core . metamodel . adap... | org . junit . Assert . assertThat ( deString , org . hamcrest . CoreMatchers . is ( oid ) ) |
noGroupsResolved ( ) { org . springframework . restdocs . constraints . Constraint constraint = new org . springframework . restdocs . constraints . Constraint ( "Constraint" , java . util . Collections . < java . lang . String , java . lang . Object > emptyMap ( ) ) ; java . util . List < java . lang . Class < ? > > g... | org . junit . Assert . assertThat ( groups . size ( ) , org . hamcrest . CoreMatchers . is ( 0 ) ) |
testGetContentDigest ( ) { final java . lang . String checksum = checksumString ( org . fcrepo . kernel . modeshape . UrlBinaryTest . EXPECTED_CONTENT ) ; mockProxyProperty ( ) ; mockChecksumProperty ( checksum ) ; testObj . setExternalContent ( mimeType , singleton ( new java . net . URI ( checksum ) ) , null , org . ... | org . junit . Assert . assertEquals ( checksum , digestUri . toString ( ) ) |
testExtractRemovedObjects ( ) { java . util . Set < org . opendaylight . yangtools . yang . binding . InstanceIdentifier < org . opendaylight . yangtools . yang . binding . DataObject > > iids = new java . util . HashSet ( ) ; org . powermock . api . mockito . PowerMockito . doReturn ( iids ) . when ( org . opendayligh... | org . junit . Assert . assertEquals ( com . google . common . collect . Maps . filterKeys ( result , com . google . common . base . Predicates . in ( iids ) ) , org . opendaylight . ovsdb . southbound . ovsdb . transact . TransactUtils . extractRemovedObjects ( changes , klazz ) ) |
testInvalidHostName ( ) { com . streamsets . pipeline . stage . destination . datalake . DataLakeTarget target = new com . streamsets . pipeline . stage . destination . datalake . DataLakeTargetBuilder ( ) . accountFQDN ( "dummy:9000" ) . authTokenEndpoint ( "dummy:9500" ) . build ( ) ; com . streamsets . pipeline . sd... | org . junit . Assert . assertEquals ( 1 , issues . size ( ) ) |
test_adjust2 ( ) { org . threeten . extra . chrono . CopticDate base = org . threeten . extra . chrono . CopticDate . of ( 1728 , 13 , 2 ) ; org . threeten . extra . chrono . CopticDate test = base . with ( java . time . temporal . TemporalAdjusters . lastDayOfMonth ( ) ) ; "<AssertPlaceHolder>" ; } of ( int , int , in... | org . junit . Assert . assertEquals ( org . threeten . extra . chrono . CopticDate . of ( 1728 , 13 , 5 ) , test ) |
testGeenLandAanvang ( ) { final nl . bzk . brp . model . bericht . kern . HuwelijkGeregistreerdPartnerschapBericht relatieBericht = maakRelatie ( nl . bzk . brp . bijhouding . business . regels . impl . bijhouding . huwelijkgeregistreerdpartnerschap . acties . registratieaanvanghuwelijkpartnerschap . BRBY0409Test . BSN... | org . junit . Assert . assertEquals ( 0 , resultaat . size ( ) ) |
test11 ( ) { System . out . println ( "test11" ) ; "<AssertPlaceHolder>" ; } println ( java . lang . String ) { org . ops4j . pax . exam . forked . provision . Info . println ( null , message ) ; } | org . junit . Assert . assertEquals ( 2 , 2 ) |
testCleaningFileEntryWithNoImageDoesNothing ( ) { com . liferay . portal . kernel . service . ServiceContext serviceContext = com . liferay . portal . kernel . test . util . ServiceContextTestUtil . getServiceContext ( _group , com . liferay . portal . kernel . test . util . TestPropsValues . getUserId ( ) ) ; final co... | org . junit . Assert . assertEquals ( 0 , adaptiveMediaStream . count ( ) ) |
testToString ( ) { com . wdtinc . mapbox_vector_tile . adapt . jts . model . JtsLayer layer1 = new com . wdtinc . mapbox_vector_tile . adapt . jts . model . JtsLayer ( "apples" ) ; java . lang . String actual = layer1 . toString ( ) ; java . lang . String expected = "Layer{name='apples',<sp>geometries=[]}" ; "<AssertPl... | org . junit . Assert . assertEquals ( expected , actual ) |
doesntUpdatePriorityOfNonExistentChild ( ) { com . google . firebase . database . core . CompoundWrite compoundWrite = com . google . firebase . database . core . CompoundWrite . emptyWrite ( ) ; java . util . Map < java . lang . String , java . lang . Object > base = new com . google . firebase . database . MapBuilder... | org . junit . Assert . assertEquals ( baseNode , compoundWrite . apply ( baseNode ) ) |
testGetInstanceFleetsWhenInputListContainsNullElement ( ) { java . util . List < org . finra . herd . model . api . xml . EmrClusterDefinitionInstanceFleet > emrClusterDefinitionInstanceFleets = new java . util . ArrayList ( ) ; emrClusterDefinitionInstanceFleets . add ( null ) ; java . util . List < com . amazonaws . ... | org . junit . Assert . assertEquals ( new java . util . ArrayList ( ) , result ) |
remoteProcessGroupStatusOutputPorts ( ) { populateRemoteProcessGroup ( false , false ) ; java . lang . String statusRequest = "remoteProcessGroup:all:outputPorts" ; org . apache . nifi . minifi . commons . status . FlowStatusReport actual = org . apache . nifi . minifi . status . StatusConfigReporter . getStatus ( mock... | org . junit . Assert . assertEquals ( expected , actual ) |
testBuildWithDisabledStatusConstraint ( ) { unit . setActive ( false ) ; org . lnu . is . domain . person . award . PersonAward context = new org . lnu . is . domain . person . award . PersonAward ( ) ; java . lang . String expectedQuery = "SELECT<sp>e<sp>FROM<sp>PersonAward<sp>e<sp>WHERE<sp>e.crtUserGroup<sp>IN<sp>(:u... | org . junit . Assert . assertEquals ( expectedQuery , actualQuery ) |
testWithInterfaces6Broken1 ( ) { java . lang . reflect . Type selectedType = new javax . enterprise . util . TypeLiteral < org . jboss . weld . tests . unit . hierarchy . discovery . event . Interface5 < java . util . Set < java . util . Set < java . lang . Long > > > > ( ) { } . getType ( ) ; java . lang . reflect . T... | org . junit . Assert . assertEquals ( org . jboss . weld . util . Types . getCanonicalType ( org . jboss . weld . tests . unit . hierarchy . discovery . event . Charlie . class ) , type ) |
testReadNullString ( ) { com . fasterxml . jackson . databind . ObjectMapper om = objectMapper ; java . lang . String json = "{\"size\":null}" ; eu . trentorise . opendata . jackan . model . CkanResource r = om . readValue ( json , eu . trentorise . opendata . jackan . model . CkanResource . class ) ; "<AssertPlaceHold... | org . junit . Assert . assertTrue ( ( ( r . getSize ( ) ) == null ) ) |
shouldDeleteIndexForSpecifiedIndexName ( ) { elasticsearchTemplate . createIndex ( org . springframework . data . elasticsearch . entities . SampleEntity . class ) ; elasticsearchTemplate . refresh ( org . springframework . data . elasticsearch . entities . SampleEntity . class ) ; elasticsearchTemplate . deleteIndex (... | org . junit . Assert . assertThat ( elasticsearchTemplate . indexExists ( "test-index" ) , is ( false ) ) |
testException ( ) { java . lang . RuntimeException runtimeException = new java . lang . RuntimeException ( ) ; when ( delegate . acceptsURL ( testUrl ) ) . thenReturn ( true ) ; when ( delegate . connect ( testUrl , properties ) ) . thenThrow ( runtimeException ) ; try { hiveDriver . connect ( testUrl , properties ) ; ... | org . junit . Assert . assertEquals ( runtimeException , e ) |
testBookKeeperProtoShade ( ) { java . lang . Class . forName ( "dlshade.org.apache.bookkeeper.proto.BookkeeperProtocol" ) ; "<AssertPlaceHolder>" ; } | org . junit . Assert . assertTrue ( true ) |
testLista ( ) { log . debug ( "Debiera<sp>monstrar<sp>lista<sp>TEmporada" ) ; mx . edu . um . mateo . general . model . Usuario asociado = this . obtieneAsociado ( ) ; authenticate ( asociado , asociado . getPassword ( ) , new java . util . ArrayList < org . springframework . security . core . GrantedAuthority > ( asoc... | org . junit . Assert . assertNotNull ( temporada . getId ( ) ) |
testGetStartUrlwDownloadFromTableRequest ( ) { org . sagebionetworks . repo . model . table . DownloadFromTableRequest request = new org . sagebionetworks . repo . model . table . DownloadFromTableRequest ( ) ; request . setEntityId ( tableId ) ; org . sagebionetworks . client . AsynchJobType type = AsynchJobType . Tab... | org . junit . Assert . assertEquals ( actual , expected ) |
testMethodWithAnnotatedParameter ( ) { com . openpojo . reflection . PojoClass aClassWithMethodWithAnnotatedParemeters = com . openpojo . reflection . impl . PojoClassFactory . getPojoClass ( com . openpojo . reflection . impl . PojoParameterImplTest . AClassWithMethodWithAnnotatedParemeters . class ) ; java . util . L... | org . junit . Assert . assertEquals ( 1 , methods . size ( ) ) |
testOnFishingSelfDamage ( ) { org . bukkit . entity . FishHook hook = mock ( org . bukkit . entity . FishHook . class ) ; org . bukkit . event . player . PlayerFishEvent pfe = new org . bukkit . event . player . PlayerFishEvent ( player , player , hook , null ) ; "<AssertPlaceHolder>" ; org . mockito . Mockito . verify... | org . junit . Assert . assertFalse ( pfe . isCancelled ( ) ) |
checkLessThanMustFailIfArgumentIsEqualToExpected ( ) { final int n = 1 ; final int actual = org . jctools . util . RangeUtil . checkLessThan ( 1 , 1 , "var" ) ; "<AssertPlaceHolder>" ; } checkLessThan ( int , int , java . lang . String ) { if ( n >= expected ) { throw new java . lang . IllegalArgumentException ( ( ( ( ... | org . junit . Assert . assertThat ( actual , org . hamcrest . CoreMatchers . is ( org . hamcrest . CoreMatchers . equalTo ( n ) ) ) |
testResourceLoadingNoClass_noPackage ( ) { java . io . InputStream stream = org . reficio . ws . common . ResourceUtils . getResourceAsStream ( "/org/reficio/ws/common/test/soapEncoding.xsd" ) ; "<AssertPlaceHolder>" ; } getResourceAsStream ( java . lang . String ) { org . reficio . ws . common . ResourceUtils . Path p... | org . junit . Assert . assertNotNull ( stream ) |
testConvertIntValueToDate ( ) { int conv = testConvertValue ( org . apache . avro . Schema . create ( Schema . Type . INT ) , 17498 , TypeConverterProperties . TypeConverterOutputTypes . Date , "" , org . talend . components . processing . runtime . typeconverter . Integer . class ) ; "<AssertPlaceHolder>" ; } create (... | org . junit . Assert . assertThat ( conv , org . hamcrest . Matchers . is ( 17498 ) ) |
longString6 ( ) { org . diirt . support . ca . JCAChannelHandler channel = new org . diirt . support . ca . JCAChannelHandler ( "test<sp>{\"longString\":true}" , dataSource ) ; "<AssertPlaceHolder>" ; } isLongString ( ) { return longString ; } | org . junit . Assert . assertThat ( channel . isLongString ( ) , equalTo ( true ) ) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.