瀏覽代碼

增加getMockMvc方法

zhouhao 6 年之前
父節點
當前提交
49a5019004
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      hsweb-tests/src/main/groovy/org/hswebframework/web/tests/HswebSpecification.groovy

+ 4 - 0
hsweb-tests/src/main/groovy/org/hswebframework/web/tests/HswebSpecification.groovy

@@ -28,4 +28,8 @@ class HswebSpecification extends Specification {
         mockMvc = MockMvcBuilders.webAppContextSetup(context).build();
     }
 
+    MockMvc getMockMvc() {
+        return mockMvc;
+    }
+
 }