mirror of
https://github.com/bisq-network/bisq.git
synced 2024-11-19 01:41:11 +01:00
Fix tests
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
This commit is contained in:
parent
19a9526d55
commit
55878c7b15
@ -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);
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user