@Test public void shouldSkipNotObjectIssuerCertificateObjects() { X509ResourceCertificate certificate = createManifestEECertificate(); X509Crl crl = getCrl(); subject.addToWorkQueueIfObjectIssuer(taContext, URI.create("rsync://host/cert"), certificate); assertTrue(workQueue.isEmpty()); subject.addToWorkQueueIfObjectIssuer(taContext, URI.create("rsync://host/crl"), crl); assertTrue(workQueue.isEmpty()); }
@Test public void shouldAddObjectIssuerCertificatesToWorkQueue() { subject.addToWorkQueueIfObjectIssuer(taContext, taContext.getLocation(), ta); assertTrue(workQueue.size() == 1); CertificateRepositoryObjectValidationContext context = workQueue.remove(); assertEquals(ta, context.getCertificate()); }