Skip to content

Commit

Permalink
Fix sonar cloud issue (#28665)
Browse files Browse the repository at this point in the history
  • Loading branch information
terrymanu authored Oct 7, 2023
1 parent c2a5ec1 commit 9fa48d7
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@
import static org.mockito.Mockito.any;
import static org.mockito.Mockito.anyCollection;
import static org.mockito.Mockito.anyMap;
import static org.mockito.Mockito.eq;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.when;

Expand All @@ -76,7 +75,7 @@ class MetaDataContextsFactoryTest {

@BeforeEach
void setUp() throws SQLException {
when(metaDataPersistService.loadDataSourceConfigurations(eq("foo_db"))).thenReturn(Collections.emptyMap());
when(metaDataPersistService.loadDataSourceConfigurations("foo_db")).thenReturn(Collections.emptyMap());
DatabaseRulePersistService databaseRulePersistService = mockDatabaseRulePersistService();
when(metaDataPersistService.getDatabaseRulePersistService()).thenReturn(databaseRulePersistService);
GlobalRulePersistService globalRulePersistService = mockGlobalRulePersistService();
Expand Down

0 comments on commit 9fa48d7

Please sign in to comment.