Skip to content
Snippets Groups Projects
Commit b2fb30f0 authored by Felix Reichenbach's avatar Felix Reichenbach
Browse files

OZG-7615 add doc string for property and rename before each test methods

parent b034f9d4
Branches
Tags
1 merge request!6Ozg 7615 leitfaden link
...@@ -14,6 +14,10 @@ public class DocumentationProperties { ...@@ -14,6 +14,10 @@ public class DocumentationProperties {
static final String DOCUMENTATION_PROPERTIES_PREFIX = "ozgcloud.user-assistance.documentation"; static final String DOCUMENTATION_PROPERTIES_PREFIX = "ozgcloud.user-assistance.documentation";
/*
* Url pointing to the documentation (Benutzerleitfaden fuer die
* Administration).
*/
private String url; private String url;
} }
...@@ -91,7 +91,7 @@ class RootModelAssemblerTest { ...@@ -91,7 +91,7 @@ class RootModelAssemblerTest {
class TestOnHasConfigurationPermission { class TestOnHasConfigurationPermission {
@BeforeEach @BeforeEach
void hasConfigurationPermission() { void mock() {
when(currentUserService.hasConfigurationPermission()).thenReturn(true); when(currentUserService.hasConfigurationPermission()).thenReturn(true);
when(restProperties.getBasePath()).thenReturn(BASE_PATH); when(restProperties.getBasePath()).thenReturn(BASE_PATH);
} }
...@@ -108,7 +108,7 @@ class RootModelAssemblerTest { ...@@ -108,7 +108,7 @@ class RootModelAssemblerTest {
class TestOnHasNotConfigurationPermission { class TestOnHasNotConfigurationPermission {
@BeforeEach @BeforeEach
void hasNotConfigurationPermission() { void mock() {
when(currentUserService.hasConfigurationPermission()).thenReturn(false); when(currentUserService.hasConfigurationPermission()).thenReturn(false);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment