use of org.candlepin.dto.SimpleModelTranslator in project candlepin by candlepin.
the class ContentResourceTest method init.
@Before
public void init() {
i18n = I18nFactory.getI18n(getClass(), Locale.US, I18nFactory.FALLBACK);
cc = mock(ContentCurator.class);
envContentCurator = mock(EnvironmentContentCurator.class);
poolManager = mock(PoolManager.class);
oc = mock(OwnerCurator.class);
productCurator = mock(ProductCurator.class);
this.modelTranslator = new SimpleModelTranslator();
this.modelTranslator.registerTranslator(new ContentTranslator(), Content.class, ContentDTO.class);
cr = new ContentResource(cc, i18n, new DefaultUniqueIdGenerator(), envContentCurator, poolManager, productCurator, oc, this.modelTranslator);
}
Aggregations