Search in sources :

Example 6 with AssetManager

use of org.opencastproject.assetmanager.api.AssetManager 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

AssetManager (org.opencastproject.assetmanager.api.AssetManager)6 URI (java.net.URI)4 Workspace (org.opencastproject.workspace.api.Workspace)4 Before (org.junit.Before)3 ServiceRegistry (org.opencastproject.serviceregistry.api.ServiceRegistry)3 InputStream (java.io.InputStream)2 HashMap (java.util.HashMap)2 Hashtable (java.util.Hashtable)2 MediaPackageBuilder (org.opencastproject.mediapackage.MediaPackageBuilder)2 JaxbOrganization (org.opencastproject.security.api.JaxbOrganization)2 OrganizationDirectoryService (org.opencastproject.security.api.OrganizationDirectoryService)2 BundleContext (org.osgi.framework.BundleContext)2 ComponentContext (org.osgi.service.component.ComponentContext)2 File (java.io.File)1 Properties (java.util.Properties)1 CloseableHttpClient (org.apache.http.impl.client.CloseableHttpClient)1 JSONObject (org.json.simple.JSONObject)1 Test (org.junit.Test)1 Snapshot (org.opencastproject.assetmanager.api.Snapshot)1 AQueryBuilder (org.opencastproject.assetmanager.api.query.AQueryBuilder)1