We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents cafa85e + 0b0891b commit 8ccdcfbCopy full SHA for 8ccdcfb
1 file changed
spring-boot/src/test/java/com/mpc/springboot/shared/AbstractControllerTest.java
@@ -0,0 +1,14 @@
1
+package com.mpc.springboot.shared;
2
+
3
+import org.springframework.beans.factory.annotation.Autowired;
4
+import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc;
5
+import org.springframework.boot.test.autoconfigure.web.servlet.WebMvcTest;
6
+import org.springframework.test.web.servlet.MockMvc;
7
8
+@WebMvcTest
9
+@AutoConfigureMockMvc
10
+public abstract class AbstractControllerTest {
11
12
+ @Autowired
13
+ protected MockMvc mockMvc;
14
+}
0 commit comments