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; + } + }