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 09a05f1 Fix test case for PostgreSQLFrontendEngineTest (#10187) 09a05f1 is described below commit 09a05f1ce5777a1ae519550367c1118f26440aa8 Author: Liang Zhang <terrym...@163.com> AuthorDate: Sun Apr 25 13:36:39 2021 +0800 Fix test case for PostgreSQLFrontendEngineTest (#10187) --- .../proxy/frontend/postgresql/PostgreSQLFrontendEngineTest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/shardingsphere-proxy/shardingsphere-proxy-frontend/shardingsphere-proxy-frontend-postgresql/src/test/java/org/apache/shardingsphere/proxy/frontend/postgresql/PostgreSQLFrontendEngineTest.java b/shardingsphere-proxy/shardingsphere-proxy-frontend/shardingsphere-proxy-frontend-postgresql/src/test/java/org/apache/shardingsphere/proxy/frontend/postgresql/PostgreSQLFrontendEngineTest.java index b0a90ee..4a938c9 100644 --- a/shardingsphere-proxy/shardingsphere-proxy-frontend/shardingsphere-proxy-frontend-postgresql/src/test/java/org/apache/shardingsphere/proxy/frontend/postgresql/PostgreSQLFrontendEngineTest.java +++ b/shardingsphere-proxy/shardingsphere-proxy-frontend/shardingsphere-proxy-frontend-postgresql/src/test/java/org/apache/shardingsphere/proxy/frontend/postgresql/PostgreSQLFrontendEngineTest.java @@ -26,6 +26,7 @@ import static org.hamcrest.CoreMatchers.is; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertNull; import static org.junit.Assert.assertThat; +import static org.mockito.Mockito.RETURNS_DEEP_STUBS; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.when; @@ -39,7 +40,7 @@ public final class PostgreSQLFrontendEngineTest { @Test public void assertRelease() { - BackendConnection backendConnection = mock(BackendConnection.class); + BackendConnection backendConnection = mock(BackendConnection.class, RETURNS_DEEP_STUBS); int connectionId = 1; when(backendConnection.getConnectionId()).thenReturn(connectionId); PostgreSQLBinaryStatementRegistry registry = PostgreSQLBinaryStatementRegistry.getInstance();