Fix tests

Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
This commit is contained in:
HenrikJannsen 2024-06-08 15:01:14 +07:00 committed by Alejandro García
parent 19a9526d55
commit 55878c7b15
No known key found for this signature in database
GPG Key ID: F806F422E222AA02
2 changed files with 4 additions and 0 deletions

View File

@ -129,6 +129,8 @@ public class P2PDataStorageBuildGetDataResponseTest {
Message messageMock = mock(Message.class);
when(messageMock.toByteArray()).thenReturn(Sig.getPublicKeyBytes(ownerKeys.getPublic()));
when(protectedStoragePayload.toProtoMessage()).thenReturn(messageMock);
when(protectedStoragePayload.serialize()).thenReturn(new byte[]{});
when(protectedStoragePayload.serializeForHash()).thenReturn(new byte[]{});
// Entry stub
ProtectedStorageEntry stub = mock(ProtectedStorageEntry.class);

View File

@ -359,6 +359,8 @@ public class TestState {
when(payloadMock.getOwnerPubKey()).thenReturn(receiverKey);
when(payloadMock.getSenderPubKeyForAddOperation()).thenReturn(senderKey);
when(payloadMock.toProtoMessage()).thenReturn(messageMock);
when(payloadMock.serialize()).thenReturn(new byte[]{});
when(payloadMock.serializeForHash()).thenReturn(new byte[]{});
return payloadMock;
}