use of org.opencastproject.distribution.api.DistributionService in project opencast by opencast.
the class DuplicateEventWorkflowOperationHandlerTest method setUp.
@Before
public void setUp() throws Exception {
operationHandler = new DuplicateEventWorkflowOperationHandler();
MediaPackageBuilder builder = MediaPackageBuilderFactory.newInstance().newMediaPackageBuilder();
// test resources
URI uriMP = getClass().getResource("/duplicate-event_mediapackage.xml").toURI();
mp = builder.loadFromXml(uriMP.toURL().openStream());
workspace = createNiceMock(Workspace.class);
assetManager = createNiceMock(AssetManager.class);
distributionService = createNiceMock(DistributionService.class);
serviceRegistry = createNiceMock(ServiceRegistry.class);
operationHandler.setWorkspace(workspace);
operationHandler.setAssetManager(assetManager);
operationHandler.setDistributionService(distributionService);
operationHandler.setServiceRegistry(serviceRegistry);
}
Aggregations