FlyingZC opened a new issue, #20365: URL: https://github.com/apache/shardingsphere/issues/20365
Hi community, This issue is for [#20305](https://github.com/apache/shardingsphere/issues/20305) # Aim Add more unit tests for the class of `org.apache.shardingsphere.transaction.ConnectionSavepointManager`. # Basic Qualifications - Java - Maven - Transaction # Detail Maybe you can mock the `connection` and assert the results of `setSavepoint`,`rollbackToSavepoint`... methods. ```java private Connection mockConnection() throws SQLException { Connection result = mock(Connection.class); when(result.unwrap(JdbcConnection.class)).thenReturn(mock(JdbcConnection.class)); return result; } ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
