diff --git a/microsphere-spring-webmvc/src/test/java/io/microsphere/spring/webmvc/annotation/AbstractEnableWebMvcExtensionTest.java b/microsphere-spring-webmvc/src/test/java/io/microsphere/spring/webmvc/annotation/AbstractEnableWebMvcExtensionTest.java index 5bfbfe99..9fbc74b0 100644 --- a/microsphere-spring-webmvc/src/test/java/io/microsphere/spring/webmvc/annotation/AbstractEnableWebMvcExtensionTest.java +++ b/microsphere-spring-webmvc/src/test/java/io/microsphere/spring/webmvc/annotation/AbstractEnableWebMvcExtensionTest.java @@ -32,7 +32,6 @@ import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.annotation.Import; import org.springframework.context.event.EventListener; -import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.junit4.SpringRunner; import org.springframework.test.context.web.WebAppConfiguration; import org.springframework.test.web.servlet.MockMvc; @@ -45,7 +44,6 @@ import static io.microsphere.spring.beans.BeanUtils.isBeanPresent; import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertTrue; import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get; diff --git a/microsphere-spring-webmvc/src/test/java/io/microsphere/spring/webmvc/annotation/EnableWebMvcExtensionDefaultsTest.java b/microsphere-spring-webmvc/src/test/java/io/microsphere/spring/webmvc/annotation/EnableWebMvcExtensionDefaultsTest.java index ecd774b1..771953dc 100644 --- a/microsphere-spring-webmvc/src/test/java/io/microsphere/spring/webmvc/annotation/EnableWebMvcExtensionDefaultsTest.java +++ b/microsphere-spring-webmvc/src/test/java/io/microsphere/spring/webmvc/annotation/EnableWebMvcExtensionDefaultsTest.java @@ -16,40 +16,7 @@ */ package io.microsphere.spring.webmvc.annotation; -import io.microsphere.spring.web.event.HandlerMethodArgumentsResolvedEvent; -import io.microsphere.spring.web.event.WebEndpointMappingsReadyEvent; -import io.microsphere.spring.web.metadata.WebEndpointMapping; -import io.microsphere.spring.webmvc.advice.StoringRequestBodyArgumentAdvice; -import io.microsphere.spring.webmvc.advice.StoringResponseBodyReturnValueAdvice; -import io.microsphere.spring.webmvc.controller.TestController; -import io.microsphere.spring.webmvc.interceptor.LazyCompositeHandlerInterceptor; -import io.microsphere.spring.webmvc.metadata.WebEndpointMappingRegistrar; -import io.microsphere.spring.webmvc.method.support.InterceptingHandlerMethodProcessor; -import org.junit.Before; -import org.junit.Test; -import org.junit.runner.RunWith; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.context.event.EventListener; import org.springframework.test.context.ContextConfiguration; -import org.springframework.test.context.junit4.SpringRunner; -import org.springframework.test.context.web.WebAppConfiguration; -import org.springframework.test.web.servlet.MockMvc; -import org.springframework.web.context.ConfigurableWebApplicationContext; -import org.springframework.web.method.HandlerMethod; -import org.springframework.web.servlet.config.annotation.EnableWebMvc; - -import java.lang.reflect.Method; -import java.util.Collection; - -import static io.microsphere.spring.beans.BeanUtils.isBeanPresent; -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertFalse; -import static org.junit.Assert.assertNotNull; -import static org.junit.Assert.assertTrue; -import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get; -import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.content; -import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status; -import static org.springframework.test.web.servlet.setup.MockMvcBuilders.webAppContextSetup; /** * {@link EnableWebMvcExtension} Test with defaults diff --git a/microsphere-spring-webmvc/src/test/java/io/microsphere/spring/webmvc/annotation/EnableWebMvcExtensionDisableTest.java b/microsphere-spring-webmvc/src/test/java/io/microsphere/spring/webmvc/annotation/EnableWebMvcExtensionDisableTest.java index 2f94d9ad..7f413bad 100644 --- a/microsphere-spring-webmvc/src/test/java/io/microsphere/spring/webmvc/annotation/EnableWebMvcExtensionDisableTest.java +++ b/microsphere-spring-webmvc/src/test/java/io/microsphere/spring/webmvc/annotation/EnableWebMvcExtensionDisableTest.java @@ -16,30 +16,7 @@ */ package io.microsphere.spring.webmvc.annotation; -import io.microsphere.spring.webmvc.advice.StoringRequestBodyArgumentAdvice; -import io.microsphere.spring.webmvc.advice.StoringResponseBodyReturnValueAdvice; -import io.microsphere.spring.webmvc.controller.TestController; -import io.microsphere.spring.webmvc.interceptor.LazyCompositeHandlerInterceptor; -import io.microsphere.spring.webmvc.metadata.WebEndpointMappingRegistrar; -import io.microsphere.spring.webmvc.method.support.InterceptingHandlerMethodProcessor; -import org.junit.Before; -import org.junit.Test; -import org.junit.runner.RunWith; -import org.springframework.beans.factory.annotation.Autowired; import org.springframework.test.context.ContextConfiguration; -import org.springframework.test.context.junit4.SpringRunner; -import org.springframework.test.context.web.WebAppConfiguration; -import org.springframework.test.web.servlet.MockMvc; -import org.springframework.web.context.ConfigurableWebApplicationContext; -import org.springframework.web.servlet.config.annotation.EnableWebMvc; - -import static io.microsphere.spring.beans.BeanUtils.isBeanPresent; -import static org.junit.Assert.assertFalse; -import static org.junit.Assert.assertTrue; -import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get; -import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.content; -import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status; -import static org.springframework.test.web.servlet.setup.MockMvcBuilders.webAppContextSetup; /** * {@link EnableWebMvcExtension} Test with disable features diff --git a/microsphere-spring-webmvc/src/test/java/io/microsphere/spring/webmvc/annotation/EnableWebMvcExtensionTest.java b/microsphere-spring-webmvc/src/test/java/io/microsphere/spring/webmvc/annotation/EnableWebMvcExtensionTest.java index 83fddbbd..84071f87 100644 --- a/microsphere-spring-webmvc/src/test/java/io/microsphere/spring/webmvc/annotation/EnableWebMvcExtensionTest.java +++ b/microsphere-spring-webmvc/src/test/java/io/microsphere/spring/webmvc/annotation/EnableWebMvcExtensionTest.java @@ -16,29 +16,7 @@ */ package io.microsphere.spring.webmvc.annotation; -import io.microsphere.spring.webmvc.advice.StoringRequestBodyArgumentAdvice; -import io.microsphere.spring.webmvc.advice.StoringResponseBodyReturnValueAdvice; -import io.microsphere.spring.webmvc.controller.TestController; -import io.microsphere.spring.webmvc.interceptor.LazyCompositeHandlerInterceptor; -import io.microsphere.spring.webmvc.metadata.WebEndpointMappingRegistrar; -import io.microsphere.spring.webmvc.method.support.InterceptingHandlerMethodProcessor; -import org.junit.Before; -import org.junit.Test; -import org.junit.runner.RunWith; -import org.springframework.beans.factory.annotation.Autowired; import org.springframework.test.context.ContextConfiguration; -import org.springframework.test.context.junit4.SpringRunner; -import org.springframework.test.context.web.WebAppConfiguration; -import org.springframework.test.web.servlet.MockMvc; -import org.springframework.web.context.ConfigurableWebApplicationContext; -import org.springframework.web.servlet.config.annotation.EnableWebMvc; - -import static io.microsphere.spring.beans.BeanUtils.isBeanPresent; -import static org.junit.Assert.assertTrue; -import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get; -import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.content; -import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status; -import static org.springframework.test.web.servlet.setup.MockMvcBuilders.webAppContextSetup; /** * {@link EnableWebMvcExtension} Test