From 3354e103d747763b7f2e2d43a411dda07b48093d Mon Sep 17 00:00:00 2001 From: Otavio Rodolfo Piske Date: Tue, 7 Jan 2025 16:02:33 +0100 Subject: [PATCH] (chores) camel-atom: minor test code cleanup --- .../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 f98ae2bedbf05..de15bc1adb76f 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.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 @@ void testNoSplitEntries() throws Exception { 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);