Search in sources :

Example 1 with ProductCertificateCurator

use of org.candlepin.model.ProductCertificateCurator in project candlepin by candlepin.

the class DefaultProductServiceAdapterTest method init.

@Before
public void init() {
    opc = mock(OwnerProductCurator.class);
    idgen = mock(UniqueIdGenerator.class);
    Configuration config = mock(Configuration.class);
    pki = mock(PKIUtility.class);
    extUtil = new X509ExtensionUtil(config);
    cc = mock(ContentCurator.class);
    pcc = spy(new ProductCertificateCurator(pki, extUtil));
    when(config.getBoolean(ConfigProperties.ENV_CONTENT_FILTERING)).thenReturn(false);
    dpsa = new DefaultProductServiceAdapter(opc, pcc, cc, idgen);
}
Also used : X509ExtensionUtil(org.candlepin.util.X509ExtensionUtil) UniqueIdGenerator(org.candlepin.service.UniqueIdGenerator) Configuration(org.candlepin.common.config.Configuration) ContentCurator(org.candlepin.model.ContentCurator) ProductCertificateCurator(org.candlepin.model.ProductCertificateCurator) PKIUtility(org.candlepin.pki.PKIUtility) OwnerProductCurator(org.candlepin.model.OwnerProductCurator) Before(org.junit.Before)

Aggregations

Configuration (org.candlepin.common.config.Configuration)1 ContentCurator (org.candlepin.model.ContentCurator)1 OwnerProductCurator (org.candlepin.model.OwnerProductCurator)1 ProductCertificateCurator (org.candlepin.model.ProductCertificateCurator)1 PKIUtility (org.candlepin.pki.PKIUtility)1 UniqueIdGenerator (org.candlepin.service.UniqueIdGenerator)1 X509ExtensionUtil (org.candlepin.util.X509ExtensionUtil)1 Before (org.junit.Before)1