/*
* MPlayerPlayerTest.java
*
* Version 1.0 Nov 21, 2008
*
* Copyright notice
*
* Brief description
*
* (c) 2008 by dbreuer
*/
package de.fhkoeln.santiago.components.ffmpeg;
import static org.mockito.Mockito.*;
import static org.junit.Assert.assertTrue;
import java.io.File;
import org.junit.Test;
import de.fhkoeln.cosima.media.MediaComponent;
import de.fhkoeln.cosima.media.Media;
import de.fhkoeln.santiago.components.ffmpeg.MPlayerPlayer;
import de.fhkoeln.santiago.components.jmf.MediaAction;
/**
* Documentation comment without implementation details.
* Use implementation comments to describe details of the implementation.
* Comment lines should not be longer than 70 characters.
*
* @author dbreuer
* @version 1.0 Nov 21, 2008
*
*/
public class MPlayerPlayerTest {
@Test
public void testShouldPlayVideoViaMPlayer() {
MediaComponent video = spy(new Media());
video.setName("2nd_movie.mov");
doReturn(new File("/Users/dbreuer/Documents/Work/_FH/_Master/master_thesis/code/santiago-project/res/2nd_movie.mov")).when(video).getPlayableData();
MediaAction player = new MPlayerPlayer(video);
player.performAction();
assertTrue(true);
}
}