Skip to content

Commit 2af9a07

Browse files
committed
TEST: update assertions in ApplicationTest to use JUnit assertions
Signed-off-by: nmy6452 <[email protected]>
1 parent e29ae9c commit 2af9a07

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

basic/mqtt5/src/test/java/org/springframework/integration/samples/mqtt5/ApplicationTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package org.springframework.integration.samples.mqtt5;
22

3-
import static org.assertj.core.api.Assertions.assertThat;
3+
import static org.junit.Assert.assertTrue;
4+
import static org.junit.jupiter.api.Assertions.assertEquals;
45
import static org.mockito.ArgumentMatchers.any;
56
import static org.mockito.Mockito.verify;
67
import static org.springframework.integration.test.mock.MockIntegration.messageArgumentCaptor;
@@ -52,9 +53,8 @@ void testMqttFlow() throws InterruptedException {
5253

5354
mqttOutFlow.getInputChannel().send(new GenericMessage<>("foo"));
5455

55-
assertThat(receiveLatch.await(10, TimeUnit.SECONDS)).isTrue();
56+
assertTrue(receiveLatch.await(10, TimeUnit.SECONDS));
5657
verify(mockMessageHandler).handleMessage(any());
57-
assertThat(captor.getValue().getPayload())
58-
.isEqualTo("foo sent to MQTT5, received from MQTT5");
58+
assertEquals("foo sent to MQTT5, received from MQTT5",captor.getValue().getPayload());
5959
}
6060
}

0 commit comments

Comments
 (0)