@Test public void getLocale_ValidTest() { when( re.getLocale() ).thenReturn( new Locale( "just.for.test" ) ); Locale result = ParameterUtils.getLocale( re ); assertEquals( "just.for.test", result.getLanguage() ); }
static Locale getLocale( final ReportEnvironment environment ) { final Locale locale = environment.getLocale(); return locale != null ? locale : Locale.getDefault(); }
ParameterUtils { static Locale getLocale( final ReportEnvironment environment ) { final Locale locale = environment.getLocale(); return locale != null ? locale : Locale.getDefault(); } }
ParameterUtils { static Locale getLocale( final ReportEnvironment environment ) { final Locale locale = environment.getLocale(); return locale != null ? locale : Locale.getDefault(); } private  ParameterUtils(); }
ParameterUtils { static Locale getLocale( final ReportEnvironment environment ) { final Locale locale = environment.getLocale(); return locale != null ? locale : Locale.getDefault(); } private  ParameterUtils(); static ReportParameterValues initializeDefaultValues( final MasterReport report, final ParameterContext context ); }
ParameterUtils { static Locale getLocale( final ReportEnvironment environment ) { final Locale locale = environment.getLocale(); return locale != null ? locale : Locale.getDefault(); } private  ParameterUtils(); static ReportParameterValues initializeDefaultValues( final MasterReport report, final ParameterContext context );  }