File tree Expand file tree Collapse file tree 1 file changed +0
-8
lines changed
java/admin/src/test/java/com/exadel/frs/controller Expand file tree Collapse file tree 1 file changed +0
-8
lines changed Original file line number Diff line number Diff 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}" ));
You can’t perform that action at this time.
0 commit comments