@Test public void testGetLocale() { Locale locale = new Locale( "test_test" ); doReturn( locale ).when( backend ).getLocale(); Locale result = env.getLocale(); assertThat( result, is( equalTo( locale ) ) ); result = env.getLocale(); assertThat( result, is( equalTo( locale ) ) ); verify( backend ).getLocale(); }
public Locale getLocale() { if ( locale == null ) { locale = backend.getLocale(); } return locale; }
CachingReportEnvironment implements ReportEnvironment { public Locale getLocale() { if ( locale == null ) { locale = backend.getLocale(); } return locale; } }
CachingReportEnvironment implements ReportEnvironment { public Locale getLocale() { if ( locale == null ) { locale = backend.getLocale(); } return locale; } CachingReportEnvironment( final ReportEnvironment backend ); }
CachingReportEnvironment implements ReportEnvironment { public Locale getLocale() { if ( locale == null ) { locale = backend.getLocale(); } return locale; } CachingReportEnvironment( final ReportEnvironment backend ); Object getEnvironmentProperty( final String key ); String getURLEncoding(); Locale getLocale(); TimeZone getTimeZone(); Map<String, String[]> getUrlExtraParameter(); Object clone(); }
CachingReportEnvironment implements ReportEnvironment { public Locale getLocale() { if ( locale == null ) { locale = backend.getLocale(); } return locale; } CachingReportEnvironment( final ReportEnvironment backend ); Object getEnvironmentProperty( final String key ); String getURLEncoding(); Locale getLocale(); TimeZone getTimeZone(); Map<String, String[]> getUrlExtraParameter(); Object clone();  }