You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2024/02/13 10:27:41 UTC
(tomcat) 01/05: Rename prior to extending with additional tests
This is an automated email from the ASF dual-hosted git repository.
markt pushed a commit to branch 8.5.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
commit 7b8d5cd4dc665d51bb5462ad99a57669d9cdaff7
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 0ad56bd7a6..313411bd23 100644
--- a/test/org/apache/tomcat/websocket/TestWsSessionSuspendResume.java
+++ b/test/org/apache/tomcat/websocket/TestWsSessionSuspendResume.java
@@ -45,11 +45,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");
@@ -60,7 +60,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));
final CountDownLatch latch = new CountDownLatch(2);
wsSession.addMessageHandler(new MessageHandler.Whole<String>() {
@@ -82,7 +82,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
@@ -101,7 +101,7 @@ public class TestWsSessionSuspendResume extends WebSocketBaseTest {
@Override
public void onOpen(Session session, EndpointConfig epc) {
- final MessageProcessor processor = new MessageProcessor(session, 3);
+ final SuspendResumeMessageProcessor processor = new SuspendResumeMessageProcessor(session, 3);
session.addMessageHandler(new MessageHandler.Whole<String>() {
@Override
@@ -127,12 +127,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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org