This is an automated email from the ASF dual-hosted git repository.
palashc pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/phoenix.git
The following commit(s) were added to refs/heads/master by this push:
new 5ebb828ed7 PHOENIX-7605 (Addendum) Fixing unit test mocking (#2155)
5ebb828ed7 is described below
commit 5ebb828ed7a78ebdba5c2e1c97cc19d311083dcb
Author: ritegarg <[email protected]>
AuthorDate: Fri May 16 10:23:05 2025 -0700
PHOENIX-7605 (Addendum) Fixing unit test mocking (#2155)
Co-authored-by: Ritesh Garg
<[email protected]>
---
.../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 f25e7a04ed..2598723e41 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
@@ -375,26 +375,26 @@ 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")));
}
@Test