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 { ...@@ -168,6 +168,8 @@ class RootControllerTest {
@DisplayName("current user") @DisplayName("current user")
@Nested @Nested
class CurrentUser { class CurrentUser {
@DisplayName("when usermanager url is configured")
@Nested
class UsermanagerUrlConfigured { class UsermanagerUrlConfigured {
@BeforeEach @BeforeEach
...@@ -205,12 +207,17 @@ class RootControllerTest { ...@@ -205,12 +207,17 @@ class RootControllerTest {
} }
} }
@DisplayName("when usermanager url is not configured")
@Nested
class UsermanagerUrlNotConfigured {
@Test @Test
void shouldNotHaveCurrentUserLinkWhenNotConfigured() { void shouldNotHaveCurrentUserLink() {
var model = controller.getRootResource(); var model = controller.getRootResource();
assertThat(model.getLink(RootController.REL_CURRENT_USER)).isNotPresent(); 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