From 985e7974e2d616dcd3f4a730556dbb1a5ec23c0d Mon Sep 17 00:00:00 2001 From: zhouhao Date: Mon, 22 Oct 2018 16:56:14 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BD=BF=E7=94=A8WebApplicationContext?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../org/hswebframework/web/tests/HswebSpecification.groovy | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 f8044a544..87627a9cf 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 @@ -7,6 +7,7 @@ import org.springframework.test.context.ContextConfiguration import org.springframework.test.context.web.WebAppConfiguration import org.springframework.test.web.servlet.MockMvc import org.springframework.test.web.servlet.setup.MockMvcBuilders +import org.springframework.web.context.WebApplicationContext import spock.lang.Shared import spock.lang.Specification @@ -19,7 +20,7 @@ import spock.lang.Specification @SpringBootTest(classes = [HswebTestApplication.class], properties = ["classpath:application.yml"]) class HswebSpecification extends Specification { @Autowired - protected ConfigurableApplicationContext context; + protected WebApplicationContext context; @Shared protected MockMvc mockMvc;