diff --git a/proxy/backend/core/src/test/java/org/apache/shardingsphere/proxy/backend/handler/distsql/rdl/resource/AlterStorageUnitExecutorTest.java b/proxy/backend/core/src/test/java/org/apache/shardingsphere/proxy/backend/handler/distsql/rdl/resource/AlterStorageUnitExecutorTest.java index 3cda107ee25c5..9a95d3925291d 100644 --- a/proxy/backend/core/src/test/java/org/apache/shardingsphere/proxy/backend/handler/distsql/rdl/resource/AlterStorageUnitExecutorTest.java +++ b/proxy/backend/core/src/test/java/org/apache/shardingsphere/proxy/backend/handler/distsql/rdl/resource/AlterStorageUnitExecutorTest.java @@ -69,8 +69,8 @@ void setUp() throws ReflectiveOperationException { void assertExecuteUpdate() { ResourceMetaData resourceMetaData = mock(ResourceMetaData.class, RETURNS_DEEP_STUBS); StorageUnit storageUnit = mock(StorageUnit.class, RETURNS_DEEP_STUBS); - ConnectionProperties connectionProperties = mockConnectionProperties("ds_0"); - when(storageUnit.getConnectionProperties()).thenReturn(connectionProperties); + ConnectionProperties connectionProps = mockConnectionProperties("ds_0"); + when(storageUnit.getConnectionProperties()).thenReturn(connectionProps); when(resourceMetaData.getStorageUnits()).thenReturn(Collections.singletonMap("ds_0", storageUnit)); when(database.getResourceMetaData()).thenReturn(resourceMetaData); executor.setDatabase(database); @@ -98,8 +98,8 @@ void assertExecuteUpdateWithAlterDatabase() { when(ProxyContext.getInstance().getContextManager()).thenReturn(contextManager); ResourceMetaData resourceMetaData = mock(ResourceMetaData.class, RETURNS_DEEP_STUBS); StorageUnit storageUnit = mock(StorageUnit.class, RETURNS_DEEP_STUBS); - ConnectionProperties connectionProperties = mockConnectionProperties("ds_1"); - when(storageUnit.getConnectionProperties()).thenReturn(connectionProperties); + ConnectionProperties connectionProps = mockConnectionProperties("ds_1"); + when(storageUnit.getConnectionProperties()).thenReturn(connectionProps); when(resourceMetaData.getStorageUnits()).thenReturn(Collections.singletonMap("ds_0", storageUnit)); when(database.getResourceMetaData()).thenReturn(resourceMetaData); executor.setDatabase(database);