@Test public void getCurrentColorWithAndWithoutRight() throws Exception { when(request.getParameter("colorTheme")).thenReturn("myColorTheme"); when(authorizationManager.hasAccess(eq(Right.VIEW), any(DocumentReference.class), any(DocumentReference.class))) .thenReturn(false); assertEquals("fallback", mocker.getComponentUnderTest().getCurrentColorTheme(true, "fallback")); assertEquals("wikiId:ColorTheme.MyColorTheme", mocker.getComponentUnderTest().getCurrentColorTheme(false, "fallback")); }
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);  }