Skip to content

Commit

Permalink
remove unused mock
Browse files Browse the repository at this point in the history
  • Loading branch information
mehdi-aouadi committed Oct 14, 2024
1 parent 58f4a77 commit f087be4
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
import static org.assertj.core.api.Assertions.assertThat;
import static org.mockito.Mockito.*;

import java.io.File;
import java.nio.file.Path;
import java.util.Optional;
import org.hyperledger.besu.plugin.services.MetricsSystem;
Expand All @@ -42,7 +41,6 @@ class StorageServiceTest {
private final StorageConfiguration storageConfiguration = mock(StorageConfiguration.class);
private final MetricsSystem metricsSystem = mock(MetricsSystem.class);
private final DataDirLayout dataDirLayout = mock(DataDirLayout.class);
private final File file = mock(File.class);
private final Eth1Address eth1DepositContract = mock(Eth1Address.class);
private final Spec spec = mock(Spec.class);
private final EventChannels eventChannels = mock(EventChannels.class);
Expand All @@ -61,7 +59,6 @@ void setUp(@TempDir final Path tempDir) {
when(storageConfiguration.getEth1DepositContract()).thenReturn(eth1DepositContract);
when(storageConfiguration.isStoreNonCanonicalBlocksEnabled()).thenReturn(false);
when(storageConfiguration.getSpec()).thenReturn(spec);
when(file.toPath()).thenReturn(tempDir);

when(eventChannels.subscribe(any(), any())).thenReturn(eventChannels);
when(serviceConfig.getEventChannels()).thenReturn(eventChannels);
Expand Down

0 comments on commit f087be4

Please sign in to comment.