From 19bbb45461d2f9a9c804c51b2e74d1765f3fab86 Mon Sep 17 00:00:00 2001 From: terrymanu Date: Sat, 5 Sep 2020 22:39:18 +0800 Subject: [PATCH] Revise #7021 --- .../postgresql/codec/PostgreSQLPacketCodecEngineTest.java | 2 +- .../protocol/postgresql/constant/PostgreSQLColumnTypeTest.java | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/shardingsphere-db-protocol/shardingsphere-db-protocol-postgresql/src/test/java/org/apache/shardingsphere/db/protocol/postgresql/codec/PostgreSQLPacketCodecEngineTest.java b/shardingsphere-db-protocol/shardingsphere-db-protocol-postgresql/src/test/java/org/apache/shardingsphere/db/protocol/postgresql/codec/PostgreSQLPacketCodecEngineTest.java index 6d5444b68e..43ca37b660 100644 --- a/shardingsphere-db-protocol/shardingsphere-db-protocol-postgresql/src/test/java/org/apache/shardingsphere/db/protocol/postgresql/codec/PostgreSQLPacketCodecEngineTest.java +++ b/shardingsphere-db-protocol/shardingsphere-db-protocol-postgresql/src/test/java/org/apache/shardingsphere/db/protocol/postgresql/codec/PostgreSQLPacketCodecEngineTest.java @@ -40,7 +40,7 @@ import static org.mockito.Mockito.verify; import static org.mockito.Mockito.when; @RunWith(MockitoJUnitRunner.class) -public class PostgreSQLPacketCodecEngineTest { +public final class PostgreSQLPacketCodecEngineTest { @Mock private ChannelHandlerContext context; diff --git a/shardingsphere-db-protocol/shardingsphere-db-protocol-postgresql/src/test/java/org/apache/shardingsphere/db/protocol/postgresql/constant/PostgreSQLColumnTypeTest.java b/shardingsphere-db-protocol/shardingsphere-db-protocol-postgresql/src/test/java/org/apache/shardingsphere/db/protocol/postgresql/constant/PostgreSQLColumnTypeTest.java index fe21b023c6..83475457f0 100644 --- a/shardingsphere-db-protocol/shardingsphere-db-protocol-postgresql/src/test/java/org/apache/shardingsphere/db/protocol/postgresql/constant/PostgreSQLColumnTypeTest.java +++ b/shardingsphere-db-protocol/shardingsphere-db-protocol-postgresql/src/test/java/org/apache/shardingsphere/db/protocol/postgresql/constant/PostgreSQLColumnTypeTest.java @@ -24,7 +24,7 @@ import java.sql.Types; import static org.hamcrest.CoreMatchers.is; import static org.junit.Assert.assertThat; -public class PostgreSQLColumnTypeTest { +public final class PostgreSQLColumnTypeTest { @Test public void assertValueOfJDBCType() { @@ -52,5 +52,4 @@ public class PostgreSQLColumnTypeTest { public void assertGetValue() { assertThat(PostgreSQLColumnType.POSTGRESQL_TYPE_INT8.getValue(), is(20)); } - } -- GitLab