This is an automated email from the ASF dual-hosted git repository.
wuweijie pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git
The following commit(s) were added to refs/heads/master by this push:
new e51cfb7 Remove unnecessary assertions (#10057)
e51cfb7 is described below
commit e51cfb76caa3c1b62baf8c7ad2520b416ae5808a
Author: Liang Zhang <[email protected]>
AuthorDate: Mon Apr 12 22:43:13 2021 +0800
Remove unnecessary assertions (#10057)
---
.../packet/command/query/binary/parse/PostgreSQLComParsePacketTest.java | 2 --
.../packet/command/query/text/PostgreSQLComQueryPacketTest.java | 1 -
2 files changed, 3 deletions(-)
diff --git
a/shardingsphere-db-protocol/shardingsphere-db-protocol-postgresql/src/test/java/org/apache/shardingsphere/db/protocol/postgresql/packet/command/query/binary/parse/PostgreSQLComParsePacketTest.java
b/shardingsphere-db-protocol/shardingsphere-db-protocol-postgresql/src/test/java/org/apache/shardingsphere/db/protocol/postgresql/packet/command/query/binary/parse/PostgreSQLComParsePacketTest.java
index 7a9d3ec..90c593e 100644
---
a/shardingsphere-db-protocol/shardingsphere-db-protocol-postgresql/src/test/java/org/apache/shardingsphere/db/protocol/postgresql/packet/command/query/binary/parse/PostgreSQLComParsePacketTest.java
+++
b/shardingsphere-db-protocol/shardingsphere-db-protocol-postgresql/src/test/java/org/apache/shardingsphere/db/protocol/postgresql/packet/command/query/binary/parse/PostgreSQLComParsePacketTest.java
@@ -31,7 +31,6 @@ import static org.hamcrest.CoreMatchers.equalTo;
import static org.hamcrest.CoreMatchers.is;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertThat;
-import static org.junit.Assert.assertTrue;
import static org.mockito.Mockito.when;
@RunWith(MockitoJUnitRunner.class)
@@ -54,6 +53,5 @@ public final class PostgreSQLComParsePacketTest {
assertNotNull(types);
assertThat(types.size(), equalTo(1));
assertThat(types.get(0).getColumnType(),
is(PostgreSQLBinaryColumnType.POSTGRESQL_TYPE_UNSPECIFIED));
-
assertTrue(actual.toString().startsWith("PostgreSQLComParsePacket(statementId=sql,
sql=sql, binaryStatementParameterTypes=["));
}
}
diff --git
a/shardingsphere-db-protocol/shardingsphere-db-protocol-postgresql/src/test/java/org/apache/shardingsphere/db/protocol/postgresql/packet/command/query/text/PostgreSQLComQueryPacketTest.java
b/shardingsphere-db-protocol/shardingsphere-db-protocol-postgresql/src/test/java/org/apache/shardingsphere/db/protocol/postgresql/packet/command/query/text/PostgreSQLComQueryPacketTest.java
index 68b7640..2cf0d4d 100644
---
a/shardingsphere-db-protocol/shardingsphere-db-protocol-postgresql/src/test/java/org/apache/shardingsphere/db/protocol/postgresql/packet/command/query/text/PostgreSQLComQueryPacketTest.java
+++
b/shardingsphere-db-protocol/shardingsphere-db-protocol-postgresql/src/test/java/org/apache/shardingsphere/db/protocol/postgresql/packet/command/query/text/PostgreSQLComQueryPacketTest.java
@@ -42,6 +42,5 @@ public final class PostgreSQLComQueryPacketTest {
verify(payload).readInt4();
assertThat(actual.getSql(), is("sql"));
assertThat(actual.getMessageType(), is('Q'));
- assertThat(actual.toString(), is("PostgreSQLComQueryPacket(sql=sql)"));
}
}