input
stringlengths
28
18.7k
output
stringlengths
39
1.69k
testMouseEventsShouldBubbleUpToContainingElements ( ) { driver . get ( pages . javascriptPage ) ; driver . findElement ( org . openqa . selenium . By . id ( "child" ) ) . click ( ) ; org . openqa . selenium . WebElement result = driver . findElement ( org . openqa . selenium . By . id ( "result" ) ) ; wait . until ( or...
org . junit . Assert . assertThat ( result . getText ( ) , org . hamcrest . Matchers . equalTo ( "mouse<sp>down" ) )
givenEmpty ( ) { final java . util . Map < java . lang . String , java . lang . String > map = FixtureScript . ExecutionContext . asKeyValueMap ( "" ) ; "<AssertPlaceHolder>" ; } size ( ) { return instances . size ( ) ; }
org . junit . Assert . assertThat ( map . size ( ) , org . hamcrest . CoreMatchers . is ( 0 ) )
testOrderingNestedChildNodes3 ( ) { final org . opendaylight . yangtools . yang . model . api . Module justFoo = org . opendaylight . yangtools . yang . stmt . TestUtils . loadModuleResources ( getClass ( ) , "/ordering/foo.yang" ) . getModules ( ) . iterator ( ) . next ( ) ; final org . opendaylight . yangtools . yang...
org . junit . Assert . assertArrayEquals ( expectedOrder , actualOrder )
testHeapCacualtion_13 ( ) { tool = new org . teiid . sizing . Caculation ( 5 , 400 , false ) ; "<AssertPlaceHolder>" ; } heapCaculation ( ) { int sources = this . getSource_count ( ) ; int concurrent = this . getQueries_concurrent ( ) ; int total_in_mb = ( ( concurrent * 5 ) * sources ) + 300 ; int heap = ( total_in_mb...
org . junit . Assert . assertEquals ( 16 , tool . heapCaculation ( ) )
testRemove ( ) { p1 . remove ( ) ; "<AssertPlaceHolder>" ; } V ( ) { return this ; }
org . junit . Assert . assertEquals ( 1 , p1 . V ( ) . count ( ) )
importData_UpdatedIndexDefinition ( ) { org . apache . jackrabbit . oak . spi . state . NodeBuilder builder = store . getRoot ( ) . builder ( ) ; builder . child ( "idx-a" ) . setProperty ( "type" , "property" ) ; builder . child ( "idx-a" ) . setProperty ( "foo" , "bar" ) ; store . merge ( builder , EmptyHook . INSTAN...
org . junit . Assert . assertEquals ( "bar" , defn . getString ( "foo" ) )
clientRequestSingleHeaderCookieSplitIntoMultipleEntries ( ) { boostrapEnv ( 1 , 1 , 1 ) ; final io . netty . handler . codec . http . FullHttpRequest request = new io . netty . handler . codec . http . DefaultFullHttpRequest ( io . netty . handler . codec . http . HttpVersion . HTTP_1_1 , io . netty . handler . codec ....
org . junit . Assert . assertEquals ( request , capturedRequests . get ( 0 ) )
testFirstFunction ( ) { com . srotya . sidewinder . core . functions . list . FirstFunction f = new com . srotya . sidewinder . core . functions . list . FirstFunction ( ) ; double [ ] values = new double [ ] { 2.2 , 1.1 , 3.3 , 4.4 } ; java . util . List < com . srotya . sidewinder . core . storage . DataPoint > dps =...
org . junit . Assert . assertEquals ( 2.2 , result . getDataPoints ( ) . get ( 0 ) . getValue ( ) , 0 )
testGetAsTypeArchivePath ( ) { org . jboss . shrinkwrap . api . Archive < ? > archive = getArchive ( ) ; org . jboss . shrinkwrap . api . GenericArchive child = org . jboss . shrinkwrap . api . ShrinkWrap . create ( org . jboss . shrinkwrap . api . GenericArchive . class ) ; archive . add ( child , "/" , org . jboss . ...
org . junit . Assert . assertNotNull ( found )
testStart_failsWithBrokenConfiguration ( ) { java . lang . Exception exception = new java . lang . IllegalStateException ( ) ; simulateExceptionInConfiguration ( exception ) ; try { applicationRunner . start ( ) ; org . junit . Assert . fail ( ) ; } catch ( java . lang . IllegalStateException actual ) { "<AssertPlaceHo...
org . junit . Assert . assertSame ( exception , actual )
whenAbsolutePathResolved_thenSuccess ( ) { java . io . File file = new java . io . File ( "baeldung/foo/foo-one.txt" ) ; java . lang . String expectedPath = ( org . baeldung . java . io . JavaFilePathUnitTest . isWindows ( ) ) ? ( org . baeldung . java . io . JavaFilePathUnitTest . userDir ) + "\\baeldung\\foo\\foo-one...
org . junit . Assert . assertEquals ( expectedPath , actualPath )
testGetInfoForTypeAllTypes ( ) { for ( org . sagebionetworks . repo . model . table . ColumnType type : org . sagebionetworks . repo . model . table . ColumnType . values ( ) ) { org . sagebionetworks . table . cluster . ColumnTypeInfo info = org . sagebionetworks . table . cluster . ColumnTypeInfo . getInfoForType ( t...
org . junit . Assert . assertNotNull ( info )
getRootTemplateProduct_HasTemplate ( ) { org . oscm . domobjects . Product product = givenProduct ( ) ; org . oscm . domobjects . Product template = new org . oscm . domobjects . Product ( ) ; template . setKey ( 2 ) ; template . setProductId ( "template_id" ) ; product . setTemplate ( template ) ; org . oscm . domobje...
org . junit . Assert . assertEquals ( result , template )
testGetCatalyticActivities ( ) { java . util . List < java . lang . String > expResult = new java . util . ArrayList ( ) ; expResult . add ( ( "(1)<sp>An<sp>alcohol<sp>+<sp>NAD(+)<sp>=<sp>an<sp>aldehyde<sp>or<sp>ketone<sp>+<sp>NADH.<sp>" + "(2)<sp>A<sp>secondary<sp>alcohol<sp>+<sp>NAD(+)<sp>=<sp>a<sp>ketone<sp>+<sp>NAD...
org . junit . Assert . assertEquals ( expResult , result )
testProcessAction01 ( ) { java . lang . String action = requestDataValueProcessorAdaptor . processAction ( request , "action" ) ; "<AssertPlaceHolder>" ; } processAction ( javax . servlet . http . HttpServletRequest , java . lang . String ) { return action ; }
org . junit . Assert . assertThat ( action , org . hamcrest . core . Is . is ( "action" ) )
testConstructor ( ) { final java . lang . Object translatable = newTranslatableInstance ( translatableContainer . getClazz ( ) ) ; "<AssertPlaceHolder>" ; } getClazz ( ) { return clazz ; }
org . junit . Assert . assertNotNull ( translatable )
testBlockDeletionTimeout ( ) { org . apache . hadoop . conf . Configuration conf = new org . apache . hadoop . hdds . conf . OzoneConfiguration ( ) ; conf . set ( ScmConfigKeys . OZONE_SCM_KEY_VALUE_CONTAINER_DELETION_CHOOSING_POLICY , org . apache . hadoop . ozone . container . common . impl . RandomContainerDeletionC...
org . junit . Assert . assertTrue ( ( ! ( newLog . getOutput ( ) . contains ( "Background<sp>task<sp>executes<sp>timed<sp>out,<sp>retrying<sp>in<sp>next<sp>interval" ) ) ) )
testTotallyEmptyModel ( ) { java . lang . String json = org . apache . commons . io . IOUtils . toString ( getResourceAsStream ( "/live-beans-models/totally-empty-live-beans-model.json" ) ) ; org . springframework . ide . vscode . commons . boot . app . cli . livebean . LiveBeansModel model = org . springframework . id...
org . junit . Assert . assertEquals ( 0 , bean . size ( ) )
testGetIssues_byId ( ) { com . hp . alm . ali . idea . RestInvocations . loadMetadata ( handler , "defect" ) ; com . hp . alm . ali . idea . RestInvocations . loadMetadata ( handler , "release-backlog-item" ) ; com . hp . alm . ali . idea . RestInvocations . loadMetadata ( handler , "requirement" ) ; handler . addReque...
org . junit . Assert . assertEquals ( 0 , list . length )
subSupNonUnicode ( ) { java . lang . String input = "<SB>Z+1</SB><sp><SP>Z<sp>-<sp>1</SP>" ; java . lang . String expect = "<sub>Z+1</sub><sp><sup>Z<sp>-<sp>1</sup>" ; java . lang . String actual = format . getSimpleHtml ( input ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertEquals ( expect , actual )
testCreatePreviewCell ( ) { java . lang . String input = "foo" ; java . lang . String result = org . sagebionetworks . repo . manager . file . preview . TabCsvPreviewGenerator . createPreviewCell ( input ) ; "<AssertPlaceHolder>" ; } createPreviewCell ( java . lang . String ) { if ( inputCell == null ) { return null ; ...
org . junit . Assert . assertEquals ( input , result )
testNullReturnedOnClosedParserOnNextToken ( ) { "<AssertPlaceHolder>" ; } nextToken ( ) { if ( ( ( ! ( _allowMultipleMatches ) ) && ( ( _currToken ) != null ) ) && ( ( _exposedContext ) == null ) ) { if ( ( ( ( _currToken . isScalarValue ( ) ) && ( ! ( _headContext . isStartHandled ( ) ) ) ) && ( ! ( _includePath ) ) )...
org . junit . Assert . assertNull ( parser . nextToken ( ) )
shouldReset ( ) { runnerCounter . getRunnerNumber ( ) ; runnerCounter . getRunnerNumber ( ) ; runnerCounter . getRunnerNumber ( ) ; runnerCounter . reset ( ) ; "<AssertPlaceHolder>" ; } getRunnerNumber ( ) { return ( runnerNumber ) ++ ; }
org . junit . Assert . assertThat ( runnerCounter . getRunnerNumber ( ) , org . hamcrest . core . Is . is ( 1 ) )
testSerialization4 ( ) { org . jfree . data . time . RegularTimePeriod t = new org . jfree . data . time . Day ( ) ; org . jfree . data . time . TimeSeries series = new org . jfree . data . time . TimeSeries ( "Series<sp>1" ) ; series . add ( t , 36.4 ) ; t = t . next ( ) ; series . add ( t , 63.5 ) ; org . jfree . dat...
org . junit . Assert . assertEquals ( c1 , c2 )
testRandom ( ) { com . zsmartsystems . zigbee . security . ZigBeeKey key = com . zsmartsystems . zigbee . security . ZigBeeKey . createRandom ( ) ; "<AssertPlaceHolder>" ; } isValid ( ) { if ( ( ( panId ) == null ) || ( ( panId . length ) != 8 ) ) { return false ; } int cnt0 = 0 ; int cntF = 0 ; for ( int val : panId )...
org . junit . Assert . assertTrue ( key . isValid ( ) )
test_constructor_failure ( ) { final java . lang . String componentname = "ConstructorComponent.unsatisfied" ; org . osgi . service . component . runtime . dto . ComponentConfigurationDTO cc = getDisabledConfigurationAndEnable ( componentname , ComponentConfigurationDTO . SATISFIED ) ; "<AssertPlaceHolder>" ; this . fa...
org . junit . Assert . assertEquals ( 0 , cc . description . init )
writeBeanInvalidBean_hasBindings_singleEvent ( ) { binder . forField ( nameField ) . bind ( Person :: getFirstName , Person :: setFirstName ) ; binder . readBean ( item ) ; binder . withValidator ( com . vaadin . data . Validator . from ( ( person ) -> false , "" ) ) ; binder . addStatusChangeListener ( this :: statusC...
org . junit . Assert . assertNull ( event . get ( ) )
inputStream ( ) { java . lang . String data = "one<sp>two<sp>three" ; byte [ ] bytes = data . getBytes ( "UTF-8" ) ; ezvcard . util . Utf8Reader reader = new ezvcard . util . Utf8Reader ( new java . io . ByteArrayInputStream ( bytes ) ) ; java . lang . String expected = data ; java . lang . String actual = new ezvcard ...
org . junit . Assert . assertEquals ( expected , actual )
shouldSavePreferredCargoPath ( ) { config . setCargoPath ( "/new/path/to/cargo" ) ; "<AssertPlaceHolder>" ; } getCargoPath ( ) { return getPref ( com . github . drrb . rust . netbeans . configuration . RustConfiguration . Preference . CARGO_PATH , os . defaultCargoPath ) ; }
org . junit . Assert . assertThat ( config . getCargoPath ( ) , org . hamcrest . Matchers . is ( "/new/path/to/cargo" ) )
testGetNonWffAssertExplanation_CycAccess ( ) { System . out . println ( "getNonWffAssertExplanation" ) ; org . opencyc . cycobject . CycFormulaSentence instance = org . opencyc . cycobject . CycFormulaSentenceTest . cycAccess . makeCycSentence ( "(#$isa<sp>#$MarkDuggan-SoccerPlayer<sp>#$BiologicalLivingObject)" ) ; jav...
org . junit . Assert . assertEquals ( expResult , result )
serialization ( ) { com . airhacks . firehose . collector . entity . Metric metric = new com . airhacks . firehose . collector . entity . Metric ( "payara" , "tx" , "commit" , "success" , "42" ) ; metric . addLabel ( "type" , "local" ) ; metric . addLabel ( "state" , "no_timeout" ) ; java . lang . String expected = "pa...
org . junit . Assert . assertThat ( actual , org . hamcrest . CoreMatchers . is ( expected ) )
halvesConnectionsOnBackoff ( ) { connPerRoute . setMaxPerRoute ( route , 4 ) ; impl . backOff ( route ) ; "<AssertPlaceHolder>" ; } getMaxPerRoute ( org . apache . hc . client5 . http . HttpRoute ) { return pool . getMaxPerRoute ( route ) ; }
org . junit . Assert . assertEquals ( 2 , connPerRoute . getMaxPerRoute ( route ) )
testMethod ( ) { org . apache . openjpa . meta . FieldMetaData . MemberProvider b = new org . apache . openjpa . meta . FieldMetaData . MemberProvider ( getClass ( ) . getDeclaredMethod ( "testMethod" , null ) ) ; org . apache . openjpa . meta . FieldMetaData . MemberProvider b2 = roundtrip ( b ) ; "<AssertPlaceHolder>...
org . junit . Assert . assertEquals ( b . getMember ( ) , b2 . getMember ( ) )
testOf ( ) { com . google . cloud . bigquery . QueryJobConfiguration job = com . google . cloud . bigquery . QueryJobConfiguration . of ( com . google . cloud . bigquery . QueryJobConfigurationTest . QUERY ) ; "<AssertPlaceHolder>" ; } getQuery ( ) { return query ; }
org . junit . Assert . assertEquals ( com . google . cloud . bigquery . QueryJobConfigurationTest . QUERY , job . getQuery ( ) )
testSerialization ( ) { org . jfree . data . time . Millisecond m1 = new org . jfree . data . time . Millisecond ( ) ; org . jfree . data . time . Millisecond m2 = ( ( org . jfree . data . time . Millisecond ) ( org . jfree . chart . TestUtilities . serialised ( m1 ) ) ) ; "<AssertPlaceHolder>" ; } serialised ( java . ...
org . junit . Assert . assertEquals ( m1 , m2 )
testDeleteAuditTaskInfoLogByProcessId ( ) { int p = 0 ; java . lang . String processId = taskTestData [ ( p ++ ) ] . getTaskData ( ) . getProcessId ( ) ; java . lang . String processId2 = taskTestData [ ( p ++ ) ] . getTaskData ( ) . getProcessId ( ) ; org . kie . internal . task . query . AuditTaskDeleteBuilder update...
org . junit . Assert . assertEquals ( 2 , result )
testGetAllChunkIds ( ) { java . io . File rootFolder = folder . newFolder ( ) ; dataStore = getBlobStore ( rootFolder ) ; int number = 10 ; java . util . Set < java . lang . String > added = newHashSet ( ) ; for ( int i = 0 ; i < number ; i ++ ) { java . lang . String rec = dataStore . writeBlob ( org . apache . jackra...
org . junit . Assert . assertEquals ( added , retrieved )
find_all_reminders_on_monday ( ) { javanut6 . ch09 . Reminder reminder = meetingDiary . createReminder ( DayOfWeek . MONDAY , 9 , 0 , "Get<sp>Coffee" ) ; javanut6 . ch09 . Reminder reminder2 = meetingDiary . createReminder ( DayOfWeek . MONDAY , 11 , 0 , "Get<sp>Snack" ) ; meetingDiary . createReminder ( DayOfWeek . TU...
org . junit . Assert . assertEquals ( expectedReminders , mondayReminders )
testInterfaceIsImplemented ( ) { com . boundary . tuple . TupleSchema schema = com . boundary . tuple . TupleSchema . builder ( ) . addField ( "a" , Long . TYPE ) . implementInterface ( com . boundary . tuple . codegen . DirectTupleCodeGeneratorTest . StaticBinding . class ) . directMemory ( ) . build ( ) ; com . bound...
org . junit . Assert . assertTrue ( ( tuple instanceof com . boundary . tuple . codegen . DirectTupleCodeGeneratorTest . StaticBinding ) )
test1169972 ( ) { org . jfree . chart . plot . CategoryPlot plot = new org . jfree . chart . plot . CategoryPlot ( null , null , null , null ) ; plot . setDomainAxis ( new org . jfree . chart . axis . CategoryAxis ( "C" ) ) ; plot . setRangeAxis ( new org . jfree . chart . axis . NumberAxis ( "Y" ) ) ; plot . setRender...
org . junit . Assert . assertTrue ( true )
test ( ) { javax . jms . TextMessage msg = org . mockito . Mockito . mock ( javax . jms . TextMessage . class ) ; org . mockito . Mockito . when ( msg . getText ( ) ) . thenReturn ( com . betfair . cougar . transport . jms . JMSEventMarshallerTest . EXPECTED_RESULT ) ; org . mockito . Mockito . when ( session . createT...
org . junit . Assert . assertEquals ( com . betfair . cougar . transport . jms . JMSEventMarshallerTest . EXPECTED_RESULT , result . getText ( ) )
testNewifyConstructorReferences2 ( ) { org . codehaus . jdt . groovy . model . GroovyCompilationUnit foo = createUnit ( "p" , "def<sp>m()<sp>{\n" 4 , ( "package<sp>p\n" + ( ( ( "def<sp>m()<sp>{\n" 5 + "<sp>Foo(int<sp>i)<sp>{}\n" ) + "def<sp>m()<sp>{\n" 3 ) + "def<sp>m()<sp>{\n" 1 ) ) ) ; createUnit ( "def<sp>m()<sp>{\n...
org . junit . Assert . assertEquals ( 2 , ctorRefs )
testPriorityLevel8 ( ) { int n = jannovar . common . VariantType . priorityLevel ( VariantType . SPLICING ) ; "<AssertPlaceHolder>" ; } priorityLevel ( jannovar . common . VariantType ) { switch ( vt ) { case FS_DELETION : case FS_INSERTION : case NON_FS_SUBSTITUTION : case FS_SUBSTITUTION : case MISSENSE : case NON_FS...
org . junit . Assert . assertEquals ( 1 , n )
testCreateRequest ( ) { java . security . Security . addProvider ( new be . fedict . commons . eid . jca . BeIDProvider ( ) ) ; java . security . KeyStore keyStore = java . security . KeyStore . getInstance ( "BeID" ) ; keyStore . load ( null ) ; java . security . PrivateKey authnPrivateKey = ( ( java . security . Priv...
org . junit . Assert . assertNotNull ( requestElement )
removeVariablesDisabledTenantCheck ( ) { identityService . setAuthentication ( "user" , null , null ) ; processEngineConfiguration . setTenantCheckEnabled ( false ) ; caseService . removeVariable ( caseExecutionId , org . camunda . bpm . engine . test . api . multitenancy . tenantcheck . MultiTenancyCaseInstanceCmdsTen...
org . junit . Assert . assertThat ( variables . isEmpty ( ) , org . hamcrest . CoreMatchers . is ( true ) )
testSetValue ( ) { constraint . setValue ( false ) ; "<AssertPlaceHolder>" ; } getValue ( ) { return value ; }
org . junit . Assert . assertFalse ( constraint . getValue ( ) )
testRetryableTrueResultAndRetryCountAboveBackoffThreshold ( ) { setupTask ( new com . sun . sgs . impl . kernel . schedule . TestNowOrLaterRetryPolicy . RetryableException ( true ) ) ; org . easymock . EasyMock . expect ( task . getTryCount ( ) ) . andStubReturn ( ( ( NowOrLaterRetryPolicy . DEFAULT_RETRY_BACKOFF_THRES...
org . junit . Assert . assertEquals ( SchedulerRetryAction . RETRY_LATER , action )
putsNestedFieldCorrectly ( ) { org . bson . Document document = new org . bson . Document ( ) ; org . springframework . data . mongodb . core . convert . DocumentAccessor accessor = new org . springframework . data . mongodb . core . convert . DocumentAccessor ( document ) ; accessor . put ( fooProperty , "FooBar" ) ; ...
org . junit . Assert . assertThat ( aDocument . get ( "b" ) , org . hamcrest . CoreMatchers . is ( ( ( java . lang . Object ) ( "FooBar" ) ) ) )
testLessInvalidDate2 ( ) { try { modelOf ( "'2014-0x-01T12:30:00.000Z'<sp><<sp>timestamp" ) ; org . junit . Assert . fail ( ) ; } catch ( com . questdb . griffin . SqlException e ) { "<AssertPlaceHolder>" ; } } getPosition ( ) { return 0 ; }
org . junit . Assert . assertEquals ( 0 , e . getPosition ( ) )
testCreateNamespaceMockRootStorageContainerStore ( ) { java . lang . String colName = "test-create-namespace-mock-root-storage-container-store" ; org . apache . bookkeeper . stream . proto . storage . CreateNamespaceResponse createResp = org . apache . bookkeeper . stream . proto . storage . CreateNamespaceResponse . n...
org . junit . Assert . assertTrue ( ( createResp == ( createRespFuture . get ( ) ) ) )
testGetCriteriasByVacancyId ( ) { int vacancyId1 = 101 ; int vacancyId2 = 202 ; org . oscarehr . PMmodule . model . Criteria criteria1 = new org . oscarehr . PMmodule . model . Criteria ( ) ; org . oscarehr . common . dao . utils . EntityDataGenerator . generateTestDataForModelClass ( criteria1 ) ; criteria1 . setVacan...
org . junit . Assert . assertTrue ( true )
testBuildWithDisabledDefaultConstraint ( ) { unit . setActive ( false ) ; unit . setSecurity ( false ) ; org . lnu . is . domain . specoffer . SpecOfferBenefit context = new org . lnu . is . domain . specoffer . SpecOfferBenefit ( ) ; java . lang . String expectedQuery = "SELECT<sp>e<sp>FROM<sp>SpecOfferBenefit<sp>e<sp...
org . junit . Assert . assertEquals ( expectedQuery , actualQuery )
testEqualsWithFullRegions ( ) { edu . illinois . library . cantaloupe . resource . iiif . v2 . Region region1 = new edu . illinois . library . cantaloupe . resource . iiif . v2 . Region ( ) ; region1 . setType ( Region . Type . FULL ) ; edu . illinois . library . cantaloupe . resource . iiif . v2 . Region region2 = new...
org . junit . Assert . assertEquals ( region1 , region2 )
testTwentySwitchTopologyLevel2 ( ) { org . opennms . netmgt . enlinkd . TwentyNodeTopology topology = new org . opennms . netmgt . enlinkd . TwentyNodeTopology ( ) ; org . opennms . netmgt . enlinkd . service . api . BroadcastDomain domain = new org . opennms . netmgt . enlinkd . service . api . BroadcastDomain ( ) ; o...
org . junit . Assert . assertEquals ( 0 , ndbtB . getFailed ( ) . size ( ) )
testAddPluginMessageString ( ) { pluginResultImpl . addPluginMessage ( "test2" ) ; "<AssertPlaceHolder>" ; } getPluginMessage ( ) { initPluginMessages ( ) ; return java . util . Collections . unmodifiableList ( pluginMessages ) ; }
org . junit . Assert . assertEquals ( 2 , pluginResultImpl . getPluginMessage ( ) . size ( ) )
assertNewServiceInstanceWhenIsNotExist ( ) { org . apache . shardingsphere . core . spi . NewInstanceServiceLoader . register ( java . util . Collection . class ) ; java . util . Collection collection = org . apache . shardingsphere . core . spi . NewInstanceServiceLoader . newServiceInstances ( java . util . Collectio...
org . junit . Assert . assertTrue ( collection . isEmpty ( ) )
testInsertChunkHeaderSuccessfull2 ( ) { ichunk . setContext ( ( - 355 ) ) ; org . goodoldai . jeff . report . rtf . RTFChunkUtility . insertChunkHeader ( ichunk , doc ) ; java . util . ArrayList < java . lang . Object [ ] > events = docListener . getCapturedEvents ( ) ; "<AssertPlaceHolder>" ; java . lang . Object [ ] ...
org . junit . Assert . assertTrue ( ( ( events . size ( ) ) == 4 ) )
deveGerarTagsCeansVaziasQuandoProdutoNaoPossuiCodigoDeBarras ( ) { final com . fincatto . documentofiscal . nfe400 . classes . nota . NFNotaInfoItemProduto notaInfoItemProduto = com . fincatto . documentofiscal . nfe400 . FabricaDeObjetosFake . getNFNotaInfoItemProduto ( ) ; notaInfoItemProduto . setCodigoDeBarrasTribu...
org . junit . Assert . assertEquals ( xmlEsperado , notaInfoItemProduto . toString ( ) )
testGetProviderName ( ) { java . lang . String name = bannerProvider . getProviderName ( ) ; "<AssertPlaceHolder>" ; } getProviderName ( ) { return "Stratio<sp>Decision" ; }
org . junit . Assert . assertEquals ( "Stratio<sp>Decision" , name )
testShellComponents ( ) { org . apache . storm . flux . model . TopologyDef topologyDef = org . apache . storm . flux . parser . FluxParser . parseResource ( "/configs/shell_test.yaml" , false , true , null , false ) ; org . apache . storm . Config conf = org . apache . storm . flux . FluxBuilder . buildConfig ( topolo...
org . junit . Assert . assertNotNull ( topology )
testXmlReaderForOptionalProperties ( ) { testConf . setMetricExpression ( "geo_hausdorff(x.polygon,<sp>y.polygon)" ) ; testConf . setExecutionRewriter ( "default" ) ; testConf . setExecutionPlanner ( "default" ) ; testConf . setExecutionEngine ( "default" ) ; sourceInfo . setOptionalProperties ( java . util . Arrays . ...
org . junit . Assert . assertTrue ( testConf . equals ( fileConf ) )
baseElementInsertedWhenContentIsProxied ( ) { org . apache . shindig . gadgets . Gadget gadget = makeDefaultGadget ( ) ; java . lang . String viewUrl = "http://example.org/view.html" ; java . lang . String xml = ( "<Content<sp>href='" + viewUrl ) + "'/>" ; org . apache . shindig . gadgets . spec . View fakeView = new o...
org . junit . Assert . assertEquals ( viewUrl , base )
getIndividualEnrollmentSucceed ( tests . unit . com . microsoft . azure . sdk . iot . provisioning . service . IndividualEnrollment ) { final java . lang . String registrationId = "valid-registration-id" ; tests . unit . com . microsoft . azure . sdk . iot . provisioning . service . ProvisioningServiceClient provisioni...
org . junit . Assert . assertNotNull ( result )
readErrorReturnsEmptyErrorReasonIfNoErrorReason ( ) { final com . microsoft . azure . sdk . iot . device . transport . https . HttpsMethod httpsMethod = com . microsoft . azure . sdk . iot . device . transport . https . HttpsMethod . GET ; new mockit . NonStrictExpectations ( ) { { mockUrl . getProtocol ( ) ; result = ...
org . junit . Assert . assertThat ( testError , org . hamcrest . CoreMatchers . is ( expectedError ) )
testSprSparseDense1 ( ) { double alpha = 3.0 ; org . apache . ignite . ml . math . primitives . vector . impl . SparseVector v = org . apache . ignite . ml . math . BlasTest . sparseFromArray ( new double [ ] { 1.0 , 2.0 } ) ; org . apache . ignite . ml . math . primitives . vector . impl . DenseVector u = new org . ap...
org . junit . Assert . assertEquals ( exp , mu )
testConstructor ( ) { org . openhealthtools . mdht . uml . cda . cdt . operations . AssessmentSectionOperations obj = new org . openhealthtools . mdht . uml . cda . cdt . operations . AssessmentSectionOperations ( ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertTrue ( true )
docsReturnedTestWithDocsHint ( ) { java . lang . String query = java . lang . String . format ( "SELECT<sp>/*!<sp>DOCS_WITH_AGGREGATION(10)<sp>*/<sp>count(*)<sp>from<sp>%s/account" , org . nlpcn . es4sql . TEST_INDEX_ACCOUNT ) ; org . nlpcn . es4sql . query . SqlElasticSearchRequestBuilder searchRequestBuilder = getSea...
org . junit . Assert . assertEquals ( 10 , response . getHits ( ) . getHits ( ) . length )
testAuthUserNoPermsPatch ( ) { setupAuthUserNoPerms ( ) ; request . setMethod ( "PATCH" ) ; webacFilter . doFilter ( request , response , filterChain ) ; "<AssertPlaceHolder>" ; } doFilter ( javax . servlet . ServletRequest , javax . servlet . ServletResponse , javax . servlet . FilterChain ) { final org . apache . shi...
org . junit . Assert . assertEquals ( javax . servlet . http . HttpServletResponse . SC_FORBIDDEN , response . getStatus ( ) )
testInsertChunkHeaderSuccessfull4 ( ) { ichunk . setRule ( null ) ; org . goodoldai . jeff . report . rtf . RTFChunkUtility . insertChunkHeader ( ichunk , doc ) ; java . util . ArrayList < java . lang . Object [ ] > events = docListener . getCapturedEvents ( ) ; "<AssertPlaceHolder>" ; java . lang . Object [ ] event = ...
org . junit . Assert . assertTrue ( ( ( events . size ( ) ) == 3 ) )
testDefaults ( ) { org . apache . drill . test . ClusterFixtureBuilder builder = org . apache . drill . test . ClusterFixture . builder ( dirTestWatcher ) . maxParallelization ( 1 ) ; try ( org . apache . drill . test . ClusterFixture cluster = builder . build ( ) ; org . apache . drill . test . ClientFixture client = ...
org . junit . Assert . assertFalse ( hasAssertions )
testTagCanBeNestedInOtherElement ( ) { html = "<tr><td>a</td><tr>" ; example = parse ( html ) ; "<AssertPlaceHolder>" ; } getContent ( ) { return null ; }
org . junit . Assert . assertEquals ( "a" , example . getContent ( ) )
addKafkaProperties ( ) { java . lang . String propertyKey = "fake.kafka.property" ; java . lang . String propertyValue = testName . getMethodName ( ) ; java . util . Properties props = new java . util . Properties ( ) ; props . setProperty ( propertyKey , propertyValue ) ; org . apache . hadoop . conf . Configuration c...
org . junit . Assert . assertThat ( config . get ( propertyKey ) , org . hamcrest . core . Is . is ( propertyValue ) )
createsMultiDimensionArrayOfObjects ( ) { org . everrest . core . impl . provider . json . ArrayValue jsonArray = new org . everrest . core . impl . provider . json . ArrayValue ( ) ; org . everrest . core . impl . provider . json . ArrayValue childArray1 = createJsonArray ( createJsonBook ( createJunitBook ( ) ) , cre...
org . junit . Assert . assertArrayEquals ( new org . everrest . core . impl . provider . json . tst . Book [ ] [ ] { new org . everrest . core . impl . provider . json . tst . Book [ ] { createJunitBook ( ) , createCSharpBook ( ) } , new org . everrest . core . impl . provider . json . tst . Book [ ] { createJavaScript...
changeLabelWithSetComposite ( ) { systems . dmx . core . storage . spi . DMXTransaction tx = dmx . beginTx ( ) ; try { dmx . createTopicType ( mf . newTopicTypeModel ( "dmx.test.comment" 2 , "First<sp>Name" , "dmx.core.text" ) ) ; dmx . createTopicType ( mf . newTopicTypeModel ( "dmx.test.comment" 3 , "Last<sp>Name" , ...
org . junit . Assert . assertEquals ( "dmx.test.comment" 0 , comment . getSimpleValue ( ) . toString ( ) )
indirectsChain1 ( ) { com . itextpdf . kernel . pdf . PdfDocument document = new com . itextpdf . kernel . pdf . PdfDocument ( new com . itextpdf . kernel . pdf . PdfWriter ( new java . io . ByteArrayOutputStream ( ) ) ) ; document . addNewPage ( ) ; com . itextpdf . kernel . pdf . PdfDictionary catalog = document . ge...
org . junit . Assert . assertTrue ( ( object instanceof com . itextpdf . kernel . pdf . PdfDictionary ) )
testSortedCopy ( ) { System . out . println ( "sortedCopy" ) ; jsat . linear . Vec sorted = x . sortedCopy ( ) ; double lastVal = Double . NEGATIVE_INFINITY ; for ( int i = 0 ; i < ( sorted . length ( ) ) ; i ++ ) { "<AssertPlaceHolder>" ; lastVal = sorted . get ( i ) ; } } get ( int ) { if ( index < ( w . length ( ) )...
org . junit . Assert . assertTrue ( ( lastVal <= ( sorted . get ( i ) ) ) )
testDenseRecursiveEvaluate2 ( ) { org . apache . commons . math3 . random . RandomDataGenerator rnd = getRandomData ( ) ; cc . redberry . rings . Ring < cc . redberry . rings . bigint . BigInteger > ring = cc . redberry . rings . Rings . Zp ( 17 ) ; org . apache . commons . math3 . stat . descriptive . DescriptiveStati...
org . junit . Assert . assertEquals ( plainVal , recVal )
fail_pullFile ( ) { com . android . ddmlib . SyncService syncservice = org . mockito . Mockito . mock ( com . android . ddmlib . SyncService . class ) ; org . mockito . Mockito . doAnswer ( new org . mockito . stubbing . Answer ( ) { @ com . att . aro . core . adb . impl . Override public java . lang . Object answer ( ...
org . junit . Assert . assertTrue ( ( ! success ) )
testNull ( ) { java . lang . Object obj = serializeAndDeserialize ( null ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertEquals ( obj , null )
shouldHaveSameHashCodeGivenSelf ( ) { uk . co . webamoeba . mockito . collections . util . OrderedSet < java . lang . Object > orderedSet = new uk . co . webamoeba . mockito . collections . util . OrderedSet < java . lang . Object > ( ) ; int delta = ( orderedSet . hashCode ( ) ) - ( orderedSet . hashCode ( ) ) ; "<Ass...
org . junit . Assert . assertEquals ( 0 , delta )
detectHtml_MultipleHtmlElementsOnALine ( ) { final org . commonjava . maven . galley . model . ConcreteResource res = new org . commonjava . maven . galley . model . ConcreteResource ( new org . commonjava . maven . galley . model . SimpleLocation ( "test:uri" ) , "file.html" ) ; final org . commonjava . maven . galley...
org . junit . Assert . assertThat ( content . isHtmlContent ( tx ) , org . hamcrest . CoreMatchers . equalTo ( true ) )
hasCorpusSelectionMetaData ( ) { metaData = java . util . Arrays . asList ( new annis . model . QueryAnnotation ( "NAMESPACE" , "NAME" ) ) ; "<AssertPlaceHolder>" ; } hasCorpusSelection ( java . util . List , java . util . List ) { return ! ( ( corpusList . isEmpty ( ) ) && ( metaData . isEmpty ( ) ) ) ; }
org . junit . Assert . assertThat ( strategy . hasCorpusSelection ( corpusList , metaData ) , org . hamcrest . Matchers . is ( true ) )
encode_6 ( ) { final java . lang . String arg = "fooba" ; final java . lang . String exp = "Zm9vYmE=" ; "<AssertPlaceHolder>" ; } encode ( byte [ ] ) { final int sourceChunks = ( data . length ) / 3 ; final int len = ( ( ( data . length ) + 2 ) / 3 ) * 4 ; final byte [ ] result = new byte [ len ] ; final int extraBytes...
org . junit . Assert . assertEquals ( exp , new java . lang . String ( org . erlide . util . Base64 . encode ( arg . getBytes ( ) ) ) )
testGetDecimalDigits ( ) { classUnderTest . setDecimalDigits ( 10 ) ; "<AssertPlaceHolder>" ; } getDecimalDigits ( ) { return decimalDigits ; }
org . junit . Assert . assertEquals ( 10 , classUnderTest . getDecimalDigits ( ) )
serialize ( ) { com . google . gson . Gson gson = com . github . seratch . jslack . common . json . GsonFactory . createSnakeCase ( ) ; com . github . seratch . jslack . api . model . event . AppUninstalledEvent event = new com . github . seratch . jslack . api . model . event . AppUninstalledEvent ( ) ; java . lang . ...
org . junit . Assert . assertThat ( generatedJson , org . hamcrest . CoreMatchers . is ( expectedJson ) )
testBoolean ( ) { boolean [ ] values = new boolean [ ] { true , false } ; for ( boolean in : values ) { boolean out = org . fusesource . amqp . codec . TestSupport . writeRead ( new org . fusesource . amqp . codec . AMQPBoolean ( in ) ) . getValue ( ) . booleanValue ( ) ; "<AssertPlaceHolder>" ; } } writeRead ( T exten...
org . junit . Assert . assertEquals ( in , out )
decode ( ) { final java . io . ByteArrayInputStream stream = new java . io . ByteArrayInputStream ( encoded ) ; final com . flagstone . transform . coder . SWFDecoder decoder = new com . flagstone . transform . coder . SWFDecoder ( stream ) ; final com . flagstone . transform . coder . Context context = new com . flags...
org . junit . Assert . assertNotNull ( fixture )
hasNoPermissionToAddResourceRelationWhenUserUserHasResourceUpdatePermissionForApplicationServerResTypeAndResourceIsInstanceOfApplicationResType ( ) { ch . puzzle . itc . mobiliar . business . security . control . ResourceEntity app = resourceEntityBuilder . mockApplicationEntity ( "app" , appResourceGroup , null ) ; wh...
org . junit . Assert . assertFalse ( canAdd )
lookupReturnsCachedValue ( ) { java . lang . Object value = Boolean . TRUE ; fixture . insert ( attributeId , value ) ; "<AssertPlaceHolder>" ; } lookUp ( java . lang . String ) { if ( ! ( cache . containsKey ( attributeId ) ) ) { throw new java . util . NoSuchElementException ( ( ( "The<sp>attribute<sp>id<sp>" + attri...
org . junit . Assert . assertEquals ( value , fixture . lookUp ( attributeId ) )
getExtra ( ) { android . os . Bundle mockBundle = new android . os . Bundle ( ) ; mockBundle . putString ( org . androidtransfuse . util . ExtraUtilTest . TEST_NAME , org . androidtransfuse . util . ExtraUtilTest . TEST_EXTRA_TARGET ) ; java . lang . Object extraOutput = org . androidtransfuse . util . ExtraUtil . getE...
org . junit . Assert . assertEquals ( org . androidtransfuse . util . ExtraUtilTest . TEST_EXTRA_TARGET , extraOutput )
addTypeAdapter ( ) { com . tickaroo . tikxml . TypeConvertersTest . TestConverter converter = new com . tickaroo . tikxml . TypeConvertersTest . TestConverter ( ) ; com . tickaroo . tikxml . TikXml tikXml = new com . tickaroo . tikxml . TikXml . Builder ( ) . addTypeConverter ( java . lang . Object . class , converter ...
org . junit . Assert . assertSame ( converter , tikXml . config . getTypeConverter ( java . lang . Object . class ) )
createApplicationTest ( ) { java . lang . String schema = readSchemaFileAsString ( "dao/schema/testOverrideSchema.json" ) ; java . lang . String config = readSchemaFileAsString ( "dao/schema/testOverrideData.json" ) ; org . kaaproject . kaa . common . avro . GenericAvroConverter < org . apache . avro . generic . Generi...
org . junit . Assert . assertEquals ( converter . encodeToJson ( container ) , new java . lang . String ( converter . encodeToJsonBytes ( container ) ) )
setFetchCountExceedsUpperBound ( ) { int originalFetchCount = timeline . getFetchCount ( ) ; timeline . setFetchCount ( ( ( Timeline . FETCH_COUNT_UPPER_BOUND ) + 1 ) ) ; "<AssertPlaceHolder>" ; } getFetchCount ( ) { return fetchCount ; }
org . junit . Assert . assertEquals ( originalFetchCount , timeline . getFetchCount ( ) )
testEnvmapperForSharedConsumer ( ) { java . io . File wsdl = getCodegenQEDataFileInput ( "ServiceMetadataProps" 0 ) ; createInterfacePropsFile ( intfProper , destDir . getAbsolutePath ( ) ) ; testArgs = new java . lang . String [ ] { "AccountService" 6 , "AccountService" , "-wsdl" , wsdl . getAbsolutePath ( ) , "-genTy...
org . junit . Assert . assertTrue ( consumerFile . exists ( ) )
testFetchByPrimaryKeysWithMultiplePrimaryKeysWhereNoPrimaryKeysExist ( ) { long pk1 = com . liferay . portal . kernel . test . util . RandomTestUtil . nextLong ( ) ; long pk2 = com . liferay . portal . kernel . test . util . RandomTestUtil . nextLong ( ) ; java . util . Set < java . io . Serializable > primaryKeys = ne...
org . junit . Assert . assertTrue ( serviceComponents . isEmpty ( ) )
testSessionSerialization ( ) { com . fasterxml . jackson . databind . ObjectMapper mapper = new com . fasterxml . jackson . databind . ObjectMapper ( ) ; mapper . registerModule ( new com . fasterxml . jackson . datatype . joda . JodaModule ( ) ) ; java . lang . String json = mapper . writeValueAsString ( restApiSessio...
org . junit . Assert . assertNotNull ( newSession )
testUnboxLong ( ) { long unboxed = org . eclipse . tracecompass . statesystem . core . tests . statevalue . NullStateValueTest . STATE_VALUE . unboxLong ( ) ; "<AssertPlaceHolder>" ; } unboxLong ( ) { return fValue ; }
org . junit . Assert . assertEquals ( ( - 1 ) , unboxed )
testGetAllLocksFromDynamoDBNoLocks ( ) { final boolean deleteOnRelease = false ; final java . util . List < com . amazonaws . services . dynamodbv2 . LockItem > allLocksFromDynamoDB = this . lockClient . getAllLocksFromDynamoDB ( deleteOnRelease ) . collect ( toList ( ) ) ; "<AssertPlaceHolder>" ; } getAllLocksFromDyna...
org . junit . Assert . assertEquals ( java . util . Collections . emptyList ( ) , allLocksFromDynamoDB )
testBuildNonConfigClass ( ) { net . jangaroo . exml . model . ConfigClass configClass = buildConfigClass ( "/testNamespace/config/NonConfig.as" , "test-module" ) ; "<AssertPlaceHolder>" ; } buildConfigClass ( java . lang . String , java . lang . String ) { java . io . File sourceFile = new java . io . File ( getClass (...
org . junit . Assert . assertNull ( configClass )
testValidateAndTrimBusinessObjectFormatExternalInterfaceCreateRequest ( ) { org . finra . herd . model . api . xml . BusinessObjectFormatExternalInterfaceKey businessObjectFormatExternalInterfaceKey = new org . finra . herd . model . api . xml . BusinessObjectFormatExternalInterfaceKey ( NAMESPACE , BDEF_NAME , FORMAT_...
org . junit . Assert . assertEquals ( new org . finra . herd . model . api . xml . BusinessObjectFormatExternalInterfaceCreateRequest ( new org . finra . herd . model . api . xml . BusinessObjectFormatExternalInterfaceKey ( NAMESPACE_2 , BDEF_NAME_2 , FORMAT_USAGE_CODE_2 , FORMAT_FILE_TYPE_CODE_2 , EXTERNAL_INTERFACE_2...