use of org.candlepin.model.EmptyCandlepinQuery in project candlepin by candlepin.
the class ContentResourceTest method listContent.
@Test
public void listContent() {
when(cc.listAll()).thenReturn(new EmptyCandlepinQuery());
cr.list();
verify(cc, atLeastOnce()).listAll();
}
use of org.candlepin.model.EmptyCandlepinQuery in project candlepin by candlepin.
the class CertificateSerialResourceTest method listall.
@Test
public void listall() {
CandlepinQuery cqmock = new EmptyCandlepinQuery();
CertificateSerialCurator csc = mock(CertificateSerialCurator.class);
when(csc.listAll()).thenReturn(cqmock);
CertificateSerialResource csr = new CertificateSerialResource(csc, this.modelTranslator);
CandlepinQuery<CertificateSerialDTO> result = csr.getCertificateSerials();
assertNotNull(result);
verify(csc, times(1)).listAll();
}
Aggregations