Skip to content
Snippets Groups Projects
Commit 90ffd5d3 authored by Lukas Malte Monnerjahn's avatar Lukas Malte Monnerjahn
Browse files

OZG-5176 fix SettingITCase

parent 8d741f16
No related branches found
No related tags found
No related merge requests found
...@@ -28,6 +28,7 @@ import static org.springframework.test.web.servlet.result.MockMvcResultMatchers. ...@@ -28,6 +28,7 @@ import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.
import java.util.List; import java.util.List;
import de.ozgcloud.admin.common.user.UserRole;
import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.StringUtils;
import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Nested; import org.junit.jupiter.api.Nested;
...@@ -55,7 +56,7 @@ import lombok.SneakyThrows; ...@@ -55,7 +56,7 @@ import lombok.SneakyThrows;
@DataITCase @DataITCase
@AutoConfigureMockMvc @AutoConfigureMockMvc
@WithMockUser @WithMockUser(roles = UserRole.ADMIN_USER)
class SettingITCase { class SettingITCase {
@Autowired @Autowired
...@@ -108,7 +109,7 @@ class SettingITCase { ...@@ -108,7 +109,7 @@ class SettingITCase {
class TestForSettingWithPostfach { class TestForSettingWithPostfach {
private static final String POSTFACH_NAME = "Postfach"; private static final String POSTFACH_NAME = "Postfach";
private Setting settingWithPostfach = SettingTestFactory.createBuilder() private final Setting settingWithPostfach = SettingTestFactory.createBuilder()
.name(POSTFACH_NAME) .name(POSTFACH_NAME)
.settingBody(PostfachSettingBodyTestFactory.create()) .settingBody(PostfachSettingBodyTestFactory.create())
.build(); .build();
...@@ -284,13 +285,13 @@ class SettingITCase { ...@@ -284,13 +285,13 @@ class SettingITCase {
@Nested @Nested
class TestPut { class TestPut {
private String id; private String id;
private PostfachSettingBody updatedPostfach = PostfachSettingBodyTestFactory.createBuilder() private final PostfachSettingBody updatedPostfach = PostfachSettingBodyTestFactory.createBuilder()
.absender(AbsenderTestFactory.createBuilder() .absender(AbsenderTestFactory.createBuilder()
.name("Neuer Name") .name("Neuer Name")
.anschrift("Neue Anschrift") .anschrift("Neue Anschrift")
.build()) .build())
.build(); .build();
private Setting updatedSetting = SettingTestFactory.createBuilder() private final Setting updatedSetting = SettingTestFactory.createBuilder()
.name(POSTFACH_NAME) .name(POSTFACH_NAME)
.settingBody(updatedPostfach) .settingBody(updatedPostfach)
.build(); .build();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment