File tree Expand file tree Collapse file tree 1 file changed +40
-0
lines changed
src/test/java/hexlet/code/controller/api Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Original file line number Diff line number Diff line change 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+ }
You can’t perform that action at this time.
0 commit comments