Skip to content

Commit

Permalink
fix deepsource JUnit5 test classes and methods should be package-private
Browse files Browse the repository at this point in the history
  • Loading branch information
yurake committed Apr 5, 2023
1 parent 196ad9b commit f1cc142
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -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;
Expand Down Expand Up @@ -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"));
Expand Down
Original file line number Diff line number Diff line change
@@ -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;
Expand Down Expand Up @@ -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"));
Expand Down
Original file line number Diff line number Diff line change
@@ -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;
Expand Down Expand Up @@ -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"));
Expand Down

0 comments on commit f1cc142

Please sign in to comment.