@Test public void if_the_environment_variable_is_unset_the_guest_url_defaults_to_localhost() { assumeThat(getenv(GUEST_URI_ENV_PROPERTY_KEY), is(nullValue())); assertThat(new GuestFeedSubscriber().determineGuestHostAndPort()).isEqualTo("localhost:8080"); }
String determineGuestHostAndPort() { return defaultString(getenv(GUEST_URI_ENV_PROPERTY_KEY), "localhost:8080"); }
GuestFeedSubscriber { String determineGuestHostAndPort() { return defaultString(getenv(GUEST_URI_ENV_PROPERTY_KEY), "localhost:8080"); } }
GuestFeedSubscriber { String determineGuestHostAndPort() { return defaultString(getenv(GUEST_URI_ENV_PROPERTY_KEY), "localhost:8080"); }  }
GuestFeedSubscriber { String determineGuestHostAndPort() { return defaultString(getenv(GUEST_URI_ENV_PROPERTY_KEY), "localhost:8080"); }  @PostConstruct void init(); @Schedule(minute = "*/1", hour = "*") void updateFeed(); }
GuestFeedSubscriber { String determineGuestHostAndPort() { return defaultString(getenv(GUEST_URI_ENV_PROPERTY_KEY), "localhost:8080"); }  @PostConstruct void init(); @Schedule(minute = "*/1", hour = "*") void updateFeed();  }