use of org.candlepin.service.ExportExtensionAdapter in project candlepin by candlepin.
the class ExporterTest method setUp.
@Before
public void setUp() {
ctc = mock(ConsumerTypeCurator.class);
mockEnvironmentCurator = mock(EnvironmentCurator.class);
oc = mock(OwnerCurator.class);
me = new MetaExporter();
translator = new StandardTranslator(ctc, mockEnvironmentCurator, oc);
ce = new ConsumerExporter(translator);
cte = new ConsumerTypeExporter(translator);
rc = mock(RulesCurator.class);
re = new RulesExporter(rc);
ece = new EntitlementCertExporter();
ecsa = mock(EntitlementCertServiceAdapter.class);
pe = new ProductExporter(translator);
psa = mock(ProductServiceAdapter.class);
pce = new ProductCertExporter();
ec = mock(EntitlementCurator.class);
ee = new EntitlementExporter(translator);
pki = mock(PKIUtility.class);
config = new CandlepinCommonTestConfig();
exportRules = mock(ExportRules.class);
pprov = mock(PrincipalProvider.class);
dvc = mock(DistributorVersionCurator.class);
dve = new DistributorVersionExporter();
cdnc = mock(CdnCurator.class);
cdne = new CdnExporter();
pc = mock(ProductCurator.class);
ProductCachedSerializationModule productCachedModule = new ProductCachedSerializationModule(pc);
su = new SyncUtils(config, productCachedModule);
exportExtensionAdapter = mock(ExportExtensionAdapter.class);
when(exportRules.canExport(any(Entitlement.class))).thenReturn(Boolean.TRUE);
}
Aggregations