sashapolo commented on code in PR #1832:
URL: https://github.com/apache/ignite-3/pull/1832#discussion_r1146087947
##########
modules/distribution-zones/src/test/java/org/apache/ignite/internal/distributionzones/DistributionZoneManagerConfigurationChangesTest.java:
##########
@@ -115,178 +98,47 @@ public void setUp() {
DistributionZonesConfiguration zonesConfiguration =
clusterCfgMgr.configurationRegistry()
.getConfiguration(DistributionZonesConfiguration.KEY);
- MetaStorageManager metaStorageManager = mock(MetaStorageManager.class);
-
-
when(metaStorageManager.appliedRevision(any())).thenReturn(completedFuture(0L));
+ vaultMgr = new VaultManager(new InMemoryVaultService());
LogicalTopologyService logicalTopologyService =
mock(LogicalTopologyService.class);
+ doNothing().when(logicalTopologyService).addEventListener(any());
Review Comment:
yes, but you don't need to explicitly mock this method, this is the default
behavior anyway. Or am I missing something?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]