This is an automated email from the ASF dual-hosted git repository. markt pushed a commit to branch 10.1.x in repository https://gitbox.apache.org/repos/asf/tomcat.git
commit 60594b47083687b0d6af8d4188a8676b76e1ad00 Author: Mark Thomas <ma...@apache.org> AuthorDate: Wed Jan 17 15:20:59 2024 +0000 Rename prior to extending with additional tests --- .../tomcat/websocket/TestWsSessionSuspendResume.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/test/org/apache/tomcat/websocket/TestWsSessionSuspendResume.java b/test/org/apache/tomcat/websocket/TestWsSessionSuspendResume.java index 0a853d83c7..cb54821662 100644 --- a/test/org/apache/tomcat/websocket/TestWsSessionSuspendResume.java +++ b/test/org/apache/tomcat/websocket/TestWsSessionSuspendResume.java @@ -44,11 +44,11 @@ import org.apache.tomcat.websocket.server.TesterEndpointConfig; public class TestWsSessionSuspendResume extends WebSocketBaseTest { @Test - public void test() throws Exception { + public void testSuspendResume() throws Exception { Tomcat tomcat = getTomcatInstance(); Context ctx = getProgrammaticRootContext(); - ctx.addApplicationListener(Config.class.getName()); + ctx.addApplicationListener(SuspendResumeConfig.class.getName()); Tomcat.addServlet(ctx, "default", new DefaultServlet()); ctx.addServletMappingDecoded("/", "default"); @@ -59,7 +59,7 @@ public class TestWsSessionSuspendResume extends WebSocketBaseTest { ClientEndpointConfig clientEndpointConfig = ClientEndpointConfig.Builder.create().build(); Session wsSession = wsContainer.connectToServer(TesterProgrammaticEndpoint.class, clientEndpointConfig, - new URI("ws://localhost:" + getPort() + Config.PATH)); + new URI("ws://localhost:" + getPort() + SuspendResumeConfig.PATH)); CountDownLatch latch = new CountDownLatch(2); wsSession.addMessageHandler(String.class, message -> { @@ -77,7 +77,7 @@ public class TestWsSessionSuspendResume extends WebSocketBaseTest { } - public static final class Config extends TesterEndpointConfig { + public static final class SuspendResumeConfig extends TesterEndpointConfig { private static final String PATH = "/echo"; @Override @@ -96,7 +96,7 @@ public class TestWsSessionSuspendResume extends WebSocketBaseTest { @Override public void onOpen(Session session, EndpointConfig epc) { - MessageProcessor processor = new MessageProcessor(session, 3); + SuspendResumeMessageProcessor processor = new SuspendResumeMessageProcessor(session, 3); session.addMessageHandler(String.class, message -> processor.addMessage(message)); } @@ -116,12 +116,12 @@ public class TestWsSessionSuspendResume extends WebSocketBaseTest { } - private static final class MessageProcessor { + private static final class SuspendResumeMessageProcessor { private final Session session; private final int count; private final List<String> messages = new ArrayList<>(); - MessageProcessor(Session session, int count) { + SuspendResumeMessageProcessor(Session session, int count) { this.session = session; this.count = count; } --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org