Skip to content

Commit dc317b2

Browse files
create TaskStatusControllerTest.java
1 parent 1a91f2a commit dc317b2

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
package hexlet.code.controller.api;
2+
3+
import com.fasterxml.jackson.databind.ObjectMapper;
4+
import hexlet.code.mapper.TaskStatusMapper;
5+
import hexlet.code.model.TaskStatus;
6+
import hexlet.code.repository.TaskStatusRepository;
7+
import org.springframework.beans.factory.annotation.Autowired;
8+
import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc;
9+
import org.springframework.boot.test.context.SpringBootTest;
10+
import org.springframework.security.test.web.servlet.request.SecurityMockMvcRequestPostProcessors.JwtRequestPostProcessor;
11+
import org.springframework.test.web.servlet.MockMvc;
12+
import org.springframework.web.context.WebApplicationContext;
13+
14+
import static org.junit.jupiter.api.Assertions.*;
15+
16+
@SpringBootTest
17+
@AutoConfigureMockMvc
18+
class TaskStatusControllerTest {
19+
@Autowired
20+
private WebApplicationContext wac;
21+
22+
@Autowired
23+
private MockMvc mvc;
24+
25+
@Autowired
26+
private ObjectMapper om;
27+
28+
@Autowired
29+
private TaskStatusRepository taskStatusRepository;
30+
31+
@Autowired
32+
private TaskStatusMapper taskStatusMapper;
33+
34+
@Autowired
35+
private TaskStatus testTaskStatus;
36+
37+
private JwtRequestPostProcessor token;
38+
39+
40+
}

0 commit comments

Comments
 (0)