@Test public void getCurrentColorThemeFallbackTest() throws Exception { when(request.getParameter("colorTheme")).thenReturn("myColorTheme"); when(xwiki.exists(any(DocumentReference.class), eq(xcontext))).thenReturn(false); assertEquals("fallback", mocker.getComponentUnderTest().getCurrentColorTheme("fallback")); assertEquals("error", mocker.getComponentUnderTest().getCurrentColorTheme("error")); }
public String getCurrentColorTheme(String fallbackValue) { return getCurrentColorTheme(true, fallbackValue); }
CurrentColorThemeGetter { public String getCurrentColorTheme(String fallbackValue) { return getCurrentColorTheme(true, fallbackValue); } }
CurrentColorThemeGetter { public String getCurrentColorTheme(String fallbackValue) { return getCurrentColorTheme(true, fallbackValue); }  }
CurrentColorThemeGetter { public String getCurrentColorTheme(String fallbackValue) { return getCurrentColorTheme(true, fallbackValue); }  String getCurrentColorTheme(String fallbackValue); String getCurrentColorTheme(boolean checkRights, String fallbackValue); }
CurrentColorThemeGetter { public String getCurrentColorTheme(String fallbackValue) { return getCurrentColorTheme(true, fallbackValue); }  String getCurrentColorTheme(String fallbackValue); String getCurrentColorTheme(boolean checkRights, String fallbackValue);  }