@Test public void testGetLocaleWhenEmpty() { Locale.setDefault(defaultLocale); properties.put("locale", ""); userTaskPageProviver.setProperties(properties); assertEquals(defaultLocale, userTaskPageProviver.getLocale()); }
protected Locale getLocale() { String locale = (String) getProperties().get("locale"); if (!StringUtils.isBlank(locale)) { return LocaleUtils.toLocale(locale); } return Locale.getDefault(); }
UserTaskPageProvider extends AbstractPageProvider<DashBoardItem> implements PageProvider<DashBoardItem> { protected Locale getLocale() { String locale = (String) getProperties().get("locale"); if (!StringUtils.isBlank(locale)) { return LocaleUtils.toLocale(locale); } return Locale.getDefault(); } }
UserTaskPageProvider extends AbstractPageProvider<DashBoardItem> implements PageProvider<DashBoardItem> { protected Locale getLocale() { String locale = (String) getProperties().get("locale"); if (!StringUtils.isBlank(locale)) { return LocaleUtils.toLocale(locale); } return Locale.getDefault(); }  }
UserTaskPageProvider extends AbstractPageProvider<DashBoardItem> implements PageProvider<DashBoardItem> { protected Locale getLocale() { String locale = (String) getProperties().get("locale"); if (!StringUtils.isBlank(locale)) { return LocaleUtils.toLocale(locale); } return Locale.getDefault(); }  @Override List<DashBoardItem> getCurrentPage(); @Override boolean isSortable(); @Override void refresh(); }
UserTaskPageProvider extends AbstractPageProvider<DashBoardItem> implements PageProvider<DashBoardItem> { protected Locale getLocale() { String locale = (String) getProperties().get("locale"); if (!StringUtils.isBlank(locale)) { return LocaleUtils.toLocale(locale); } return Locale.getDefault(); }  @Override List<DashBoardItem> getCurrentPage(); @Override boolean isSortable(); @Override void refresh(); static final String CORE_SESSION_PROPERTY; static final String FILTER_DOCS_FROM_TRASH; }