use of org.candlepin.model.CertificateSerial in project candlepin by candlepin.
the class CrlResourceTest method testUnrevokeWithNoArguments.
@Test
@SuppressWarnings("unchecked")
public void testUnrevokeWithNoArguments() throws Exception {
String[] input = new String[] {};
CandlepinQuery cqmock = mock(CandlepinQuery.class);
List<CertificateSerial> serials = new LinkedList<>();
when(cqmock.iterator()).thenReturn(serials.iterator());
when(this.certSerialCurator.listBySerialIds(eq(input))).thenReturn(cqmock);
this.resource.unrevoke(input);
verifyNoMoreInteractions(crlFileUtil);
}
Aggregations