Fix raw type in the MqttAdapterTests

This commit is contained in:
Artem Bilan
2021-01-13 15:19:27 -05:00
parent c3eda50297
commit 49b1b69ddd

View File

@@ -332,7 +332,7 @@ public class MqttAdapterTests {
ErrorMessage errorMessage = (ErrorMessage) errorChannel.receive(0);
assertThat(errorMessage).isNotNull()
.extracting(Message::getPayload)
.extracting(ErrorMessage::getPayload)
.isInstanceOf(IllegalStateException.class);
IllegalStateException exception = (IllegalStateException) errorMessage.getPayload();
assertThat(exception).hasMessage("'MqttMessageConverter' returned 'null'");