@Test public void perspectivesAreNotAddedWhenUserHasNoPermission() { doReturn(false).when(authorizationManager).authorize(any(ResourceRef.class), any(User.class)); defaultAdminPageHelper.setup(); final String artifacts = defaultAdminPageHelper.constants.Artifacts(); verify(adminPage, never()).addTool(eq("root"), eq(artifacts), any(), eq("perspectives"), any()); final String dataSources = defaultAdminPageHelper.constants.DataSources(); verify(adminPage, never()).addTool(eq("root"), eq(dataSources), any(), eq("perspectives"), any()); final String dataSets = defaultAdminPageHelper.constants.DataSets(); verify(adminPage, never()).addTool(eq("root"), eq(dataSets), any(), eq("perspectives"), 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);  }