/** * Resets the host to the default for the tested product */ default void resetToDefaultHost() { setHost(null); }
@Test public void testVisitsHomePageAtBaseUrlForHost() { final String expectedHost = "mytenant"; getProduct().setHost(expectedHost); goToHomePage(); verify(tester).gotoUrl(urlCaptor.capture()); assertThat(urlCaptor.getValue(), is(homePageAtHost(expectedHost))); final String actualHost = URI.create(urlCaptor.getValue()).getHost(); assertThat(actualHost, is(expectedHost)); }