From 88dbb64bf43c952b523f28721c5479c1b0fe7e2d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20M=C3=A5nsson?= Date: Wed, 12 Oct 2022 09:35:07 +0200 Subject: [PATCH] nullLiteral() and @Nullable --- .../service/messaging/amqp/AmqpConsumerActorTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/connectivity/service/src/test/java/org/eclipse/ditto/connectivity/service/messaging/amqp/AmqpConsumerActorTest.java b/connectivity/service/src/test/java/org/eclipse/ditto/connectivity/service/messaging/amqp/AmqpConsumerActorTest.java index e41f055adf..cd9ef46ebe 100644 --- a/connectivity/service/src/test/java/org/eclipse/ditto/connectivity/service/messaging/amqp/AmqpConsumerActorTest.java +++ b/connectivity/service/src/test/java/org/eclipse/ditto/connectivity/service/messaging/amqp/AmqpConsumerActorTest.java @@ -238,7 +238,7 @@ public void nullPayloadMappingTest() { assertThat(((ModifyAttribute) command).getAttributePointer()) .isEqualTo(JsonPointer.of("/foo")); assertThat(((ModifyAttribute) command).getAttributeValue()) - .isEqualTo(JsonValue.of(plainPayload)); + .isEqualTo(JsonValue.nullLiteral()); } }; } @@ -323,7 +323,7 @@ public void plainStringMappingMultipleTest() { } @SafeVarargs // varargs array is not modified or passed around - private JmsMessage getJmsMessage(final String plainPayload, final String correlationId, + private JmsMessage getJmsMessage(@Nullable final String plainPayload, final String correlationId, final Map.Entry... headers) { try { final AmqpJmsTextMessageFacade messageFacade = new AmqpJmsTextMessageFacade();