Skip to content
Snippets Groups Projects
Commit c524fa10 authored by OZGCloud's avatar OZGCloud
Browse files

OZG-2887 clean up

parent 838410cb
No related branches found
No related tags found
No related merge requests found
......@@ -168,6 +168,8 @@ class RootControllerTest {
@DisplayName("current user")
@Nested
class CurrentUser {
@DisplayName("when usermanager url is configured")
@Nested
class UsermanagerUrlConfigured {
@BeforeEach
......@@ -205,12 +207,17 @@ class RootControllerTest {
}
}
@DisplayName("when usermanager url is not configured")
@Nested
class UsermanagerUrlNotConfigured {
@Test
void shouldNotHaveCurrentUserLinkWhenNotConfigured() {
void shouldNotHaveCurrentUserLink() {
var model = controller.getRootResource();
assertThat(model.getLink(RootController.REL_CURRENT_USER)).isNotPresent();
}
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment