OpenShiftProjectImpl implements OpenShiftProject { @Override public URL getConsoleOverviewUrl() { final StringBuilder sb = new StringBuilder(); sb.append(consoleUrl); sb.append(CONSOLE_OVERVIEW_URL_PREFIX); sb.append(this.getName()); sb.append(CONSOLE_OVERVIEW_URL_SUFFIX); final URL url; try { url = new URL(sb.toString()); } catch (final MalformedURLException murle) { throw new RuntimeException(murle); } return url; } OpenShiftProjectImpl(final String name, final String consoleUrl); @Override String getName(); @Override URL getConsoleOverviewUrl(); void addResource(final OpenShiftResource resource); @Override List<OpenShiftResource> getResources(); @Override String toString(); @Override int hashCode(); @Override boolean equals(Object obj);  }
@Test public void consoleOverviewUrl() throws MalformedURLException { final String expectedUrl = "http: "/console/project/" + PROJECT_NAME + "/overview/"; log.info("Expected Console Overview URL: " + expectedUrl); final String actualUrl = project.getConsoleOverviewUrl().toExternalForm(); log.info("Actual Console Overview URL: " + actualUrl); Assert.assertEquals(expectedUrl, actualUrl); }