use of org.jboss.resteasy.plugins.providers.atom.Feed in project candlepin by candlepin.
the class AtomFeedResourceTest method getFeed.
@Test
public void getFeed() {
CandlepinQuery cqmock = mock(CandlepinQuery.class);
List<Event> events = getEvents(10);
when(cqmock.list()).thenReturn(events);
when(ec.listMostRecent(eq(1000))).thenReturn(cqmock);
Feed f = afr.getFeed();
assertNotNull(f);
assertEquals(10, f.getEntries().size());
}
Aggregations