Closed rbygrave closed 3 years ago
When there is no value for myapp.doesNotExist3 then expect:
myapp.doesNotExist3
@Test public void get_default_repeated_expect_returnDefaultValue() { assertThat(Config.get("myapp.doesNotExist3", null)).isNull(); assertThat(Config.get("myapp.doesNotExist3", "other")).isEqualTo("other"); assertThat(Config.get("myapp.doesNotExist3", "foo")).isEqualTo("foo"); assertThat(Config.get("myapp.doesNotExist3", "junk")).isEqualTo("junk"); }
When there is no value for
myapp.doesNotExist3
then expect: