Skip to content

Commit 8511cd5

Browse files
committed
Rename class in test
1 parent d23329c commit 8511cd5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/test/java/com/rabbitmq/client/test/ProtocolVersionMismatch.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,22 +41,22 @@ public class ProtocolVersionMismatch {
4141
@MethodSource("com.rabbitmq.client.test.TestUtils#ioLayers")
4242
void connectionShouldFailWithProtocolVersionMismatch(String ioLayer) throws Exception {
4343
int port = TestUtils.randomNetworkPort();
44-
try (SimpleServer ignored = new SimpleServer(port)) {
44+
try (ProtocolVersionMismatchServer ignored = new ProtocolVersionMismatchServer(port)) {
4545
ConnectionFactory cf = TestUtils.connectionFactory();
4646
TestUtils.setIoLayer(cf, ioLayer);
4747
cf.setPort(port);
4848
assertThatThrownBy(cf::newConnection).hasRootCauseInstanceOf(MalformedFrameException.class);
4949
}
5050
}
5151

52-
private static class SimpleServer implements AutoCloseable {
52+
private static class ProtocolVersionMismatchServer implements AutoCloseable {
5353

5454
private final EventLoopGroup elp =
5555
new MultiThreadIoEventLoopGroup(1, NioIoHandler.newFactory());
5656

5757
private static final byte[] AMQP_HEADER = new byte[] {'A', 'M', 'Q', 'P', 0, 1, 0, 0};
5858

59-
private SimpleServer(int port) throws InterruptedException {
59+
private ProtocolVersionMismatchServer(int port) throws InterruptedException {
6060
ServerBootstrap b = new ServerBootstrap();
6161
b.group(elp);
6262
b.channel(NioServerSocketChannel.class);

0 commit comments

Comments
 (0)