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

OZG-6741 rename varaible

parent 82e6b20f
Branches
Tags
1 merge request!1Ozg 6741 organisationseinheit link
...@@ -54,7 +54,7 @@ class OrganisationsEinheitRootProcessorTest { ...@@ -54,7 +54,7 @@ class OrganisationsEinheitRootProcessorTest {
@Nested @Nested
class TestProcess { class TestProcess {
private final String zufiSucheUri = LoremIpsum.getInstance().getUrl() + "?searchBy={searchBy}"; private final String zufiSearchUri = LoremIpsum.getInstance().getUrl() + "?searchBy={searchBy}";
@Test @Test
void shouldCheckUserRole() { void shouldCheckUserRole() {
...@@ -85,7 +85,7 @@ class OrganisationsEinheitRootProcessorTest { ...@@ -85,7 +85,7 @@ class OrganisationsEinheitRootProcessorTest {
@BeforeEach @BeforeEach
void givenHasAdminRole() { void givenHasAdminRole() {
when(currentUserService.hasRole(anyString())).thenReturn(true); when(currentUserService.hasRole(anyString())).thenReturn(true);
when(organisationsEinheitProperties.getZufiSearchUri()).thenReturn(zufiSucheUri); when(organisationsEinheitProperties.getZufiSearchUri()).thenReturn(zufiSearchUri);
} }
@Nested @Nested
...@@ -120,7 +120,7 @@ class OrganisationsEinheitRootProcessorTest { ...@@ -120,7 +120,7 @@ class OrganisationsEinheitRootProcessorTest {
} }
@Test @Test
void shouldGetZufiSucheUri() { void shouldGetZufiSearchUri() {
processModel(); processModel();
verify(organisationsEinheitProperties).getZufiSearchUri(); verify(organisationsEinheitProperties).getZufiSearchUri();
...@@ -134,7 +134,7 @@ class OrganisationsEinheitRootProcessorTest { ...@@ -134,7 +134,7 @@ class OrganisationsEinheitRootProcessorTest {
assertThat(model.getLink(OrganisationsEinheitRootProcessor.REL_SEARCH_ORGANISATIONS_EINHEIT)) assertThat(model.getLink(OrganisationsEinheitRootProcessor.REL_SEARCH_ORGANISATIONS_EINHEIT))
.get() .get()
.extracting(Link::getHref) .extracting(Link::getHref)
.isEqualTo(zufiSucheUri); .isEqualTo(zufiSearchUri);
} }
@Test @Test
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment