This is an automated email from the ASF dual-hosted git repository. orpiske pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel.git
commit d57f849bff67100aeb6cd9da08e45e84260958ef Author: Nikita Konovalov <[email protected]> AuthorDate: Wed Aug 28 13:54:21 2024 +0200 CAMEL-19538: changed some ineffective assertions --- .../java/org/apache/camel/MllpTcpServerConsumerLenientBindTest.java | 2 +- .../org/apache/camel/component/mllp/MllpIdleTimeoutStrategyTest.java | 2 +- .../camel/component/mllp/MllpTcpServerConsumerConnectionTest.java | 3 +-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/components/camel-mllp/src/test/java/org/apache/camel/MllpTcpServerConsumerLenientBindTest.java b/components/camel-mllp/src/test/java/org/apache/camel/MllpTcpServerConsumerLenientBindTest.java index 6dae69c084a..825a0e4ff8b 100644 --- a/components/camel-mllp/src/test/java/org/apache/camel/MllpTcpServerConsumerLenientBindTest.java +++ b/components/camel-mllp/src/test/java/org/apache/camel/MllpTcpServerConsumerLenientBindTest.java @@ -27,9 +27,9 @@ import org.apache.camel.test.junit.rule.mllp.MllpClientResource; import org.apache.camel.test.junit.rule.mllp.MllpJUnitResourceTimeoutException; import org.apache.camel.test.junit5.CamelTestSupport; import org.apache.camel.test.mllp.Hl7TestMessageGenerator; +import org.awaitility.Awaitility; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; -import org.awaitility.Awaitility; import static org.apache.camel.test.junit5.TestSupport.assertIsInstanceOf; import static org.apache.camel.test.junit5.TestSupport.assertStringContains; diff --git a/components/camel-mllp/src/test/java/org/apache/camel/component/mllp/MllpIdleTimeoutStrategyTest.java b/components/camel-mllp/src/test/java/org/apache/camel/component/mllp/MllpIdleTimeoutStrategyTest.java index 4f9ee0ffb58..9ee95852fa3 100644 --- a/components/camel-mllp/src/test/java/org/apache/camel/component/mllp/MllpIdleTimeoutStrategyTest.java +++ b/components/camel-mllp/src/test/java/org/apache/camel/component/mllp/MllpIdleTimeoutStrategyTest.java @@ -33,11 +33,11 @@ import org.apache.camel.test.AvailablePortFinder; import org.apache.camel.test.junit.rule.mllp.MllpServerResource; import org.apache.camel.test.junit5.CamelTestSupport; import org.apache.camel.test.mllp.Hl7TestMessageGenerator; +import org.awaitility.Awaitility; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; import org.mockito.Mockito; -import org.awaitility.Awaitility; import static org.mockito.ArgumentMatchers.any; import static org.mockito.Mockito.never; diff --git a/components/camel-mllp/src/test/java/org/apache/camel/component/mllp/MllpTcpServerConsumerConnectionTest.java b/components/camel-mllp/src/test/java/org/apache/camel/component/mllp/MllpTcpServerConsumerConnectionTest.java index 005ea041b01..6f39abc5f96 100644 --- a/components/camel-mllp/src/test/java/org/apache/camel/component/mllp/MllpTcpServerConsumerConnectionTest.java +++ b/components/camel-mllp/src/test/java/org/apache/camel/component/mllp/MllpTcpServerConsumerConnectionTest.java @@ -137,8 +137,7 @@ public class MllpTcpServerConsumerConnectionTest extends CamelTestSupport { Awaitility.await().untilAsserted(() -> { - MllpJUnitResourceException ex = assertThrows(MllpJUnitResourceException.class, () -> - mllpClient.checkConnection(), + MllpJUnitResourceException ex = assertThrows(MllpJUnitResourceException.class, () -> mllpClient.checkConnection(), "The MllpClientResource should have thrown an exception when writing to the reset socket"); assertEquals("checkConnection failed - read() returned END_OF_STREAM", ex.getMessage());
