Clean up null-ability of incoming message entity fields

This commit is contained in:
Chris Eager
2022-02-16 11:22:59 -08:00
committed by Chris Eager
parent ba5e5a780f
commit 288cbf4a80
3 changed files with 18 additions and 32 deletions

View File

@@ -646,7 +646,8 @@ class MessageControllerTest {
try {
return Stream.of(
Entity.entity(new IncomingMessageList(
List.of(new IncomingMessage(1, null, 1L, null, new String(contentBytes), null, null, null)), null, null),
List.of(new IncomingMessage(1, null, 1L, 1, new String(contentBytes), null, null)), false,
System.currentTimeMillis()),
MediaType.APPLICATION_JSON_TYPE),
Entity.entity(messageStream.toByteArray(), MultiDeviceMessageListProvider.MEDIA_TYPE)
);