diff --git a/p2p/src/test/java/bisq/network/p2p/storage/P2PDataStorageBuildGetDataResponseTest.java b/p2p/src/test/java/bisq/network/p2p/storage/P2PDataStorageBuildGetDataResponseTest.java index c50d363cfd..fab131766f 100644 --- a/p2p/src/test/java/bisq/network/p2p/storage/P2PDataStorageBuildGetDataResponseTest.java +++ b/p2p/src/test/java/bisq/network/p2p/storage/P2PDataStorageBuildGetDataResponseTest.java @@ -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); diff --git a/p2p/src/test/java/bisq/network/p2p/storage/TestState.java b/p2p/src/test/java/bisq/network/p2p/storage/TestState.java index d072fdc5b6..8222ccc322 100644 --- a/p2p/src/test/java/bisq/network/p2p/storage/TestState.java +++ b/p2p/src/test/java/bisq/network/p2p/storage/TestState.java @@ -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; }