From e22d28aa3647b5ce298418bb0341956bfb1bc74e Mon Sep 17 00:00:00 2001 From: Mercy Date: Fri, 10 Jan 2025 19:27:06 +0800 Subject: [PATCH] Polish #57 --- .../webmvc/annotation/AbstractEnableWebMvcExtensionTest.java | 4 ---- 1 file changed, 4 deletions(-) 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 9fbc74b0..4bcabca2 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 @@ -119,8 +119,6 @@ public void test() throws Exception { */ @EventListener(WebEndpointMappingsReadyEvent.class) public void onWebEndpointMappingsReadyEvent(WebEndpointMappingsReadyEvent event) { - assertTrue(publishEvents); - // Only TestController Collection mappings = event.getMappings(); assertEquals(1, mappings.size()); @@ -137,8 +135,6 @@ public void onWebEndpointMappingsReadyEvent(WebEndpointMappingsReadyEvent event) */ @EventListener(HandlerMethodArgumentsResolvedEvent.class) public void onHandlerMethodArgumentsResolvedEvent(HandlerMethodArgumentsResolvedEvent event) { - assertTrue(publishEvents); - Method method = event.getMethod(); assertEquals("echo", method.getName()); assertEquals(String.class, method.getReturnType());