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
The following commit(s) were added to refs/heads/main by this push: new 5fcc57d23df (chores) camel-atom: minor test code cleanup 5fcc57d23df is described below commit 5fcc57d23df3a22a79893705682188a0750a6258 Author: Otavio Rodolfo Piske <angusyo...@gmail.com> AuthorDate: Tue Jan 7 16:02:33 2025 +0100 (chores) camel-atom: minor test code cleanup --- .../org/apache/camel/component/atom/AtomPollingConsumerTest.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/camel-atom/src/test/java/org/apache/camel/component/atom/AtomPollingConsumerTest.java b/components/camel-atom/src/test/java/org/apache/camel/component/atom/AtomPollingConsumerTest.java index f98ae2bedbf..de15bc1adb7 100644 --- a/components/camel-atom/src/test/java/org/apache/camel/component/atom/AtomPollingConsumerTest.java +++ b/components/camel-atom/src/test/java/org/apache/camel/component/atom/AtomPollingConsumerTest.java @@ -29,8 +29,8 @@ import org.junit.jupiter.api.condition.DisabledOnOs; import org.junit.jupiter.api.condition.OS; import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertInstanceOf; import static org.junit.jupiter.api.Assertions.assertNotNull; -import static org.junit.jupiter.api.Assertions.assertTrue; /** * Unit test for AtomPollingConsumer @@ -47,8 +47,8 @@ public class AtomPollingConsumerTest extends CamelTestSupport { Exchange exchange = mock.getExchanges().get(0); Message in = exchange.getIn(); assertNotNull(in); - assertTrue(in.getBody() instanceof List); - assertTrue(in.getHeader(AtomConstants.ATOM_FEED) instanceof List); + assertInstanceOf(List.class, in.getBody()); + assertInstanceOf(List.class, in.getHeader(AtomConstants.ATOM_FEED)); List feed = in.getHeader(AtomConstants.ATOM_FEED, List.class); Item item = (Item) feed.get(0);