Skip to content

Commit f57c6ee

Browse files
authored
chore: add unleash config test (#309)
1 parent 5afc66d commit f57c6ee

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/test/java/io/getunleash/util/UnleashConfigTest.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -383,4 +383,16 @@ public void clientIdentifierWithoutInstanceIdStillWorks() {
383383
.build();
384384
assertDoesNotThrow(config::getClientIdentifier);
385385
}
386+
387+
@Test
388+
public void should_require_unleash_uri() {
389+
Executable ex =
390+
() ->
391+
UnleashConfig.builder()
392+
.apiKey("someapikey")
393+
.appName("my-app")
394+
.build();
395+
396+
assertThrows(IllegalStateException.class, ex);
397+
}
386398
}

0 commit comments

Comments
 (0)