From 49a5019004e03b7cb6f2aab4cc7be0bc0931b545 Mon Sep 17 00:00:00 2001 From: zhouhao Date: Mon, 22 Oct 2018 15:53:00 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0getMockMvc=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../org/hswebframework/web/tests/HswebSpecification.groovy | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hsweb-tests/src/main/groovy/org/hswebframework/web/tests/HswebSpecification.groovy b/hsweb-tests/src/main/groovy/org/hswebframework/web/tests/HswebSpecification.groovy index 750aec1a2..f8044a544 100644 --- a/hsweb-tests/src/main/groovy/org/hswebframework/web/tests/HswebSpecification.groovy +++ b/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; + } + }