use of org.candlepin.util.X509ExtensionUtil 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);
}
Aggregations