Search in sources :

Example 1 with EventAdapterImpl

use of org.candlepin.audit.EventAdapterImpl in project candlepin by candlepin.

the class AtomFeedResourceTest method setUp.

@Before
public void setUp() {
    Configuration config = mock(Configuration.class);
    injector = Guice.createInjector(new TestingModules.MockJpaModule(), new TestingModules.StandardTest(config), new TestingModules.ServletEnvironmentModule());
    i18n = injector.getInstance(I18n.class);
    ec = mock(EventCurator.class);
    ea = new EventAdapterImpl(new ConfigForTesting(), i18n);
    afr = new AtomFeedResource(ec, ea);
}
Also used : MapConfiguration(org.candlepin.common.config.MapConfiguration) Configuration(org.candlepin.common.config.Configuration) EventAdapterImpl(org.candlepin.audit.EventAdapterImpl) EventCurator(org.candlepin.model.EventCurator) I18n(org.xnap.commons.i18n.I18n) Before(org.junit.Before)

Aggregations

EventAdapterImpl (org.candlepin.audit.EventAdapterImpl)1 Configuration (org.candlepin.common.config.Configuration)1 MapConfiguration (org.candlepin.common.config.MapConfiguration)1 EventCurator (org.candlepin.model.EventCurator)1 Before (org.junit.Before)1 I18n (org.xnap.commons.i18n.I18n)1