fixed missing coverage
@@ -100,6 +100,8 @@ public class TransactionManagerTest {
PublicKey sender = PublicKey.from("SENDER".getBytes());
PublicKey receiver = PublicKey.from("RECEIVER".getBytes());
+ when(enclave.getPublicKeys()).thenReturn(Set.of(receiver));
+
byte[] payload = Base64.getEncoder().encode("PAYLOAD".getBytes());
SendRequest sendRequest = mock(SendRequest.class);
@@ -222,6 +224,8 @@ public class TransactionManagerTest {
PublicKey receiver = PublicKey.from("RECEIVER".getBytes());
+ when(enclave.getPublicKeys()).thenReturn(Set.of(receiver));
+
SendSignedRequest sendSignedRequest = mock(SendSignedRequest.class);
when(sendSignedRequest.getRecipients()).thenReturn(List.of(receiver));
when(sendSignedRequest.getSignedData()).thenReturn("HASH".getBytes());
