Package org.candlepin.util

Examples of org.candlepin.util.CrlFileUtil


    @Test
    @SuppressWarnings("unchecked")
    public void unrevoke() throws Exception {
        CrlGenerator crlgen = mock(CrlGenerator.class);
        CrlFileUtil fileutil = mock(CrlFileUtil.class);
        CertificateSerialCurator sercur = mock(CertificateSerialCurator.class);
        Configuration config = new ConfigForTesting();
        X509CRL crl = mock(X509CRL.class);
        when(fileutil.readCRLFile(any(File.class))).thenReturn(crl);
        when(crlgen.removeEntries(eq(crl), any(List.class))).thenReturn(crl);

        CrlResource res = new CrlResource(crlgen, fileutil, config, sercur);
        String[] ids = {"10"};
        res.unrevoke(ids);
View Full Code Here

TOP

Related Classes of org.candlepin.util.CrlFileUtil

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.