Skip to content

Commit 03be452

Browse files
EFRS-1334: Fixed tests
1 parent 5044d70 commit 03be452

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

java/admin/src/test/java/com/exadel/frs/controller/ModelControllerTest.java

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -108,10 +108,6 @@ void shouldReturnMessageAndCodeWhenModelNameIsMissingOnUpdate() throws Exception
108108

109109
@Test
110110
void shouldReturnErrorMessageWhenNameIsMissingOnCreateNewModel() throws Exception {
111-
val bodyWithEmptyName = new ModelCreateDto();
112-
bodyWithEmptyName.setName("");
113-
bodyWithEmptyName.setType("RECOGNITION");
114-
115111
val bodyWithNoName = new ModelCreateDto();
116112
bodyWithNoName.setType("RECOGNITION");
117113

@@ -120,10 +116,6 @@ void shouldReturnErrorMessageWhenNameIsMissingOnCreateNewModel() throws Exceptio
120116
.with(user(buildUser()))
121117
.contentType(APPLICATION_JSON);
122118

123-
mockMvc.perform(createNewModelRequest.content(mapper.writeValueAsString(bodyWithEmptyName)))
124-
.andExpect(status().isBadRequest())
125-
.andExpect(content().string("{\"message\":\"Model name size must be between 1 and 50\",\"code\":26}"));
126-
127119
mockMvc.perform(createNewModelRequest.content(mapper.writeValueAsString(bodyWithNoName)))
128120
.andExpect(status().isBadRequest())
129121
.andExpect(content().string("{\"message\":\"Model name cannot be empty\",\"code\":26}"));

0 commit comments

Comments
 (0)