diff --git a/pom.xml b/pom.xml
index 425e2d54b2..c48cabb3ce 100644
--- a/pom.xml
+++ b/pom.xml
@@ -104,6 +104,8 @@
0.7.0
3.1.0
5.14.2
+ 5.21.0
+ 5.2.0
UTF-8
@@ -146,6 +148,24 @@
runtime
test
+
+ org.mockito
+ mockito-core
+ ${mockito-core.version}
+ test
+
+
+ org.mockito
+ mockito-junit-jupiter
+ ${mockito-core.version}
+ test
+
+
+ org.mockito
+ mockito-inline
+ ${mockito-inline.version}
+ test
+
diff --git a/trpc-dependencies/trpc-dependencies-bom/pom.xml b/trpc-dependencies/trpc-dependencies-bom/pom.xml
index e839e92219..a3e7e2798a 100644
--- a/trpc-dependencies/trpc-dependencies-bom/pom.xml
+++ b/trpc-dependencies/trpc-dependencies-bom/pom.xml
@@ -83,9 +83,9 @@
2.8.9
32.1.3-jre
4.5.14
- 5.4.1
+ 5.3.1
4.4.15
- 5.2.1
+ 5.2.5
5.8.28
2.15.0-rc2
6.0.0
diff --git a/trpc-transport/trpc-transport-http/src/test/java/com/tencent/trpc/transport/http/ExecutorDispatcherTest.java b/trpc-transport/trpc-transport-http/src/test/java/com/tencent/trpc/transport/http/ExecutorDispatcherTest.java
index 2814e45454..fd34bad172 100644
--- a/trpc-transport/trpc-transport-http/src/test/java/com/tencent/trpc/transport/http/ExecutorDispatcherTest.java
+++ b/trpc-transport/trpc-transport-http/src/test/java/com/tencent/trpc/transport/http/ExecutorDispatcherTest.java
@@ -1,7 +1,7 @@
/*
* Tencent is pleased to support the open source community by making tRPC available.
*
- * Copyright (C) 2023 THL A29 Limited, a Tencent company.
+ * Copyright (C) 2023 THL A29 Limited, a Tencent company.
* All rights reserved.
*
* If you have downloaded a copy of the tRPC source code from Tencent,
@@ -17,17 +17,17 @@
import jakarta.servlet.ServletException;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
-import org.junit.Test;
-import org.powermock.api.mockito.PowerMockito;
+import org.junit.jupiter.api.Test;
+import org.mockito.Mockito;
public class ExecutorDispatcherTest {
@Test
public void test() throws ServletException, IOException {
ExecutorDispatcher dispatcher = new ExecutorDispatcher();
- HttpServletRequest req = PowerMockito.mock(HttpServletRequest.class);
- PowerMockito.when(req.getLocalPort()).thenReturn(1024);
- HttpServletResponse rsp = PowerMockito.mock(HttpServletResponse.class);
+ HttpServletRequest req = Mockito.mock(HttpServletRequest.class);
+ Mockito.when(req.getLocalPort()).thenReturn(1024);
+ HttpServletResponse rsp = Mockito.mock(HttpServletResponse.class);
dispatcher.service(req, rsp);
org.mockito.Mockito.verify(rsp, times(1)).sendError(404,
"HttpExecutor is closed: port is:1024.");
diff --git a/trpc-transport/trpc-transport-http/src/test/java/com/tencent/trpc/transport/http/JettyHttp2ServerTest.java b/trpc-transport/trpc-transport-http/src/test/java/com/tencent/trpc/transport/http/JettyHttp2ServerTest.java
index e10d6d906b..cb47a9ae71 100644
--- a/trpc-transport/trpc-transport-http/src/test/java/com/tencent/trpc/transport/http/JettyHttp2ServerTest.java
+++ b/trpc-transport/trpc-transport-http/src/test/java/com/tencent/trpc/transport/http/JettyHttp2ServerTest.java
@@ -1,7 +1,7 @@
/*
* Tencent is pleased to support the open source community by making tRPC available.
*
- * Copyright (C) 2023 THL A29 Limited, a Tencent company.
+ * Copyright (C) 2023 THL A29 Limited, a Tencent company.
* All rights reserved.
*
* If you have downloaded a copy of the tRPC source code from Tencent,
@@ -14,7 +14,7 @@
import static com.tencent.trpc.transport.http.common.Constants.HTTP2_SCHEME;
import static com.tencent.trpc.transport.http.common.Constants.KEYSTORE_PASS;
import static com.tencent.trpc.transport.http.common.Constants.KEYSTORE_PATH;
-import static org.junit.Assert.assertTrue;
+import static org.junit.jupiter.api.Assertions.assertTrue;
import com.tencent.trpc.core.common.config.ProtocolConfig;
import com.tencent.trpc.core.extension.ExtensionLoader;
@@ -43,10 +43,10 @@
import org.apache.hc.core5.http2.ssl.ConscryptClientTlsStrategy;
import org.apache.hc.core5.ssl.SSLContexts;
import org.eclipse.jetty.http.HttpStatus;
-import org.junit.AfterClass;
-import org.junit.Assert;
-import org.junit.BeforeClass;
-import org.junit.Test;
+import org.junit.jupiter.api.AfterAll;
+import org.junit.jupiter.api.Assertions;
+import org.junit.jupiter.api.BeforeAll;
+import org.junit.jupiter.api.Test;
public class JettyHttp2ServerTest {
@@ -56,7 +56,7 @@ public class JettyHttp2ServerTest {
private static CloseableHttpAsyncClient httpAsyncClient;
- @BeforeClass
+ @BeforeAll
public static void beforeClass() throws CertificateException, NoSuchAlgorithmException,
KeyStoreException, IOException, KeyManagementException {
ProtocolConfig protocolConfig = ProtocolConfig.newInstance();
@@ -109,7 +109,7 @@ public static void beforeClass() throws CertificateException, NoSuchAlgorithmExc
httpAsyncClient.start();
}
- @AfterClass
+ @AfterAll
public static void afterClass() {
if (httpServer != null) {
httpServer.open();
@@ -146,14 +146,14 @@ public void cancelled() {
}
});
SimpleHttpResponse simpleHttpResponse = httpResponseFuture.get(2000, TimeUnit.MILLISECONDS);
- Assert.assertNotEquals(null, simpleHttpResponse);
+ Assertions.assertNotEquals(null, simpleHttpResponse);
logger.error(simpleHttpResponse.getBodyText());
- Assert.assertEquals("HTTP", simpleHttpResponse.getVersion().getProtocol());
- Assert.assertEquals(2, simpleHttpResponse.getVersion().getMajor());
+ Assertions.assertEquals("HTTP", simpleHttpResponse.getVersion().getProtocol());
+ Assertions.assertEquals(2, simpleHttpResponse.getVersion().getMajor());
logger.info("response code is {}", simpleHttpResponse.getCode());
- Assert.assertEquals(200, simpleHttpResponse.getCode());
+ Assertions.assertEquals(200, simpleHttpResponse.getCode());
logger.info("http response is: {}", simpleHttpResponse.getBodyText());
- Assert.assertEquals("", simpleHttpResponse.getBodyText());
+ Assertions.assertEquals("", simpleHttpResponse.getBodyText());
}
@Test
@@ -178,14 +178,14 @@ public void cancelled() {
}
});
SimpleHttpResponse simpleHttpResponse = httpResponseFuture.get(2000, TimeUnit.MILLISECONDS);
- Assert.assertNotEquals(null, simpleHttpResponse);
+ Assertions.assertNotEquals(null, simpleHttpResponse);
logger.error(simpleHttpResponse.getBodyText());
- Assert.assertEquals("HTTP", simpleHttpResponse.getVersion().getProtocol());
- Assert.assertEquals(2, simpleHttpResponse.getVersion().getMajor());
+ Assertions.assertEquals("HTTP", simpleHttpResponse.getVersion().getProtocol());
+ Assertions.assertEquals(2, simpleHttpResponse.getVersion().getMajor());
logger.info("response code is {}", simpleHttpResponse.getCode());
- Assert.assertEquals(404, simpleHttpResponse.getCode());
+ Assertions.assertEquals(404, simpleHttpResponse.getCode());
logger.info("http response is: {}", simpleHttpResponse.getBodyText());
- Assert.assertEquals("", simpleHttpResponse.getBodyText());
+ Assertions.assertEquals("", simpleHttpResponse.getBodyText());
}
}
diff --git a/trpc-transport/trpc-transport-http/src/test/java/com/tencent/trpc/transport/http/JettyHttp2cServerTest.java b/trpc-transport/trpc-transport-http/src/test/java/com/tencent/trpc/transport/http/JettyHttp2cServerTest.java
index 99229f4345..38a8e7a2d9 100644
--- a/trpc-transport/trpc-transport-http/src/test/java/com/tencent/trpc/transport/http/JettyHttp2cServerTest.java
+++ b/trpc-transport/trpc-transport-http/src/test/java/com/tencent/trpc/transport/http/JettyHttp2cServerTest.java
@@ -12,7 +12,7 @@
package com.tencent.trpc.transport.http;
import static com.tencent.trpc.transport.http.common.Constants.HTTP2_SCHEME;
-import static org.junit.Assert.assertTrue;
+import static org.junit.jupiter.api.Assertions.assertTrue;
import com.tencent.trpc.core.common.config.ProtocolConfig;
import com.tencent.trpc.core.extension.ExtensionLoader;
@@ -34,10 +34,10 @@
import org.apache.http.impl.client.CloseableHttpClient;
import org.apache.http.impl.client.HttpClients;
import org.eclipse.jetty.http.HttpStatus;
-import org.junit.AfterClass;
-import org.junit.Assert;
-import org.junit.BeforeClass;
-import org.junit.Test;
+import org.junit.jupiter.api.AfterAll;
+import org.junit.jupiter.api.Assertions;
+import org.junit.jupiter.api.BeforeAll;
+import org.junit.jupiter.api.Test;
public class JettyHttp2cServerTest {
@@ -49,7 +49,7 @@ public class JettyHttp2cServerTest {
private static CloseableHttpClient httpClient;
- @BeforeClass
+ @BeforeAll
public static void beforeClass() {
ProtocolConfig protocolConfig = ProtocolConfig.newInstance();
protocolConfig.setIp("localhost");
@@ -88,7 +88,7 @@ public static void beforeClass() {
httpClient = HttpClients.custom().build();
}
- @AfterClass
+ @AfterAll
public static void afterClass() {
if (httpServer != null) {
httpServer.open();
@@ -125,14 +125,14 @@ public void cancelled() {
}
});
SimpleHttpResponse simpleHttpResponse = httpResponseFuture.get(2000, TimeUnit.MILLISECONDS);
- Assert.assertNotEquals(null, simpleHttpResponse);
+ Assertions.assertNotEquals(null, simpleHttpResponse);
logger.error(simpleHttpResponse.getBodyText());
- Assert.assertEquals("HTTP", simpleHttpResponse.getVersion().getProtocol());
- Assert.assertEquals(2, simpleHttpResponse.getVersion().getMajor());
+ Assertions.assertEquals("HTTP", simpleHttpResponse.getVersion().getProtocol());
+ Assertions.assertEquals(2, simpleHttpResponse.getVersion().getMajor());
logger.info("response code is {}", simpleHttpResponse.getCode());
- Assert.assertEquals(200, simpleHttpResponse.getCode());
+ Assertions.assertEquals(200, simpleHttpResponse.getCode());
logger.info("http response is: {}", simpleHttpResponse.getBodyText());
- Assert.assertEquals("", simpleHttpResponse.getBodyText());
+ Assertions.assertEquals("", simpleHttpResponse.getBodyText());
}
@Test
@@ -157,14 +157,14 @@ public void cancelled() {
}
});
SimpleHttpResponse simpleHttpResponse = httpResponseFuture.get(2000, TimeUnit.MILLISECONDS);
- Assert.assertNotEquals(null, simpleHttpResponse);
+ Assertions.assertNotEquals(null, simpleHttpResponse);
logger.error(simpleHttpResponse.getBodyText());
- Assert.assertEquals("HTTP", simpleHttpResponse.getVersion().getProtocol());
- Assert.assertEquals(2, simpleHttpResponse.getVersion().getMajor());
+ Assertions.assertEquals("HTTP", simpleHttpResponse.getVersion().getProtocol());
+ Assertions.assertEquals(2, simpleHttpResponse.getVersion().getMajor());
logger.info("response code is {}", simpleHttpResponse.getCode());
- Assert.assertEquals(404, simpleHttpResponse.getCode());
+ Assertions.assertEquals(404, simpleHttpResponse.getCode());
logger.info("http response is: {}", simpleHttpResponse.getBodyText());
- Assert.assertEquals("", simpleHttpResponse.getBodyText());
+ Assertions.assertEquals("", simpleHttpResponse.getBodyText());
}
@Test
@@ -175,10 +175,10 @@ public void testNormalRequestWithHttp() throws Exception {
int responseCode = httpResponse.getStatusLine().getStatusCode();
logger.info("response code is {}", responseCode);
- Assert.assertEquals(responseCode, 200);
+ Assertions.assertEquals(responseCode, 200);
- Assert.assertEquals(httpResponse.getProtocolVersion().getProtocol(), "HTTP");
- Assert.assertEquals(httpResponse.getProtocolVersion().getMajor(), 1);
+ Assertions.assertEquals(httpResponse.getProtocolVersion().getProtocol(), "HTTP");
+ Assertions.assertEquals(httpResponse.getProtocolVersion().getMajor(), 1);
}
@@ -190,10 +190,10 @@ public void testNotExistRequestWithHttp1() throws Exception {
int responseCode = httpResponse.getStatusLine().getStatusCode();
logger.info("response code is {}", responseCode);
- Assert.assertEquals(responseCode, 404);
+ Assertions.assertEquals(responseCode, 404);
- Assert.assertEquals(httpResponse.getProtocolVersion().getProtocol(), "HTTP");
- Assert.assertEquals(httpResponse.getProtocolVersion().getMajor(), 1);
+ Assertions.assertEquals(httpResponse.getProtocolVersion().getProtocol(), "HTTP");
+ Assertions.assertEquals(httpResponse.getProtocolVersion().getMajor(), 1);
}
diff --git a/trpc-transport/trpc-transport-http/src/test/java/com/tencent/trpc/transport/http/JettyHttpsServerTest.java b/trpc-transport/trpc-transport-http/src/test/java/com/tencent/trpc/transport/http/JettyHttpsServerTest.java
index db7cfe19b7..5e82f1cdb8 100644
--- a/trpc-transport/trpc-transport-http/src/test/java/com/tencent/trpc/transport/http/JettyHttpsServerTest.java
+++ b/trpc-transport/trpc-transport-http/src/test/java/com/tencent/trpc/transport/http/JettyHttpsServerTest.java
@@ -1,7 +1,7 @@
/*
* Tencent is pleased to support the open source community by making tRPC available.
*
- * Copyright (C) 2023 THL A29 Limited, a Tencent company.
+ * Copyright (C) 2023 THL A29 Limited, a Tencent company.
* All rights reserved.
*
* If you have downloaded a copy of the tRPC source code from Tencent,
@@ -14,7 +14,7 @@
import static com.tencent.trpc.transport.http.common.Constants.HTTP_SCHEME;
import static com.tencent.trpc.transport.http.common.Constants.KEYSTORE_PASS;
import static com.tencent.trpc.transport.http.common.Constants.KEYSTORE_PATH;
-import static org.junit.Assert.assertTrue;
+import static org.junit.jupiter.api.Assertions.assertTrue;
import com.tencent.trpc.core.common.config.ProtocolConfig;
import com.tencent.trpc.core.extension.ExtensionLoader;
@@ -40,13 +40,15 @@
import org.apache.hc.client5.http.impl.nio.PoolingAsyncClientConnectionManagerBuilder;
import org.apache.hc.core5.concurrent.FutureCallback;
import org.apache.hc.core5.http2.HttpVersionPolicy;
-import org.apache.hc.core5.http2.ssl.ConscryptClientTlsStrategy;
+import org.apache.hc.client5.http.ssl.ClientTlsStrategyBuilder;
+import org.apache.hc.client5.http.ssl.NoopHostnameVerifier;
import org.apache.hc.core5.ssl.SSLContexts;
+import org.apache.hc.core5.ssl.TrustStrategy;
import org.eclipse.jetty.http.HttpStatus;
-import org.junit.AfterClass;
-import org.junit.Assert;
-import org.junit.BeforeClass;
-import org.junit.Test;
+import org.junit.jupiter.api.AfterAll;
+import org.junit.jupiter.api.Assertions;
+import org.junit.jupiter.api.BeforeAll;
+import org.junit.jupiter.api.Test;
public class JettyHttpsServerTest {
@@ -56,7 +58,7 @@ public class JettyHttpsServerTest {
private static CloseableHttpAsyncClient httpAsyncClient;
- @BeforeClass
+ @BeforeAll
public static void beforeClass() throws CertificateException, NoSuchAlgorithmException,
KeyStoreException, IOException, KeyManagementException {
ProtocolConfig protocolConfig = ProtocolConfig.newInstance();
@@ -97,11 +99,15 @@ public static void beforeClass() throws CertificateException, NoSuchAlgorithmExc
String keyStorePath = String.valueOf(path);
String keyStorePass = "init234";
final SSLContext sslContext = SSLContexts.custom()
- .loadTrustMaterial(new File(keyStorePath), keyStorePass.toCharArray())
+ .loadTrustMaterial(new File(keyStorePath), keyStorePass.toCharArray(),
+ (TrustStrategy) (chain, authType) -> true)
.build();
final PoolingAsyncClientConnectionManager cm = PoolingAsyncClientConnectionManagerBuilder
- .create().useSystemProperties()
- .setTlsStrategy(new ConscryptClientTlsStrategy(sslContext))
+ .create()
+ .setTlsStrategy(ClientTlsStrategyBuilder.create()
+ .setSslContext(sslContext)
+ .setHostnameVerifier(NoopHostnameVerifier.INSTANCE)
+ .build())
.build();
httpAsyncClient = HttpAsyncClients.custom()
.setVersionPolicy(HttpVersionPolicy.FORCE_HTTP_1).setConnectionManager(cm)
@@ -109,7 +115,7 @@ public static void beforeClass() throws CertificateException, NoSuchAlgorithmExc
httpAsyncClient.start();
}
- @AfterClass
+ @AfterAll
public static void afterClass() {
if (httpServer != null) {
httpServer.open();
@@ -146,14 +152,14 @@ public void cancelled() {
}
});
SimpleHttpResponse simpleHttpResponse = httpResponseFuture.get(2000, TimeUnit.MILLISECONDS);
- Assert.assertNotEquals(null, simpleHttpResponse);
+ Assertions.assertNotEquals(null, simpleHttpResponse);
logger.error(simpleHttpResponse.getBodyText());
- Assert.assertEquals("HTTP", simpleHttpResponse.getVersion().getProtocol());
- Assert.assertEquals(1, simpleHttpResponse.getVersion().getMajor());
+ Assertions.assertEquals("HTTP", simpleHttpResponse.getVersion().getProtocol());
+ Assertions.assertEquals(1, simpleHttpResponse.getVersion().getMajor());
logger.info("response code is {}", simpleHttpResponse.getCode());
- Assert.assertEquals(200, simpleHttpResponse.getCode());
+ Assertions.assertEquals(200, simpleHttpResponse.getCode());
logger.info("http response is: {}", simpleHttpResponse.getBodyText());
- Assert.assertEquals("", simpleHttpResponse.getBodyText());
+ Assertions.assertEquals("", simpleHttpResponse.getBodyText());
}
@Test
@@ -178,14 +184,14 @@ public void cancelled() {
}
});
SimpleHttpResponse simpleHttpResponse = httpResponseFuture.get(2000, TimeUnit.MILLISECONDS);
- Assert.assertNotEquals(null, simpleHttpResponse);
+ Assertions.assertNotEquals(null, simpleHttpResponse);
logger.error(simpleHttpResponse.getBodyText());
- Assert.assertEquals("HTTP", simpleHttpResponse.getVersion().getProtocol());
- Assert.assertEquals(1, simpleHttpResponse.getVersion().getMajor());
+ Assertions.assertEquals("HTTP", simpleHttpResponse.getVersion().getProtocol());
+ Assertions.assertEquals(1, simpleHttpResponse.getVersion().getMajor());
logger.info("response code is {}", simpleHttpResponse.getCode());
- Assert.assertEquals(404, simpleHttpResponse.getCode());
+ Assertions.assertEquals(404, simpleHttpResponse.getCode());
logger.info("http response is: {}", simpleHttpResponse.getBodyText());
- Assert.assertEquals("", simpleHttpResponse.getBodyText());
+ Assertions.assertEquals("", simpleHttpResponse.getBodyText());
}
}
diff --git a/trpc-transport/trpc-transport-http/src/test/java/com/tencent/trpc/transport/http/JettyServerTest.java b/trpc-transport/trpc-transport-http/src/test/java/com/tencent/trpc/transport/http/JettyServerTest.java
index 154604656e..3cd1140641 100644
--- a/trpc-transport/trpc-transport-http/src/test/java/com/tencent/trpc/transport/http/JettyServerTest.java
+++ b/trpc-transport/trpc-transport-http/src/test/java/com/tencent/trpc/transport/http/JettyServerTest.java
@@ -11,7 +11,7 @@
package com.tencent.trpc.transport.http;
-import static org.junit.Assert.assertTrue;
+import static org.junit.jupiter.api.Assertions.assertTrue;
import com.tencent.trpc.core.common.config.ProtocolConfig;
import com.tencent.trpc.core.extension.ExtensionLoader;
@@ -22,10 +22,10 @@
import java.net.HttpURLConnection;
import java.net.URL;
import org.eclipse.jetty.http.HttpStatus;
-import org.junit.AfterClass;
-import org.junit.Assert;
-import org.junit.BeforeClass;
-import org.junit.Test;
+import org.junit.jupiter.api.AfterAll;
+import org.junit.jupiter.api.Assertions;
+import org.junit.jupiter.api.BeforeAll;
+import org.junit.jupiter.api.Test;
public class JettyServerTest {
@@ -33,7 +33,7 @@ public class JettyServerTest {
private static HttpServer httpServer;
- @BeforeClass
+ @BeforeAll
public static void beforeClass() {
ProtocolConfig protocolConfig = ProtocolConfig.newInstance();
protocolConfig.setIp("localhost");
@@ -65,7 +65,7 @@ public static void beforeClass() {
JettyServerTest.httpServer = httpServer;
}
- @AfterClass
+ @AfterAll
public static void afterClass() {
if (httpServer != null) {
httpServer.open();
@@ -90,7 +90,7 @@ public void testNormalRequest() throws Exception {
int responseCode = connection.getResponseCode();
logger.info("response code is {}", responseCode);
- Assert.assertEquals(responseCode, 200);
+ Assertions.assertEquals(responseCode, 200);
} finally {
if (connection != null) {
connection.disconnect();
@@ -114,7 +114,7 @@ public void testNotExistRequest() throws Exception {
int responseCode = connection.getResponseCode();
logger.info("response code is {}", responseCode);
- Assert.assertEquals(responseCode, 404);
+ Assertions.assertEquals(responseCode, 404);
} finally {
if (connection != null) {
connection.disconnect();
diff --git a/trpc-transport/trpc-transport-netty/src/test/java/com/tencent/trpc/transport/netty/AbstractBatchDecoderTest.java b/trpc-transport/trpc-transport-netty/src/test/java/com/tencent/trpc/transport/netty/AbstractBatchDecoderTest.java
index e97c8302d8..169dc60069 100644
--- a/trpc-transport/trpc-transport-netty/src/test/java/com/tencent/trpc/transport/netty/AbstractBatchDecoderTest.java
+++ b/trpc-transport/trpc-transport-netty/src/test/java/com/tencent/trpc/transport/netty/AbstractBatchDecoderTest.java
@@ -18,8 +18,8 @@
import io.netty.buffer.EmptyByteBuf;
import io.netty.buffer.Unpooled;
import io.netty.channel.ChannelHandlerContext;
-import org.junit.Assert;
-import org.junit.Test;
+import org.junit.jupiter.api.Assertions;
+import org.junit.jupiter.api.Test;
import java.util.List;
@@ -34,7 +34,7 @@ public class AbstractBatchDecoderTest {
public void setSingleDecode() {
DecoderTest decoderTest = new DecoderTest();
decoderTest.setSingleDecode(true);
- Assert.assertTrue(decoderTest.isSingleDecode());
+ Assertions.assertTrue(decoderTest.isSingleDecode());
}
@Test
@@ -70,7 +70,7 @@ public void internalBuffer() {
DecoderTest decoderTest = new DecoderTest();
decoderTest.setCumulator(AbstractBatchDecoder.COMPOSITE_CUMULATOR);
ByteBuf byteBuf = decoderTest.internalBuffer();
- Assert.assertEquals(Unpooled.EMPTY_BUFFER, byteBuf);
+ Assertions.assertEquals(Unpooled.EMPTY_BUFFER, byteBuf);
}
@Test
@@ -124,4 +124,4 @@ protected void decode(ChannelHandlerContext ctx, ByteBuf in, List