This is an automated email from the ASF dual-hosted git repository. palashc pushed a commit to branch 5.2 in repository https://gitbox.apache.org/repos/asf/phoenix.git
The following commit(s) were added to refs/heads/5.2 by this push: new ccce113685 PHOENIX-7605 (Addendum) Fixing unit test mocking (#2156) ccce113685 is described below commit ccce1136857b9d78bf9931d6aeefc4c7f5a8dee5 Author: ritegarg <58840065+riteg...@users.noreply.github.com> AuthorDate: Fri May 16 10:22:38 2025 -0700 PHOENIX-7605 (Addendum) Fixing unit test mocking (#2156) Co-authored-by: Ritesh Garg <ritesh.g...@riteshg-ltmd34g.internal.salesforce.com> --- .../org/apache/phoenix/query/ConnectionQueryServicesImplTest.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/phoenix-core/src/test/java/org/apache/phoenix/query/ConnectionQueryServicesImplTest.java b/phoenix-core/src/test/java/org/apache/phoenix/query/ConnectionQueryServicesImplTest.java index deddb4f4a1..82e2c48875 100644 --- a/phoenix-core/src/test/java/org/apache/phoenix/query/ConnectionQueryServicesImplTest.java +++ b/phoenix-core/src/test/java/org/apache/phoenix/query/ConnectionQueryServicesImplTest.java @@ -366,25 +366,25 @@ public class ConnectionQueryServicesImplTest { public void testGetSysMutexTableWithName() throws Exception { when(mockAdmin.tableExists(any())).thenReturn(true); when(mockConn.getAdmin()).thenReturn(mockAdmin); - when(mockConn.getTable(eq(TableName.valueOf("SYSTEM.MUTEX")), any())) + when(mockConn.getTable(eq(TableName.valueOf("SYSTEM.MUTEX")))) .thenReturn(mockTable); assertSame(mockCqs.getSysMutexTable(), mockTable); verify(mockAdmin, Mockito.times(1)).tableExists(any()); verify(mockConn, Mockito.times(1)).getAdmin(); verify(mockConn, Mockito.times(1)) - .getTable(eq(TableName.valueOf("SYSTEM.MUTEX")), any()); + .getTable(eq(TableName.valueOf("SYSTEM.MUTEX"))); } @Test public void testGetSysMutexTableWithNamespace() throws Exception { when(mockAdmin.tableExists(any())).thenReturn(false); when(mockConn.getAdmin()).thenReturn(mockAdmin); - when(mockConn.getTable(eq(TableName.valueOf("SYSTEM:MUTEX")), any())) + when(mockConn.getTable(eq(TableName.valueOf("SYSTEM:MUTEX")))) .thenReturn(mockTable); assertSame(mockCqs.getSysMutexTable(), mockTable); verify(mockAdmin, Mockito.times(1)).tableExists(any()); verify(mockConn, Mockito.times(1)).getAdmin(); verify(mockConn, Mockito.times(1)) - .getTable(eq(TableName.valueOf("SYSTEM:MUTEX")), any()); + .getTable(eq(TableName.valueOf("SYSTEM:MUTEX"))); } }