use of com.quorum.tessera.recovery.RecoveryResult in project tessera by ConsenSys.
the class RecoveryImplTest method testRequestSuccess.
@Test
public void testRequestSuccess() {
when(transactionRequester.requestAllTransactionsFromLegacyNode(anyString())).thenReturn(true);
final RecoveryResult result = recovery.request();
assertThat(result).isEqualTo(RecoveryResult.SUCCESS);
verify(transactionRequester).requestAllTransactionsFromNode("http://party1/");
verify(transactionRequester).requestAllTransactionsFromNode("http://party3/");
verify(transactionRequester).requestAllTransactionsFromLegacyNode("http://party2/");
verify(transactionRequester).requestAllTransactionsFromLegacyNode("http://party4/");
verify(discovery).getRemoteNodeInfos();
}
Aggregations