@Test public void getAppBarWebInfosBasic() { WebappInfo wInfo0 = new WebappInfo.Builder().server("foo").title("foo").create(); wInfos.add(wInfo0); WebappInfo wInfo1 = new WebappInfo.Builder().server("bar").title("bar").create(); wInfos.add(wInfo1); WebappInfo wInfo2 = new WebappInfo.Builder().server("baz").title("baz").create(); wInfos.add(wInfo2); assertThat(wac.getAppBarWebInfos("foo"), contains(wInfo0)); assertThat(wac.getAppBarWebInfos("bar"), contains(wInfo1)); assertThat(wac.getAppBarWebInfos("baz"), contains(wInfo2)); }
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();  }