Search in sources :

Example 1 with DistributionService

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);
}
Also used : AssetManager(org.opencastproject.assetmanager.api.AssetManager) MediaPackageBuilder(org.opencastproject.mediapackage.MediaPackageBuilder) ServiceRegistry(org.opencastproject.serviceregistry.api.ServiceRegistry) URI(java.net.URI) DistributionService(org.opencastproject.distribution.api.DistributionService) Workspace(org.opencastproject.workspace.api.Workspace) Before(org.junit.Before)

Aggregations

URI (java.net.URI)1 Before (org.junit.Before)1 AssetManager (org.opencastproject.assetmanager.api.AssetManager)1 DistributionService (org.opencastproject.distribution.api.DistributionService)1 MediaPackageBuilder (org.opencastproject.mediapackage.MediaPackageBuilder)1 ServiceRegistry (org.opencastproject.serviceregistry.api.ServiceRegistry)1 Workspace (org.opencastproject.workspace.api.Workspace)1