Skip to content

Commit 49b1b69

Browse files
committed
Fix raw type in the MqttAdapterTests
1 parent c3eda50 commit 49b1b69

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-integration-mqtt/src/test/java/org/springframework/integration/mqtt/MqttAdapterTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ public Message<?> toMessage(Object payload, MessageHeaders headers) {
332332

333333
ErrorMessage errorMessage = (ErrorMessage) errorChannel.receive(0);
334334
assertThat(errorMessage).isNotNull()
335-
.extracting(Message::getPayload)
335+
.extracting(ErrorMessage::getPayload)
336336
.isInstanceOf(IllegalStateException.class);
337337
IllegalStateException exception = (IllegalStateException) errorMessage.getPayload();
338338
assertThat(exception).hasMessage("'MqttMessageConverter' returned 'null'");

0 commit comments

Comments
 (0)