Skip to content

Commit

Permalink
(chores) camel-atom: minor test code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
orpiske committed Jan 7, 2025
1 parent 1213b0b commit 5fcc57d
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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);
Expand Down

0 comments on commit 5fcc57d

Please sign in to comment.