Skip to content

Commit c7e3a77

Browse files
committed
test: Fix controller integration tests #45
1 parent eebe8e9 commit c7e3a77

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

backend/src/test/java/ch/puzzle/pcts/controller/OrganisationUnitControllerIT.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,9 @@ public class OrganisationUnitControllerIT {
5656

5757
@BeforeEach
5858
void setUp() {
59-
organisationUnit = new OrganisationUnit(1L, "Organisation unit 1");
60-
requestDto = new OrganisationUnitDto(null, "Organisation unit 1");
61-
expectedDto = new OrganisationUnitDto(1L, "Organisation unit 1");
59+
organisationUnit = new OrganisationUnit(1L, "OrganisationUnit 1");
60+
requestDto = new OrganisationUnitDto(null, "OrganisationUnit 1");
61+
expectedDto = new OrganisationUnitDto(1L, "OrganisationUnit 1");
6262
id = 1L;
6363
}
6464

@@ -132,7 +132,7 @@ void shouldUpdateOrganisationUnit() throws Exception {
132132
.with(SecurityMockMvcRequestPostProcessors.csrf()))
133133
.andExpect(status().isOk())
134134
.andExpect(jsonPath("$.id").isNumber())
135-
.andExpect(jsonPath("$.name").value("Organisation unit 1"));
135+
.andExpect(jsonPath("$.name").value("OrganisationUnit 1"));
136136

137137
verify(mapper, times(1)).fromDto(any(OrganisationUnitDto.class));
138138
verify(service, times(1)).update(any(Long.class), any(OrganisationUnit.class));

0 commit comments

Comments
 (0)