Update raw tx tests
@@ -101,6 +101,7 @@ public class TransactionManagerTest {
when(encryptedRawTransactionDAO.retrieveByHash(any(MessageHash.class)))
.thenReturn(Optional.of(encryptedRawTransaction));
+ when(payloadEncoder.forRecipient(any(EncodedPayload.class), any(PublicKey.class))).thenReturn(payload);
when(payload.getCipherText()).thenReturn("ENCRYPTED_PAYLOAD".getBytes());
@@ -118,6 +119,7 @@ public class TransactionManagerTest {
verify(enclave).encryptPayload(any(RawTransaction.class), any());
verify(payloadEncoder).encode(payload);
+ verify(payloadEncoder).forRecipient(any(EncodedPayload.class), any(PublicKey.class));
verify(encryptedTransactionDAO).save(any(EncryptedTransaction.class));
verify(encryptedRawTransactionDAO).retrieveByHash(any(MessageHash.class));
verify(payloadPublisher).publishPayload(any(EncodedPayload.class), any(PublicKey.class));
