use of com.radixdlt.ledger.DtoLedgerProof in project radixdlt by radixdlt.
the class RemoteSyncServiceTest method when_remote_sync_request_and_null_return__then_dont_do_anything.
@Test
public void when_remote_sync_request_and_null_return__then_dont_do_anything() {
DtoLedgerProof header = mock(DtoLedgerProof.class);
when(header.getOpaque()).thenReturn(HashUtils.zero256());
when(header.getLedgerHeader()).thenReturn(mock(LedgerHeader.class));
when(header.getSignatures()).thenReturn(mock(TimestampedECDSASignatures.class));
processor.syncRequestEventProcessor().process(BFTNode.random(), SyncRequest.create(header));
when(reader.getNextCommittedTxns(any())).thenReturn(null);
verify(syncResponseDispatcher, never()).dispatch(any(BFTNode.class), any());
}
Aggregations