@Test public void testTimeZone() { TimeZone tz = mock( TimeZone.class ); doReturn( tz ).when( backend ).getTimeZone(); TimeZone result = env.getTimeZone(); assertThat( result, is( equalTo( tz ) ) ); result = env.getTimeZone(); assertThat( result, is( equalTo( tz ) ) ); verify( backend ).getTimeZone(); }
public TimeZone getTimeZone() { if ( timeZone == null ) { timeZone = backend.getTimeZone(); } return timeZone; }
CachingReportEnvironment implements ReportEnvironment { public TimeZone getTimeZone() { if ( timeZone == null ) { timeZone = backend.getTimeZone(); } return timeZone; } }
CachingReportEnvironment implements ReportEnvironment { public TimeZone getTimeZone() { if ( timeZone == null ) { timeZone = backend.getTimeZone(); } return timeZone; } CachingReportEnvironment( final ReportEnvironment backend ); }
CachingReportEnvironment implements ReportEnvironment { public TimeZone getTimeZone() { if ( timeZone == null ) { timeZone = backend.getTimeZone(); } return timeZone; } 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 TimeZone getTimeZone() { if ( timeZone == null ) { timeZone = backend.getTimeZone(); } return timeZone; } CachingReportEnvironment( final ReportEnvironment backend ); Object getEnvironmentProperty( final String key ); String getURLEncoding(); Locale getLocale(); TimeZone getTimeZone(); Map<String, String[]> getUrlExtraParameter(); Object clone();  }