@Test public void getAppBarWebInfosBasicWithMenu() { WebappInfo wInfo0 = new WebappInfo.Builder().server("foo").title("foo").menuName("a").create(); wInfos.add(wInfo0); WebappInfo wInfo1 = new WebappInfo.Builder().server("bar").title("bar").menuName("b").create(); wInfos.add(wInfo1); WebappInfo wInfo2 = new WebappInfo.Builder().server("baz").title("baz").menuName("c").create(); wInfos.add(wInfo2); assertThat(wac.getAppBarWebInfos("foo", "a"), contains(wInfo0)); assertThat(wac.getAppBarWebInfos("foo", "none"), is(empty())); assertThat(wac.getAppBarWebInfos("bar", "b"), contains(wInfo1)); assertThat(wac.getAppBarWebInfos("bar", "none"), is(empty())); assertThat(wac.getAppBarWebInfos("baz", "c"), contains(wInfo2)); assertThat(wac.getAppBarWebInfos("baz", "none"), is(empty())); }
public List<WebappInfo> getAppBarWebInfos(String serverName) { return getAppBarWebInfos(serverName, null); }
WebAppCache { public List<WebappInfo> getAppBarWebInfos(String serverName) { return getAppBarWebInfos(serverName, null); } }
WebAppCache { public List<WebappInfo> getAppBarWebInfos(String serverName) { return getAppBarWebInfos(serverName, null); } WebAppCache(Supplier<Collection<ComponentConfig>> supplier); }
WebAppCache { public List<WebappInfo> getAppBarWebInfos(String serverName) { return getAppBarWebInfos(serverName, null); } WebAppCache(Supplier<Collection<ComponentConfig>> supplier); List<WebappInfo> getAppBarWebInfos(String serverName); List<WebappInfo> getAppBarWebInfos(String serverName, String menuName); Optional<WebappInfo> getWebappInfo(String serverName, String webAppName); static WebAppCache getShared(); }
WebAppCache { public List<WebappInfo> getAppBarWebInfos(String serverName) { return getAppBarWebInfos(serverName, null); } WebAppCache(Supplier<Collection<ComponentConfig>> supplier); List<WebappInfo> getAppBarWebInfos(String serverName); List<WebappInfo> getAppBarWebInfos(String serverName, String menuName); Optional<WebappInfo> getWebappInfo(String serverName, String webAppName); static WebAppCache getShared();  }