Fix param in test

Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
This commit is contained in:
HenrikJannsen 2022-11-03 12:26:59 -05:00
parent 8d0b0be505
commit e653262751
No known key found for this signature in database
GPG key ID: 02AA2BAE387C8307

View file

@ -35,14 +35,14 @@ import javafx.collections.ListChangeListener;
import java.util.Arrays; import java.util.Arrays;
import java.util.Collections; import java.util.Collections;
import org.mockito.Mock;
import org.mockito.MockitoAnnotations;
import org.junit.Before; import org.junit.Before;
import org.junit.Test; import org.junit.Test;
import static org.mockito.Mockito.*; import static org.mockito.Mockito.*;
import org.mockito.Mock;
import org.mockito.MockitoAnnotations;
/** /**
* Tests of the P2PDataStorage::onRemoved callback behavior to ensure that the proper number of signal events occur. * Tests of the P2PDataStorage::onRemoved callback behavior to ensure that the proper number of signal events occur.
@ -71,8 +71,7 @@ public class ProposalServiceP2PDataStorageListenerTest {
mock(AppendOnlyDataStoreService.class), mock(AppendOnlyDataStoreService.class),
mock(ProtectedDataStoreService.class), mock(ProtectedDataStoreService.class),
this.daoStateService, this.daoStateService,
mock(ProposalValidatorProvider.class), mock(ProposalValidatorProvider.class));
true);
// Create a state so that all added/removed Proposals will actually update the tempProposals list. // Create a state so that all added/removed Proposals will actually update the tempProposals list.
when(this.periodService.isInPhase(anyInt(), any(DaoPhase.Phase.class))).thenReturn(true); when(this.periodService.isInPhase(anyInt(), any(DaoPhase.Phase.class))).thenReturn(true);