input stringlengths 28 18.7k | output stringlengths 39 1.69k |
|---|---|
peekTo_should_stop_at_end_of_input ( ) { org . sonar . sslr . channel . CodeReader reader = new org . sonar . sslr . channel . CodeReader ( "foo" ) ; java . lang . StringBuilder result = new java . lang . StringBuilder ( ) ; reader . peekTo ( ( i ) -> false , result ) ; "<AssertPlaceHolder>" ; } toString ( ) { return (... | org . junit . Assert . assertEquals ( "foo" , result . toString ( ) ) |
shouldPersist ( ) { net . rrm . ehour . persistence . user . dao . UserDepartment org = net . rrm . ehour . persistence . user . dao . UserDepartmentObjectMother . createUserDepartment ( ) ; net . rrm . ehour . persistence . user . dao . User user = net . rrm . ehour . persistence . user . dao . UserObjectMother . crea... | org . junit . Assert . assertNotNull ( user . getUserId ( ) ) |
testSameModeActivationSizes ( ) { int inH = 3 ; int inW = 4 ; int inDepth = 3 ; int minibatch = 5 ; int sH = 2 ; int sW = 2 ; int kH = 3 ; int kW = 3 ; org . deeplearning4j . convolution . org . deeplearning4j . nn [ ] l = new org . deeplearning4j . nn . conf . layers . Layer [ 2 ] ; l [ 0 ] = new org . deeplearning4j ... | org . junit . Assert . assertArrayEquals ( new long [ ] { minibatch , i == 0 ? 4 : inDepth , outH , outW } , actL0 . shape ( ) ) |
testFixed64 ( ) { java . util . Random random = org . apache . trevni . TestUtil . createRandom ( ) ; org . apache . trevni . OutputBuffer out = new org . apache . trevni . OutputBuffer ( ) ; for ( int i = 0 ; i < ( org . apache . trevni . TestIOBuffers . COUNT ) ; i ++ ) out . writeFixed64 ( random . nextLong ( ) ) ; ... | org . junit . Assert . assertEquals ( random . nextLong ( ) , in . readFixed64 ( ) ) |
testNavigateToNonExistingStep ( ) { java . net . URI resource = getClass ( ) . getResource ( "/corrupted/flow_navigate_to_non_existing_step.sl" ) . toURI ( ) ; io . cloudslang . lang . compiler . modeller . result . ExecutableModellingResult result = compiler . preCompileSource ( io . cloudslang . lang . compiler . Sla... | org . junit . Assert . assertTrue ( ( ( result . getErrors ( ) . size ( ) ) > 0 ) ) |
shouldStartAllMockServices ( ) { int totalMockService = ( stubMockAsWarServlet . project . getRestMockServiceCount ( ) ) + ( stubMockAsWarServlet . project . getMockServiceCount ( ) ) ; stubMockAsWarServlet . service ( reqeust , response ) ; com . eviware . soapui . model . mock . MockRunner [ ] mockRunners = ( ( com .... | org . junit . Assert . assertThat ( mockRunners . length , org . hamcrest . core . Is . is ( totalMockService ) ) |
testCannotTurnTrueAfterTimeout ( ) { long start = java . lang . System . currentTimeMillis ( ) ; final int [ ] time = new int [ 1 ] ; com . thoughtworks . selenium . condition . JUnitConditionRunner conditionRunner1 = new com . thoughtworks . selenium . condition . JUnitConditionRunner ( null , 0 , 100 , 500 ) ; try { ... | org . junit . Assert . assertTrue ( ( l >= 500 ) ) |
emptyHMapReusesInstance ( ) { "<AssertPlaceHolder>" ; } emptyHMap ( ) { return com . jnape . palatable . lambda . adt . hmap . HMap . EMPTY ; } | org . junit . Assert . assertSame ( com . jnape . palatable . lambda . adt . hmap . HMap . emptyHMap ( ) , com . jnape . palatable . lambda . adt . hmap . HMap . emptyHMap ( ) ) |
test_tracking_settings_google_analytics_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 ( Meth... | org . junit . Assert . assertEquals ( 200 , response . getStatusCode ( ) ) |
testRemoveFromDoubleEmptyArray ( ) { double [ ] array = new double [ ] { } ; array = com . liferay . portal . kernel . util . ArrayUtil . remove ( array , 3.0 ) ; "<AssertPlaceHolder>" ; } isEmpty ( boolean [ ] ) { return com . liferay . portal . kernel . util . ArrayUtil . isEmpty ( array ) ; } | org . junit . Assert . assertTrue ( com . liferay . portal . kernel . util . ArrayUtil . isEmpty ( array ) ) |
testEvaluateIEvent1 ( ) { com . huawei . streaming . expression . MethodExpression methodExpression = new com . huawei . streaming . expression . MethodExpression ( new java . lang . String ( "abcdefg" ) , "substring" , new com . huawei . streaming . expression . IExpression [ ] { new com . huawei . streaming . express... | org . junit . Assert . assertEquals ( expected , actual ) |
withTwoNodes ( ) { treegraph . BinaryTreeNode root = new treegraph . BinaryTreeNode ( 1 ) ; root . left = new treegraph . BinaryTreeNode ( 2 ) ; "<AssertPlaceHolder>" ; } isBalanced ( treegraph . BinaryTreeNode ) { return ( isBalancedWithHeight ( root ) ) != ( - 1 ) ; } | org . junit . Assert . assertTrue ( s . isBalanced ( root ) ) |
testCounterDoesNotFailOperationsWhenNoMetricsContainerPresent ( ) { org . apache . beam . sdk . metrics . MetricsEnvironment . setCurrentContainer ( null ) ; "<AssertPlaceHolder>" ; java . util . HashMap < java . lang . String , java . lang . String > labels = new java . util . HashMap < java . lang . String , java . l... | org . junit . Assert . assertNull ( org . apache . beam . sdk . metrics . MetricsEnvironment . getCurrentContainer ( ) ) |
testFindDocumentsByCrisisID ( ) { try { qa . qcri . aidr . dbmanager . ejb . remote . facade . imp . TestDocumentResourceFacadeImp . documentDTO . setIsEvaluationSet ( true ) ; qa . qcri . aidr . dbmanager . ejb . remote . facade . imp . TestDocumentResourceFacadeImp . entityManager . getTransaction ( ) . begin ( ) ; q... | org . junit . Assert . assertEquals ( crisisId , result . get ( 0 ) . getCrisisDTO ( ) . getCrisisID ( ) ) |
testRecoverWith ( ) { int value = com . annimon . stream . Exceptional . of ( com . annimon . stream . ExceptionalTest . ioExceptionSupplier ) . recoverWith ( new com . annimon . stream . function . Function < java . lang . Throwable , com . annimon . stream . Exceptional < java . lang . Integer > > ( ) { @ com . annim... | org . junit . Assert . assertEquals ( 10 , value ) |
modifySubscription_RemoveOwner ( ) { createdSubscription = createSubscription ( ) ; createdSubscription = org . oscm . ws . SubscriptionServiceWSTest . subscrServiceForCustomer . subscribeToService ( createdSubscription , org . oscm . ws . SubscriptionServiceWSTest . freeService , org . oscm . ws . SubscriptionServiceW... | org . junit . Assert . assertNull ( modifiedSubscription . getOwnerId ( ) ) |
test_fixed_stream1 ( ) { java . math . BigDecimal testValue = new java . math . BigDecimal ( "471.1" ) ; org . omg . CORBA . Any any = setup . getClientOrb ( ) . create_any ( ) ; any . type ( setup . getClientOrb ( ) . create_fixed_tc ( ( ( short ) ( 4 ) ) , ( ( short ) ( 1 ) ) ) ) ; any . create_output_stream ( ) . wr... | org . junit . Assert . assertEquals ( testValue , any . extract_fixed ( ) ) |
testRegex2 ( ) { java . lang . String tags = "tag1=value1,tag2=value2,tag3=value3" ; java . lang . StringBuffer pattern = new java . lang . StringBuffer ( ) ; pattern . append ( "(^|.*,)" ) ; pattern . append ( "tag2" ) ; pattern . append ( "=" ) ; pattern . append ( "value\\d" ) ; pattern . append ( "(,.*|$)" ) ; java... | org . junit . Assert . assertTrue ( p . matcher ( tags ) . matches ( ) ) |
testGetTitle ( ) { final java . lang . String errorKey = org . drools . workbench . screens . guided . dtable . client . resources . i18n . GuidedDecisionTableErraiConstants . SummaryPage_NewColumn ; final java . lang . String errorMessage = "Title" ; when ( translationService . format ( errorKey ) ) . thenReturn ( err... | org . junit . Assert . assertEquals ( errorMessage , title ) |
testCheckTimeoutCommittingTimedOut ( ) { final java . lang . Exception [ ] checkTimeoutException = new com . sun . sgs . test . impl . service . transaction . Exception [ ] { null } ; com . sun . sgs . test . util . DummyTransactionParticipant participant = new com . sun . sgs . test . util . DummyTransactionParticipan... | org . junit . Assert . assertNull ( checkTimeoutException [ 0 ] ) |
testSetIpv4RouterIds ( ) { java . util . List list = new java . util . ArrayList ( ) ; list . add ( org . onlab . packet . Ip4Address . valueOf ( "1.1.1.1" ) ) ; ospfDeviceTed . setIpv4RouterIds ( list ) ; "<AssertPlaceHolder>" ; } ipv4RouterIds ( ) { return ipv4RouterIds ; } | org . junit . Assert . assertThat ( ospfDeviceTed . ipv4RouterIds ( ) . size ( ) , org . hamcrest . CoreMatchers . is ( 1 ) ) |
testRecursion ( ) { org . mapdb . elsa . AbstractMap . SimpleEntry b = new org . mapdb . elsa . AbstractMap . SimpleEntry ( "abcd" , null ) ; b . setValue ( b . getKey ( ) ) ; org . mapdb . elsa . AbstractMap . SimpleEntry bx = org . mapdb . elsa . ElsaSerializerBaseTest . clonePojo ( b ) ; "<AssertPlaceHolder>" ; asse... | org . junit . Assert . assertEquals ( bx , b ) |
testRidbagsUpdateDeltaAddWithCopy ( ) { com . orientechnologies . orient . core . db . ODatabaseSession db = null ; com . orientechnologies . orient . core . db . OrientDB odb = null ; try { odb = new com . orientechnologies . orient . core . db . OrientDB ( "memory:" , com . orientechnologies . orient . core . db . Or... | org . junit . Assert . assertEquals ( ridBag , mergedRidbag ) |
testNoOutputFolderCreation ( ) { org . eclipse . xtext . generator . OutputConfigurationProvider outputConfigurationProvider = new org . eclipse . xtext . generator . OutputConfigurationProvider ( ) { @ org . eclipse . xtext . builder . impl . Override public java . util . Set < org . eclipse . xtext . generator . Outp... | org . junit . Assert . assertFalse ( generatedFile . exists ( ) ) |
increment ( ) { counter . reset ( ) ; counter . increment ( ) ; "<AssertPlaceHolder>" ; } getValue ( ) { return value ; } | org . junit . Assert . assertEquals ( counter . getValue ( ) , 1 ) |
getEntityDifferentUserNoRoster ( ) { org . sakaiproject . entitybroker . entityprovider . search . Search search = new org . sakaiproject . entitybroker . entityprovider . search . Search ( ) ; search . addRestriction ( new org . sakaiproject . entitybroker . entityprovider . search . Restriction ( org . sakaiproject .... | org . junit . Assert . assertEquals ( 0 , entities . size ( ) ) |
testQueryableDistinct ( ) { final java . lang . String [ ] expected = new java . lang . String [ ] { "aa" , "bb" , "-cc" , "dd" , "-ee" } ; final java . util . List < java . lang . String > actual = me . josephzhu . java8inaction . test . queryable . Queryable . of ( data ) . distinct ( ) . toList ( ) ; "<AssertPlaceHo... | org . junit . Assert . assertArrayEquals ( expected , actual . toArray ( ) ) |
testUnknownCompressionCodec ( ) { com . streamsets . pipeline . stage . destination . hdfs . HdfsDTarget dTarget = new com . streamsets . pipeline . stage . destination . hdfs . BaseHdfsTargetIT . ForTestHdfsTarget ( ) ; configure ( dTarget ) ; dTarget . hdfsTargetConfigBean . compression = CompressionMode . OTHER ; dT... | org . junit . Assert . assertEquals ( 1 , target . init ( null , context ) . size ( ) ) |
testConcurrentLeadershipOperationsBlockingSuspend ( ) { final java . util . concurrent . CompletableFuture < org . apache . flink . runtime . messages . Acknowledge > suspendedFuture = new java . util . concurrent . CompletableFuture ( ) ; org . apache . flink . runtime . jobmaster . factories . TestingJobMasterService... | org . junit . Assert . assertThat ( leaderFuture . isDone ( ) , org . hamcrest . Matchers . is ( false ) ) |
testFindSSSR_IAtomContainer ( ) { org . openscience . cdk . interfaces . IAtomContainer molecule = org . openscience . cdk . templates . TestMoleculeFactory . makeAlphaPinene ( ) ; org . openscience . cdk . ringsearch . SSSRFinder sssrFinder = new org . openscience . cdk . ringsearch . SSSRFinder ( molecule ) ; org . o... | org . junit . Assert . assertEquals ( 2 , ringSet . getAtomContainerCount ( ) ) |
hasElapsedIfCurrentClockReadingCompletelyExceedsTargetRange ( ) { expect ( mockClock . getGranularity ( ) ) . andReturn ( 1L ) . anyTimes ( ) ; expect ( mockClock . getNanoTime ( ) ) . andReturn ( new org . fishwife . jrugged . interval . DiscreteInterval ( 4L , 5L ) ) ; expect ( mockClock . getNanoTime ( ) ) . andRetu... | org . junit . Assert . assertTrue ( impl . hasElapsed ( ) ) |
registerFirst ( ) { org . apache . apex . malhar . lib . state . spillable . SequentialSpillableIdentifierGenerator gen = new org . apache . apex . malhar . lib . state . spillable . SequentialSpillableIdentifierGenerator ( ) ; gen . register ( org . apache . apex . malhar . lib . util . TestUtils . getByte ( 0 ) ) ; b... | org . junit . Assert . assertArrayEquals ( org . apache . apex . malhar . lib . util . TestUtils . getByte ( 1 ) , id ) |
testEmpty ( ) { java . io . InputStream is = new java . io . ByteArrayInputStream ( new byte [ 0 ] ) ; byte [ ] bytes = io . grpc . internal . IoUtils . toByteArray ( is ) ; "<AssertPlaceHolder>" ; } toByteArray ( java . io . InputStream ) { java . io . ByteArrayOutputStream out = new java . io . ByteArrayOutputStream ... | org . junit . Assert . assertEquals ( 0 , bytes . length ) |
test ( ) { com . examples . with . different . packagename . testcarver . DifficultDependencyClass dependency = new com . examples . with . different . packagename . testcarver . DifficultDependencyClass ( ) ; dependency . inc ( ) ; dependency . inc ( ) ; dependency . inc ( ) ; dependency . inc ( ) ; dependency . inc (... | org . junit . Assert . assertTrue ( result ) |
testLocalMinimumThreshold ( ) { ops . run ( net . imagej . ops . Ops . Threshold . Minimum . class , out , in , new net . imglib2 . algorithm . neighborhood . RectangleShape ( 1 , false ) , new net . imglib2 . outofbounds . OutOfBoundsMirrorFactory < net . imglib2 . type . numeric . integer . ByteType , net . imglib2 .... | org . junit . Assert . assertEquals ( true , out . firstElement ( ) . get ( ) ) |
testReadB1GreatValue ( ) { _ios . writeByte ( 245 ) ; _ios . seek ( 0 ) ; final org . esa . s1tbx . io . binary . BinaryFileReader ceosReader = new org . esa . s1tbx . io . binary . BinaryFileReader ( _ios ) ; "<AssertPlaceHolder>" ; } readB1 ( ) { final long streamPosition = stream . getStreamPosition ( ) ; try { retu... | org . junit . Assert . assertEquals ( 245 , ceosReader . readB1 ( ) ) |
testBigNumberToStringToBigNumberWithShortLimitValues ( ) { org . pentaho . di . core . row . ValueMetaInterface numValueMeta = new org . pentaho . di . core . row . ValueMeta ( "i" , ValueMetaInterface . TYPE_BIGNUMBER ) ; numValueMeta . setDecimalSymbol ( "." ) ; numValueMeta . setGroupingSymbol ( "," ) ; java . lang ... | org . junit . Assert . assertEquals ( values [ i ] , stringToBigNumber ) |
deveObterIdComoFoiSetado ( ) { final com . fincatto . documentofiscal . nfe400 . classes . evento . manifestacaodestinatario . NFInfoEventoManifestacaoDestinatario infoEventoManifestacaoDestinatario = new com . fincatto . documentofiscal . nfe400 . classes . evento . manifestacaodestinatario . NFInfoEventoManifestacaoD... | org . junit . Assert . assertEquals ( id , infoEventoManifestacaoDestinatario . getId ( ) ) |
testTopicListHash ( ) { final org . kaaproject . kaa . client . persistence . KaaClientState clientState = org . mockito . Mockito . mock ( org . kaaproject . kaa . client . persistence . KaaClientState . class ) ; org . mockito . Mockito . doAnswer ( new org . mockito . stubbing . Answer < java . lang . Void > ( ) { @... | org . junit . Assert . assertEquals ( org . kaaproject . kaa . client . notification . TopicListHashCalculator . calculateTopicListHash ( topicList ) , request . getTopicListHash ( ) ) |
get_first_non_null_java ( ) { java . lang . String first = null ; java . lang . String second = "Stomp<sp>the<sp>Hawks,<sp>Badgers!" ; java . lang . String firstNullObject = null ; if ( first == null ) { if ( second != null ) { firstNullObject = second ; } } "<AssertPlaceHolder>" ; } | org . junit . Assert . assertEquals ( second , firstNullObject ) |
getApplicationContainerStatistics ( ) { javax . json . JsonObject stats = cut . getApplicationsContainerStatistics ( ) ; "<AssertPlaceHolder>" ; System . out . println ( ( "--<sp>getApplicationContainerStatistics--<sp>" + stats ) ) ; } getApplicationsContainerStatistics ( ) { javax . json . JsonObjectBuilder builder = ... | org . junit . Assert . assertNotNull ( stats ) |
testOneDelimiterByteStuffed ( ) { byte [ ] decodedPayload = new byte [ ] { 1 , 2 , HdlcTranslateConstants . FRAME_DELIMITER_BYTE , 3 , 4 } ; byte [ ] expectedEncodedPayload = new byte [ ] { HdlcTranslateConstants . FRAME_DELIMITER_BYTE , 1 , 2 , HdlcTranslateConstants . ESCAPE_BYTE , ( HdlcTranslateConstants . FRAME_DE... | org . junit . Assert . assertArrayEquals ( expectedEncodedPayload , actualEncodedPayload ) |
testGetSiteInfo ( ) { net . sourceforge . jwbf . mediawiki . actions . meta . Siteinfo siteinfo = testee . getSiteinfo ( ) ; "<AssertPlaceHolder>" ; } getMainpage ( ) { return mainpage ; } | org . junit . Assert . assertEquals ( "" , siteinfo . getMainpage ( ) ) |
testGetParametersWithDefaultEntityAndDisabledSecurity ( ) { unit . setSecurity ( false ) ; org . lnu . is . domain . education . form . type . EducationFormType entity = new org . lnu . is . domain . education . form . type . EducationFormType ( ) ; java . util . Map < java . lang . String , java . lang . Object > expe... | org . junit . Assert . assertEquals ( expected , actual ) |
entityEquality_commited_transaction ( ) { javax . persistence . EntityManager em = org . meri . jpa . simplest . LoadEntityTest . factory . createEntityManager ( ) ; em . getTransaction ( ) . begin ( ) ; org . meri . jpa . simplest . entities . Person person1 = em . find ( org . meri . jpa . simplest . entities . Perso... | org . junit . Assert . assertEquals ( person1 , person2 ) |
testInvokeVarargs07 ( ) { javax . el . BeanELResolver resolver = new javax . el . BeanELResolver ( ) ; javax . el . ELContext context = new javax . el . StandardELContext ( javax . el . ELManager . getExpressionFactory ( ) ) ; java . lang . Object result = resolver . invoke ( context , new javax . el . TesterBean ( jav... | org . junit . Assert . assertEquals ( javax . el . TestBeanELResolver . BEAN_NAME , result ) |
componentProcessesValueOfValuesFieldOnSubmit ( ) { final org . apache . tapestry5 . dom . Document document = this . renderPage ( se . unbound . tapestry . tagselect . components . TagSelectTest . PAGE_WITH_STRING_TAGS ) ; final org . apache . tapestry5 . dom . Element form = document . getElementById ( "form" ) ; fina... | org . junit . Assert . assertEquals ( "value" , "tag123;tag456" , element . getAttribute ( "value" ) ) |
testSubList ( ) { java . util . List < org . spout . api . inventory . ItemStack > subList = inventory . subList ( 5 , 15 ) ; for ( int i = 0 ; i < ( subList . size ( ) ) ; i ++ ) { "<AssertPlaceHolder>" ; } } get ( int ) { return getContents ( ) [ i ] ; } | org . junit . Assert . assertEquals ( inventory . get ( ( i + 5 ) ) , subList . get ( i ) ) |
get_response_interceptors ( ) { java . util . List < com . amazon . ask . request . interceptor . GenericResponseInterceptor < com . amazon . ask . sdk . TestHandlerInput , com . amazon . ask . sdk . TestHandlerOutput > > responseInterceptors = java . util . Collections . singletonList ( mock ( com . amazon . ask . req... | org . junit . Assert . assertEquals ( responseInterceptors , config . getResponseInterceptors ( ) ) |
testCacheStrategy ( ) { org . apache . druid . query . CacheStrategy < org . apache . druid . query . Result < org . apache . druid . query . timeboundary . TimeBoundaryResultValue > , java . lang . Object , org . apache . druid . query . timeboundary . TimeBoundaryQuery > strategy = new org . apache . druid . query . ... | org . junit . Assert . assertEquals ( result , fromCacheResult ) |
testHasObjectsReturnsTrueWhenNotEmpty ( ) { final org . bonitasoft . engine . archive . ArchiveInsertRecord record1 = new org . bonitasoft . engine . archive . ArchiveInsertRecord ( mock ( org . bonitasoft . engine . persistence . ArchivedPersistentObject . class ) ) ; final org . bonitasoft . engine . archive . Archiv... | org . junit . Assert . assertTrue ( callable . hasObjects ( ) ) |
testLoad2 ( ) { java . util . Properties properties = com . liferay . portal . kernel . util . PropertiesUtil . load ( new com . liferay . portal . kernel . io . unsync . UnsyncStringReader ( com . liferay . portal . kernel . util . PropertiesUtilTest . _PROPERTIES_STRING ) ) ; for ( java . lang . String [ ] property :... | org . junit . Assert . assertEquals ( property [ 1 ] , properties . get ( property [ 0 ] ) ) |
test2 ( ) { org . trie4j . tail . index . TailIndexBuilder tib = new org . trie4j . tail . index . ArrayTailIndexBuilder ( ) ; org . trie4j . tail . index . TailIndex ti = tib . build ( ) ; "<AssertPlaceHolder>" ; } size ( ) { return trie . size ( ) ; } | org . junit . Assert . assertEquals ( 0 , ti . size ( ) ) |
testSingleTestTEBASEwithNoConfigFileInATest ( ) { try { java . io . File tebase = new java . io . File ( classp , "tebase-no-config-in-test" ) ; com . occamlab . te . web . ConfigFileCreator configFileCreator = new com . occamlab . te . web . ConfigFileCreator ( ) ; configFileCreator . create ( tebase ) ; java . io . F... | org . junit . Assert . assertEquals ( 0 , orgs . getLength ( ) ) |
testSize ( ) { org . apache . tajo . datum . Datum d = org . apache . tajo . datum . DatumFactory . createText ( "12345" ) ; "<AssertPlaceHolder>" ; } size ( ) { return taskRequestQueue . size ( ) ; } | org . junit . Assert . assertEquals ( 5 , d . size ( ) ) |
givenWildcardPattern_andAgentIsEmpty_whenGetMatchSpecificity_thenReturnsZero ( ) { com . brandwatch . robots . matching . Matcher < java . lang . String > matcher = com . brandwatch . robots . matching . MatcherUtilsImplTest . newPatternMatcher ( "*" ) ; java . lang . String agent = "" ; com . google . common . base . ... | org . junit . Assert . assertThat ( specificity . get ( ) , org . hamcrest . Matchers . equalTo ( 0.0 ) ) |
testRecordVTReadWrite ( ) { java . lang . String ns = "testRecordVTWrite" ; org . lilyproject . repository . api . FieldType fieldType1 = org . lilyproject . repository . impl . test . ValueTypeTest . typeManager . createFieldType ( org . lilyproject . repository . impl . test . ValueTypeTest . typeManager . newFieldTy... | org . junit . Assert . assertEquals ( createdRecord . getFields ( ) , readRecord . getFields ( ) ) |
getResultTest ( ) { final java . lang . String testResult = org . threadly . util . StringUtils . makeRandomString ( 5 ) ; org . threadly . concurrent . PriorityScheduler scheduler = new org . threadly . concurrent . StrictPriorityScheduler ( 1 ) ; try { scheduler . schedule ( new java . lang . Runnable ( ) { @ org . t... | org . junit . Assert . assertTrue ( ( ( slf . get ( ) ) == testResult ) ) |
removeIndexGroup ( ) { addIndexGroup ( ) ; final org . locationtech . geowave . core . store . cli . config . RemoveIndexCommand commandRemove = new org . locationtech . geowave . core . store . cli . config . RemoveIndexCommand ( ) ; commandRemove . setEntryName ( "abc" ) ; commandRemove . prepare ( operationParams ) ... | org . junit . Assert . assertEquals ( 1 , props . size ( ) ) |
testCheckColumnEnforceVersions ( ) { org . apache . hadoop . hbase . regionserver . querymatcher . ScanWildcardColumnTracker tracker = new org . apache . hadoop . hbase . regionserver . querymatcher . ScanWildcardColumnTracker ( 0 , org . apache . hadoop . hbase . regionserver . querymatcher . TestScanWildcardColumnTra... | org . junit . Assert . assertEquals ( expected . get ( i ) , actual . get ( i ) ) |
testRelatieDatumAanvangActueel ( ) { final java . util . Set < nl . bzk . brp . domain . algemeen . ZoekCriterium > zoekCriteria = new java . util . HashSet ( ) ; nl . bzk . brp . domain . algemeen . ZoekCriterium zoekCriteria1 = new nl . bzk . brp . domain . algemeen . ZoekCriterium ( getAttribuutElement ( Element . H... | org . junit . Assert . assertEquals ( 2 , ids . size ( ) ) |
deveObterDestinatarioComoFoiSetado ( ) { final com . fincatto . documentofiscal . nfe310 . classes . nota . NFNotaInfo notaInfo = new com . fincatto . documentofiscal . nfe310 . classes . nota . NFNotaInfo ( ) ; final com . fincatto . documentofiscal . nfe310 . classes . nota . NFNotaInfoDestinatario destinatario = com... | org . junit . Assert . assertEquals ( destinatario , notaInfo . getDestinatario ( ) ) |
invalidInput ( ) { "<AssertPlaceHolder>" ; } trace ( java . lang . String ) { if ( == null ) return com . bugquery . stacktrace . Extract . notFound ; java . lang . String $ = "" ; for ( final com . bugquery . stacktrace . Matcher m = com . bugquery . stacktrace . Extract . tracePattern . matcher ( ) ; m . find ( ) ; )... | org . junit . Assert . assertEquals ( Extract . notFound , com . bugquery . stacktrace . Extract . trace ( null ) ) |
testApplyTransforms_simple_hosshoi_kar ( ) { java . util . List < java . lang . Integer > glyphsAfterGsub = java . util . Arrays . asList ( 56 , 102 , 91 ) ; java . util . List < java . lang . Integer > result = gsubWorkerForBengali . applyTransforms ( getGlyphIds ( "" ) ) ; "<AssertPlaceHolder>" ; } getGlyphIds ( java... | org . junit . Assert . assertEquals ( glyphsAfterGsub , result ) |
testUnoundUsers3 ( ) { int previous = transactionService . runOnAnotherReadOnlyTransaction ( new org . libreplan . business . common . IOnTransaction < java . lang . Integer > ( ) { @ org . libreplan . business . test . users . daos . Override public org . libreplan . business . test . users . daos . Integer execute ( ... | org . junit . Assert . assertEquals ( ( previous + 1 ) , size ) |
testGetFirstReleaseNull ( ) { ch . puzzle . itc . mobiliar . business . releasing . entity . ReleaseEntity rel = resourceGroup . getFirstRelease ( ) ; "<AssertPlaceHolder>" ; } getFirstRelease ( ) { ch . puzzle . itc . mobiliar . business . releasing . entity . ReleaseEntity firstRelease = null ; if ( ( resources ) != ... | org . junit . Assert . assertEquals ( null , rel ) |
getFieldValue ( ) { class MyClass { public com . vaadin . util . Integer getField ( ) { return 1 ; } public void setField ( java . lang . Integer i ) { } } class MySubClass extends MyClass { public java . lang . String field = "Hello" ; } MySubClass myInstance = new MySubClass ( ) ; java . lang . reflect . Field member... | org . junit . Assert . assertTrue ( ( fieldValue instanceof java . lang . String ) ) |
asMulti_array ( ) { ezvcard . io . json . JCardValue value = new ezvcard . io . json . JCardValue ( new ezvcard . io . json . JsonValue ( java . util . Arrays . asList ( new ezvcard . io . json . JsonValue ( "value1" ) , new ezvcard . io . json . JsonValue ( false ) ) ) ) ; "<AssertPlaceHolder>" ; } asMulti ( ) { if ( ... | org . junit . Assert . assertEquals ( java . util . Arrays . asList ( ) , value . asMulti ( ) ) |
verifyCreatesAndRemovesNode ( ) { sut . put ( com . spotify . helios . servicescommon . coordination . ZooKeeperUpdatingPersistentDirectoryTest . FOO_NODE , com . spotify . helios . servicescommon . coordination . ZooKeeperUpdatingPersistentDirectoryTest . BAR1_DATA ) ; final byte [ ] remote = awaitNode ( com . spotify... | org . junit . Assert . assertArrayEquals ( com . spotify . helios . servicescommon . coordination . ZooKeeperUpdatingPersistentDirectoryTest . BAR1_DATA , remote ) |
testTrainC_ClassificationDataSet_ExecutorService ( ) { System . out . println ( "trainC" ) ; for ( boolean useAverageModel : new boolean [ ] { true , false } ) for ( int burnin : new int [ ] { 0 , 50 , 100 , 250 } ) { jsat . classifiers . linear . kernelized . OSKL instance = new jsat . classifiers . linear . kernelize... | org . junit . Assert . assertEquals ( 0 , cme . getErrorRate ( ) , 0.0 ) |
testGPX10 ( ) { final javax . ws . rs . core . Response response = com . graphhopper . matching . http . MapMatchingResourceTest . app . client ( ) . target ( "http://localhost:8080/match" ) . request ( ) . buildPost ( javax . ws . rs . client . Entity . xml ( getClass ( ) . getResourceAsStream ( "gpxv1_0.gpx" ) ) ) . ... | org . junit . Assert . assertEquals ( 200 , response . getStatus ( ) ) |
testGetLargeJobExecutorPoolSize ( ) { int expResult = 200 ; int result = instance . getLargeJobExecutorPoolSize ( ) ; "<AssertPlaceHolder>" ; } getLargeJobExecutorPoolSize ( ) { return largejobPoolSize ; } | org . junit . Assert . assertEquals ( expResult , result ) |
testDeleteMseaMdById ( ) { org . onosproject . yang . gen . v1 . mseacfm . rev20160229 . mseacfm . mefcfm . MaintenanceDomain md = new org . onosproject . yang . gen . v1 . mseacfm . rev20160229 . mseacfm . mefcfm . DefaultMaintenanceDomain ( ) ; org . onosproject . yang . gen . v1 . mseacfm . rev20160229 . mseacfm . m... | org . junit . Assert . assertTrue ( deleted ) |
getBestTest ( ) { int n = 3 ; org . openscience . cdk . group . AbstractDiscretePartitionRefinerTest . Graph g = new org . openscience . cdk . group . AbstractDiscretePartitionRefinerTest . Graph ( n ) ; g . connectionTable = new int [ ] [ ] { new int [ ] { 0 , 1 , 0 } , new int [ ] { 1 , 0 , 1 } , new int [ ] { 0 , 1 ... | org . junit . Assert . assertEquals ( expected , best ) |
testGetVisibleDataTypeListItems ( ) { final org . kie . workbench . common . dmn . client . editors . types . listview . DataTypeList dataTypeList = mock ( org . kie . workbench . common . dmn . client . editors . types . listview . DataTypeList . class ) ; final org . kie . workbench . common . dmn . client . editors ... | org . junit . Assert . assertEquals ( expected , actual ) |
dontAllowRegistrationAfterNextCallTest ( ) { org . apache . apex . malhar . lib . state . spillable . SequentialSpillableIdentifierGenerator gen = new org . apache . apex . malhar . lib . state . spillable . SequentialSpillableIdentifierGenerator ( ) ; gen . next ( ) ; boolean exception = false ; try { gen . register (... | org . junit . Assert . assertTrue ( exception ) |
testNoDefaultMetadataId ( ) { org . locationtech . geogig . model . Node ln = org . locationtech . geogig . model . RevObjectFactory . defaultInstance ( ) . createNode ( NodeRef . ROOT , RevTree . EMPTY_TREE_ID , ObjectId . NULL , TYPE . TREE , new org . locationtech . jts . geom . Envelope ( 0 , 0 , 0 , 0 ) , null ) ;... | org . junit . Assert . assertEquals ( entry , read ) |
testSelectSimple2 ( ) { com . iciql . test . models . Product p = new com . iciql . test . models . Product ( ) ; java . util . List < java . lang . String > productNames = db . from ( p ) . orderBy ( p . productId ) . select ( p . productName ) ; java . util . List < com . iciql . test . models . Product > products = ... | org . junit . Assert . assertEquals ( products . get ( i ) . productName , productNames . get ( i ) ) |
testNoViableAltAvoidance ( ) { java . lang . String expecting = "line<sp>1:1<sp>mismatched<sp>input<sp>\'.\'<sp>expecting<sp>\'!\'\n" ; java . lang . String result = stderrDuringParse ; "<AssertPlaceHolder>" ; } | org . junit . Assert . assertEquals ( expecting , result ) |
deveObterNumeroSequencialEventoComoFoiSetado ( ) { final com . fincatto . documentofiscal . nfe310 . classes . evento . NFInfoEventoRetorno eventoRetorno = new com . fincatto . documentofiscal . nfe310 . classes . evento . NFInfoEventoRetorno ( ) ; final int numeroSequencialEvento = 1 ; eventoRetorno . setNumeroSequenc... | org . junit . Assert . assertEquals ( numeroSequencialEvento , eventoRetorno . getNumeroSequencialEvento ( ) , 0 ) |
testShouldNotReturnItFromAllPortlets ( ) { com . liferay . portal . kernel . service . PortletPreferencesLocalServiceUtil . addPortletPreferences ( com . liferay . portal . kernel . test . util . TestPropsValues . getCompanyId ( ) , PortletKeys . PREFS_OWNER_ID_DEFAULT , PortletKeys . PREFS_OWNER_TYPE_LAYOUT , layout .... | org . junit . Assert . assertFalse ( allPortlets . toString ( ) , allPortlets . contains ( _testNonembeddedPortlet ) ) |
testGetElements ( ) { final com . allanbank . mongodb . bson . Element subElement = new com . allanbank . mongodb . bson . element . BooleanElement ( "1" , false ) ; final com . allanbank . mongodb . bson . element . DocumentElement element = new com . allanbank . mongodb . bson . element . DocumentElement ( "foo" , su... | org . junit . Assert . assertEquals ( java . util . Collections . singletonList ( subElement ) , element . getElements ( ) ) |
onDetachFocusLostSentToParent ( ) { jetbrains . jetpad . cell . TextCell v = new jetbrains . jetpad . cell . TextCell ( ) ; v . focusable ( ) . set ( true ) ; container . root . children ( ) . add ( v ) ; v . focus ( ) ; final jetbrains . jetpad . base . Value < java . lang . Boolean > focusLostCalled = new jetbrains .... | org . junit . Assert . assertTrue ( focusLostCalled . get ( ) ) |
testExistsWithValue ( ) { org . hl7 . fhir . dstu3 . utils . Patient patient = new org . hl7 . fhir . dstu3 . utils . Patient ( ) ; patient . setDeceased ( new org . hl7 . fhir . dstu3 . utils . BooleanType ( false ) ) ; java . util . List < org . hl7 . fhir . dstu3 . utils . Base > eval = org . hl7 . fhir . dstu3 . ut... | org . junit . Assert . assertTrue ( ( ( org . hl7 . fhir . dstu3 . utils . BooleanType ) ( eval . get ( 0 ) ) ) . getValue ( ) ) |
testDefaults ( ) { int count = testDefaults ( 1000 , 1000 ) ; "<AssertPlaceHolder>" ; } is ( int ) { return ( get ( ) ) == err ; } | org . junit . Assert . assertThat ( count , org . hamcrest . CoreMatchers . is ( 1000 ) ) |
testIssue41 ( ) { for ( int x = 0 ; x < 64 ; x ++ ) { int [ ] a = new int [ ] { 2 , 3 , 4 , 5 } ; int [ ] b = new int [ 90 ] ; int [ ] c = new int [ a . length ] ; me . lemire . integercompression . SkippableIntegratedIntegerCODEC codec = new me . lemire . integercompression . SkippableIntegratedComposition ( new me . ... | org . junit . Assert . assertArrayEquals ( a , c ) |
testCreateFromBuffer ( ) { io . vertx . core . json . JsonArray excepted = new io . vertx . core . json . JsonArray ( ) ; excepted . add ( "foobar" ) ; excepted . add ( 123 ) ; io . vertx . core . buffer . Buffer buf = io . vertx . core . buffer . Buffer . buffer ( excepted . encode ( ) ) ; "<AssertPlaceHolder>" ; } en... | org . junit . Assert . assertEquals ( excepted , new io . vertx . core . json . JsonArray ( buf ) ) |
testCopyLongArrayIntIntArrayImgOfT ( ) { final long [ ] input = new long [ ] { 0 , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 } ; final int [ ] offsets = new int [ ] { 0 , 0 , 8 } ; final int [ ] [ ] strides = new int [ ] [ ] { new int [ ] { 1 , 3 } , new int [ ] { 3 , 1 } , new int [ ] { - 1 , - 3 } } ; final long [ ] [ ] [ ] expe... | org . junit . Assert . assertEquals ( expected [ i ] [ y ] [ x ] , ra . get ( ) . get ( ) , 0 ) |
isInitialized_false ( ) { final org . apache . accumulo . core . client . Connector connector = getClusterInstance ( ) . getConnector ( ) ; final org . apache . rya . api . instance . RyaDetailsRepository repo = new org . apache . rya . accumulo . instance . AccumuloRyaInstanceDetailsRepository ( connector , getRyaInst... | org . junit . Assert . assertFalse ( repo . isInitialized ( ) ) |
serialize_bindingsSubsetOfVarOrder ( ) { final org . eclipse . rdf4j . query . impl . MapBindingSet originalBindingSet = new org . eclipse . rdf4j . query . impl . MapBindingSet ( ) ; originalBindingSet . addBinding ( "x" , org . apache . rya . indexing . pcj . storage . accumulo . AccumuloPcjSerializerTest . VF . crea... | org . junit . Assert . assertEquals ( originalBindingSet , deserialized ) |
testTransformValues ( ) { gnu . trove . THashMap < java . lang . String , java . lang . String > tHashMapWithRealDelegate = new gnu . trove . THashMap ( ) ; tHashMapWithRealDelegate . put ( gnu . trove . THashMapTest . HELLO , gnu . trove . THashMapTest . WORLD ) ; tHashMapWithRealDelegate . transformValues ( ( value )... | org . junit . Assert . assertEquals ( "New" , tHashMapWithRealDelegate . get ( gnu . trove . THashMapTest . HELLO ) ) |
testJsonSerializer ( ) { com . github . ldriscoll . ektorplucene . designdocument . LuceneDefaults defaults = new com . github . ldriscoll . ektorplucene . designdocument . LuceneDefaults ( ) ; defaults . setStore ( "yes" ) ; defaults . setIndex ( "not_analyzed" ) ; com . github . ldriscoll . ektorplucene . designdocum... | org . junit . Assert . assertEquals ( index , convertedIndex ) |
testRecoveryWillIgnoreMinReplication ( ) { tearDown ( ) ; final int blockSize = 4096 ; final int numReplicas = 3 ; final java . lang . String filename = "/testIgnoreMinReplication" ; final org . apache . hadoop . fs . Path filePath = new org . apache . hadoop . fs . Path ( filename ) ; org . apache . hadoop . conf . Co... | org . junit . Assert . assertEquals ( dataNodes . size ( ) , numReplicas ) |
testShouldCleanUpProcessorsOnUpdateAndCheckIn ( ) { java . util . concurrent . atomic . AtomicBoolean cleanUp = registerCleanUpDLProcessor ( ) ; com . liferay . portal . kernel . repository . model . FileEntry fileEntry = com . liferay . document . library . kernel . service . DLAppServiceUtil . addFileEntry ( _service... | org . junit . Assert . assertTrue ( cleanUp . get ( ) ) |
shouldReturnColumnLabelFromQueryResultColumNames ( ) { for ( int i = 0 ; i != ( columnNames . length ) ; ++ i ) { "<AssertPlaceHolder>" ; } } getColumnLabel ( int ) { return provider . getStringValue ( adjustColumn ( index ) , ResultsMetadataConstants . COLUMN_LABEL ) ; } | org . junit . Assert . assertThat ( metadata . getColumnLabel ( ( i + 1 ) ) , org . hamcrest . core . Is . is ( columnNames [ i ] ) ) |
testNoSystemVariableSet ( ) { java . lang . System . clearProperty ( "nhinc.properties.dir" ) ; gov . hhs . fha . nhinc . properties . PropertyAccessorFileUtilities fileUtilities = new gov . hhs . fha . nhinc . properties . PropertyAccessorFileUtilities ( ) ; "<AssertPlaceHolder>" ; } getPropertyFileLocation ( ) { retu... | org . junit . Assert . assertEquals ( "" , fileUtilities . getPropertyFileLocation ( ) ) |
getModifiersTest ( ) { for ( Map . Entry < java . lang . reflect . Field , jdk . vm . ci . meta . ResolvedJavaField > e : fields . entrySet ( ) ) { int expected = e . getKey ( ) . getModifiers ( ) ; int actual = e . getValue ( ) . getModifiers ( ) ; "<AssertPlaceHolder>" ; } } | org . junit . Assert . assertEquals ( expected , actual ) |
setAndGetAccount ( ) { fi . helsinki . cs . tmc . cli . backend . Account account = new fi . helsinki . cs . tmc . cli . backend . Account ( ) ; settings . setAccount ( null , account ) ; "<AssertPlaceHolder>" ; } getAccount ( ) { verifySearchIsCalled ( ) ; return account ; } | org . junit . Assert . assertEquals ( account , settings . getAccount ( ) ) |
testGetSubResourceProperties ( ) { org . apache . ambari . server . api . resources . ResourceDefinition resourceDefinition = new org . apache . ambari . server . api . resources . StackResourceDefinition ( ) ; java . util . Map < org . apache . ambari . server . controller . spi . Resource . Type , java . lang . Strin... | org . junit . Assert . assertEquals ( expected , properties ) |
shouldConsumeInCaseInsensitiveMannerWithExpectedValuesWhenMatchingNonExactCase ( ) { makeCaseInsensitive ( ) ; tokens . consume ( "SELECT" ) ; tokens . consume ( "ALL" ) ; tokens . consume ( "COLUMNS" ) ; tokens . consume ( "FROM" ) ; tokens . consume ( "THIS" ) ; tokens . consume ( "TABLE" ) ; "<AssertPlaceHolder>" ; ... | org . junit . Assert . assertThat ( tokens . hasNext ( ) , org . hamcrest . core . Is . is ( false ) ) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.