You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@phoenix.apache.org by ap...@apache.org on 2025/05/29 18:56:08 UTC
(phoenix) 20/30: PHOENIX-7605 (Addendum) Fixing unit test mocking (#2155)
This is an automated email from the ASF dual-hosted git repository.
apurtell pushed a commit to branch PHOENIX-7562-feature
in repository https://gitbox.apache.org/repos/asf/phoenix.git
commit fb343feca6afa9723d908ce81d0ff4215394c486
Author: ritegarg <58...@users.noreply.github.com>
AuthorDate: Fri May 16 10:23:05 2025 -0700
PHOENIX-7605 (Addendum) Fixing unit test mocking (#2155)
Co-authored-by: Ritesh Garg <ri...@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 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