@Test public void should_be_able_to_read_system_values_with_default() { System.clearProperty(ThucydidesSystemProperty.THUCYDIDES_PUBLIC_URL.getPropertyName()); String publicUrl = ThucydidesSystemProperties.getProperties() .getValue(ThucydidesSystemProperty.THUCYDIDES_PUBLIC_URL, "default"); assertThat(publicUrl, is("default")); }
@Test public void system_property_tostring_should_return_property_name() { assertThat( ThucydidesSystemProperty.THUCYDIDES_PUBLIC_URL.toString(), is("thucydides.public.url")); }