Skip to content

Commit fe66829

Browse files
changed TaskStatusControllerTest.java
1 parent e804e0d commit fe66829

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/test/java/hexlet/code/controller/api/TaskStatusControllerTest.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc;
1515
import org.springframework.boot.test.context.SpringBootTest;
1616
import org.springframework.http.MediaType;
17-
import org.springframework.security.test.web.servlet.request.SecurityMockMvcRequestPostProcessors;
1817
import org.springframework.test.web.servlet.MockMvc;
1918
import org.springframework.test.web.servlet.setup.MockMvcBuilders;
2019
import org.springframework.web.context.WebApplicationContext;
@@ -94,8 +93,7 @@ void testShow() throws Exception {
9493

9594
@Test
9695
void testCreate() throws Exception {
97-
var data = Instancio.of(modelGenerator.getTaskStatusModel())
98-
.create();
96+
var data = Instancio.of(modelGenerator.getTaskStatusModel()).create();
9997

10098
var request = post("/api/task_statuses")
10199
.contentType(MediaType.APPLICATION_JSON)

0 commit comments

Comments
 (0)