Search in sources :

Example 1 with AudioParser

use of org.apache.tika.parser.audio.AudioParser in project opencast by opencast.

the class MediaInspectionServiceImplTest method init.

/**
 * Setup test.
 */
@Ignore
private Option<MediaInspector> init(URI resource) throws Exception {
    for (String binary : ffprobePath) {
        final File f = new File(resource);
        Workspace workspace = EasyMock.createNiceMock(Workspace.class);
        EasyMock.expect(workspace.get(resource)).andReturn(f);
        EasyMock.expect(workspace.get(resource)).andReturn(f);
        EasyMock.expect(workspace.get(resource)).andReturn(f);
        EasyMock.replay(workspace);
        return some(new MediaInspector(workspace, new AudioParser(), binary));
    }
    return none();
}
Also used : AudioParser(org.apache.tika.parser.audio.AudioParser) File(java.io.File) Workspace(org.opencastproject.workspace.api.Workspace) Ignore(org.junit.Ignore)

Aggregations

File (java.io.File)1 AudioParser (org.apache.tika.parser.audio.AudioParser)1 Ignore (org.junit.Ignore)1 Workspace (org.opencastproject.workspace.api.Workspace)1