mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-24 16:49:55 +01:00
Make message fields local.
This commit is contained in:
@@ -51,10 +51,6 @@ public class SyncRecordReaderImplTest extends BrambleMockTestCase {
|
|||||||
context.mock(MessageFactory.class);
|
context.mock(MessageFactory.class);
|
||||||
private final RecordReader recordReader = context.mock(RecordReader.class);
|
private final RecordReader recordReader = context.mock(RecordReader.class);
|
||||||
|
|
||||||
private final MessageId messageId = new MessageId(getRandomId());
|
|
||||||
private final GroupId groupId = new GroupId(getRandomId());
|
|
||||||
private final long timestamp = System.currentTimeMillis();
|
|
||||||
|
|
||||||
private final SyncRecordReader reader =
|
private final SyncRecordReader reader =
|
||||||
new SyncRecordReaderImpl(messageFactory, recordReader);
|
new SyncRecordReaderImpl(messageFactory, recordReader);
|
||||||
|
|
||||||
@@ -203,6 +199,10 @@ public class SyncRecordReaderImplTest extends BrambleMockTestCase {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void expectCreateMessage(int bodyLength) {
|
private void expectCreateMessage(int bodyLength) {
|
||||||
|
MessageId messageId = new MessageId(getRandomId());
|
||||||
|
GroupId groupId = new GroupId(getRandomId());
|
||||||
|
long timestamp = System.currentTimeMillis();
|
||||||
|
|
||||||
context.checking(new Expectations() {{
|
context.checking(new Expectations() {{
|
||||||
Matcher<byte[]> matcher = new PredicateMatcher<>(byte[].class,
|
Matcher<byte[]> matcher = new PredicateMatcher<>(byte[].class,
|
||||||
b -> b.length == MESSAGE_HEADER_LENGTH + bodyLength);
|
b -> b.length == MESSAGE_HEADER_LENGTH + bodyLength);
|
||||||
|
|||||||
Reference in New Issue
Block a user