This is an automated email from the ASF dual-hosted git repository.
duanzhengqiang 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 9f4d7052ab8 Fix sonar issue of assertBeginTransaction method (#31806)
9f4d7052ab8 is described below
commit 9f4d7052ab88112891f9b73c8705b65a43679358
Author: ZhangCheng <[email protected]>
AuthorDate: Fri Jun 21 19:04:48 2024 +0800
Fix sonar issue of assertBeginTransaction method (#31806)
---
.../jdbc/core/connection/DriverDatabaseConnectionManagerTest.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/jdbc/src/test/java/org/apache/shardingsphere/driver/jdbc/core/connection/DriverDatabaseConnectionManagerTest.java
b/jdbc/src/test/java/org/apache/shardingsphere/driver/jdbc/core/connection/DriverDatabaseConnectionManagerTest.java
index b02ec168cac..68e6707a0b3 100644
---
a/jdbc/src/test/java/org/apache/shardingsphere/driver/jdbc/core/connection/DriverDatabaseConnectionManagerTest.java
+++
b/jdbc/src/test/java/org/apache/shardingsphere/driver/jdbc/core/connection/DriverDatabaseConnectionManagerTest.java
@@ -179,7 +179,7 @@ class DriverDatabaseConnectionManagerTest {
}
@Test
- public void assertBeginTransaction() throws SQLException {
+ void assertBeginTransaction() throws SQLException {
databaseConnectionManager.begin();
assertTrue(databaseConnectionManager.getConnectionContext().getTransactionContext().isInTransaction());
}