File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
main/java/hexlet/code/config
test/java/hexlet/code/controller Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 2222
2323
2424@ Configuration
25- // @EnableMethodSecurity(prePostEnabled = true)
26- @ EnableMethodSecurity
25+ @ EnableMethodSecurity (prePostEnabled = true )
26+ // @EnableMethodSecurity
2727@ EnableWebSecurity
2828@ AllArgsConstructor
2929public class SecurityConfig {
Original file line number Diff line number Diff line change @@ -132,13 +132,14 @@ void testFilter() throws Exception {
132132
133133 Task taskForFiltr = new Task ();
134134 taskForFiltr .setName ("task FF" );
135- taskForFiltr .setDescription ("task for filter" );
135+ taskForFiltr .setDescription ("task for FF filter" );
136136 taskForFiltr .setTaskStatus (testTask .getTaskStatus ());
137137 taskRepository .save (taskForFiltr );
138138 MvcResult mvcResult = mockMvc .perform (get ("/api/tasks" + query ).with (jwt ()))
139139 .andExpect (status ().isOk ())
140140 .andReturn ();
141141 String body = mvcResult .getResponse ().getContentAsString ();
142+
142143 assertThatJson (body ).isArray ().allSatisfy (cell ->
143144 assertThatJson (cell )
144145 .and (t -> t .node ("title" ).isEqualTo (taskForFiltr .getName ())));
You can’t perform that action at this time.
0 commit comments