From f1cc14242d3004ca30832885c0d4e1998ee16d01 Mon Sep 17 00:00:00 2001 From: yurak Date: Wed, 5 Apr 2023 15:04:10 +0900 Subject: [PATCH] fix deepsource JUnit5 test classes and methods should be package-private --- .../tier/service/socket/ActiveMqSocketForQuarkusTest.java | 6 +++--- .../tier/service/socket/HazelcastSocketForQuarkusTest.java | 6 +++--- .../tier/service/socket/RabbitmqSocketForQuarkusTest.java | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/application/jaxrs-activemq-quarkus/src/test/java/webapp/tier/service/socket/ActiveMqSocketForQuarkusTest.java b/application/jaxrs-activemq-quarkus/src/test/java/webapp/tier/service/socket/ActiveMqSocketForQuarkusTest.java index 2710f28cf..024339b91 100644 --- a/application/jaxrs-activemq-quarkus/src/test/java/webapp/tier/service/socket/ActiveMqSocketForQuarkusTest.java +++ b/application/jaxrs-activemq-quarkus/src/test/java/webapp/tier/service/socket/ActiveMqSocketForQuarkusTest.java @@ -1,7 +1,7 @@ package webapp.tier.service.socket; -import static org.hamcrest.CoreMatchers.is; -import static org.hamcrest.MatcherAssert.assertThat; +import static org.hamcrest.CoreMatchers.*; +import static org.hamcrest.MatcherAssert.*; import java.net.URI; import java.util.concurrent.LinkedBlockingDeque; @@ -29,7 +29,7 @@ class ActiveMqSocketForQuarkusTest { URI uri; @Test - public void testOnMessage() throws Exception { + void testOnMessage() throws Exception { try (Session session = ContainerProvider.getWebSocketContainer() .connectToServer(Client.class, uri)) { assertThat(MESSAGES.poll(10, TimeUnit.SECONDS), is("CONNECT")); diff --git a/application/jaxrs-hazelcast-quarkus/src/test/java/webapp/tier/service/socket/HazelcastSocketForQuarkusTest.java b/application/jaxrs-hazelcast-quarkus/src/test/java/webapp/tier/service/socket/HazelcastSocketForQuarkusTest.java index e586cc1a7..7f39af5d2 100644 --- a/application/jaxrs-hazelcast-quarkus/src/test/java/webapp/tier/service/socket/HazelcastSocketForQuarkusTest.java +++ b/application/jaxrs-hazelcast-quarkus/src/test/java/webapp/tier/service/socket/HazelcastSocketForQuarkusTest.java @@ -1,7 +1,7 @@ package webapp.tier.service.socket; -import static org.hamcrest.CoreMatchers.is; -import static org.hamcrest.MatcherAssert.assertThat; +import static org.hamcrest.CoreMatchers.*; +import static org.hamcrest.MatcherAssert.*; import java.net.URI; import java.util.concurrent.LinkedBlockingDeque; @@ -29,7 +29,7 @@ class HazelcastSocketForQuarkusTest { URI uri; @Test - public void testOmMessage() throws Exception { + void testOmMessage() throws Exception { try (Session session = ContainerProvider.getWebSocketContainer() .connectToServer(Client.class, uri)) { assertThat(MESSAGES.poll(10, TimeUnit.SECONDS), is("CONNECT")); diff --git a/application/jaxrs-rabbitmq-quarkus/src/test/java/webapp/tier/service/socket/RabbitmqSocketForQuarkusTest.java b/application/jaxrs-rabbitmq-quarkus/src/test/java/webapp/tier/service/socket/RabbitmqSocketForQuarkusTest.java index b6bb7820d..dda7a0cc3 100644 --- a/application/jaxrs-rabbitmq-quarkus/src/test/java/webapp/tier/service/socket/RabbitmqSocketForQuarkusTest.java +++ b/application/jaxrs-rabbitmq-quarkus/src/test/java/webapp/tier/service/socket/RabbitmqSocketForQuarkusTest.java @@ -1,7 +1,7 @@ package webapp.tier.service.socket; -import static org.hamcrest.CoreMatchers.is; -import static org.hamcrest.MatcherAssert.assertThat; +import static org.hamcrest.CoreMatchers.*; +import static org.hamcrest.MatcherAssert.*; import java.net.URI; import java.util.concurrent.LinkedBlockingDeque; @@ -29,7 +29,7 @@ class RabbitmqSocketForQuarkusTest { URI uri; @Test - public void testOmMessage() throws Exception { + void testOmMessage() throws Exception { try (Session session = ContainerProvider.getWebSocketContainer() .connectToServer(Client.class, uri)) { assertThat(MESSAGES.poll(10, TimeUnit.SECONDS), is("CONNECT"));