@Test public void securityShortcutsAreNotAddedWhenUserHasNoPermission() { doReturn(false).when(authorizationManager).authorize(any(ResourceRef.class), any(User.class)); defaultAdminPageHelper.setup(); final String roles = defaultAdminPageHelper.constants.Roles(); verify(adminPage, never()).addTool(eq("root"), eq(roles), any(), any(), any(), any()); final String groups = defaultAdminPageHelper.constants.Groups(); verify(adminPage, never()).addTool(eq("root"), eq(groups), any(), any(), any(), any()); final String users = defaultAdminPageHelper.constants.Users(); verify(adminPage, never()).addTool(eq("root"), eq(users), any(), any(), any(), any()); }
public void setup() { setup(true, true, true); }
DefaultAdminPageHelper { public void setup() { setup(true, true, true); } }
DefaultAdminPageHelper { public void setup() { setup(true, true, true); }  }
DefaultAdminPageHelper { public void setup() { setup(true, true, true); }  void setup(); void setup(boolean libraryPreferencesEnabled,
                      boolean artifactRepositoryPreferencesEnabled,
                      boolean stunnerEnabled); }
DefaultAdminPageHelper { public void setup() { setup(true, true, true); }  void setup(); void setup(boolean libraryPreferencesEnabled,
                      boolean artifactRepositoryPreferencesEnabled,
                      boolean stunnerEnabled);  }