File tree Expand file tree Collapse file tree 1 file changed +20
-20
lines changed
src/test/java/com/gourav/restApi/controllers Expand file tree Collapse file tree 1 file changed +20
-20
lines changed Original file line number Diff line number Diff line change 1- package com .gourav .restApi .controllers ;
2-
3- import org .junit .runner .RunWith ;
4- import org .springframework .beans .factory .annotation .Autowired ;
5- import org .springframework .boot .test .autoconfigure .web .servlet .WebMvcTest ;
6- import org .springframework .boot .test .mock .mockito .MockBean ;
7- import org .springframework .test .context .junit4 .SpringRunner ;
8- import org .springframework .test .web .servlet .MockMvc ;
9-
10- @ RunWith (SpringRunner .class )
11- @ WebMvcTest (value = PetsController .class )
12- public class PetsControllerTest {
13-
14- @ Autowired
15- private MockMvc mvc ;
16-
17- @ MockBean
18- private PetsController petsController ;
19-
20- }
1+ // package com.gourav.restApi.controllers;
2+ //
3+ // import org.junit.runner.RunWith;
4+ // import org.springframework.beans.factory.annotation.Autowired;
5+ // import org.springframework.boot.test.autoconfigure.web.servlet.WebMvcTest;
6+ // import org.springframework.boot.test.mock.mockito.MockBean;
7+ // import org.springframework.test.context.junit4.SpringRunner;
8+ // import org.springframework.test.web.servlet.MockMvc;
9+ //
10+ // @RunWith(SpringRunner.class)
11+ // @WebMvcTest(value = PetsController.class)
12+ // public class PetsControllerTest {
13+ //
14+ // @Autowired
15+ // private MockMvc mvc;
16+ //
17+ // @MockBean
18+ // private PetsController petsController;
19+ //
20+ // }
You can’t perform that action at this time.
0 commit comments