use of org.apache.abdera.parser.stax.FOMEntry in project quickstarts by jboss-switchyard.
the class CamelAtomPollTest method shouldRetrieveGreetings.
@Test
public void shouldRetrieveGreetings() throws Exception {
_testKit.removeService("PrintService");
final MockHandler printService = _testKit.registerInOnlyService("PrintService");
Thread.sleep(10001);
final LinkedBlockingQueue<Exchange> receivedMessages = printService.getMessages();
for (Exchange e : receivedMessages) {
FOMEntry entry = (FOMEntry) e.getMessage().getContent();
Assert.assertNotNull(entry);
Assert.assertTrue(entry.getTitle().equals(TITLE));
Assert.assertTrue(entry.getId().toString().equals(ID));
}
}
Aggregations