use of com.radixdlt.api.system.health.ForkVoteStatusService in project radixdlt by radixdlt.
the class EngineStatusServiceTest method setup.
private void setup(long currentEpoch) {
final RadixEngine<LedgerAndBFTProof> radixEngine = rmock(RadixEngine.class);
final var committedReader = mock(CommittedReader.class);
final var lastProof = mock(LedgerProof.class);
when(lastProof.getEpoch()).thenReturn(currentEpoch);
forksEpochStore = new InMemoryForksEpochStore(new InMemoryForksEpochStore.Store());
forkVoteStatusService = mock(ForkVoteStatusService.class);
sut = new EngineStatusService(radixEngine, committedReader, lastProof, lastProof, forks, forksEpochStore, forkVoteStatusService);
}
Aggregations