edu.umd.cfar.lamp.mpeg1.test
Class VideoFileTest

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byedu.umd.cfar.lamp.mpeg1.test.VideoFileTest
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
VideoPerformanceTest

public class VideoFileTest
extends junit.framework.TestCase

Tests the ability to load and seek through a file. Subclass this, replacing the runMyTest(Mpeg1VideoStream) method with another one.


Constructor Summary
VideoFileTest(java.lang.String testName)
           
 
Method Summary
static int getNumFrames(Mpeg1VideoStream stream)
           
static long getVideoLengthInMillis(Mpeg1VideoStream stream)
           
protected  void runMyTest(Mpeg1VideoStream stream)
           
static void seekThroughStream(Mpeg1VideoStream stream)
           
protected  void setUp()
           
 void testDuckAndCover()
           
 void testLampVideo()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, tearDown, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

VideoFileTest

public VideoFileTest(java.lang.String testName)
Method Detail

getNumFrames

public static int getNumFrames(Mpeg1VideoStream stream)

getVideoLengthInMillis

public static long getVideoLengthInMillis(Mpeg1VideoStream stream)

seekThroughStream

public static void seekThroughStream(Mpeg1VideoStream stream)
                              throws java.io.IOException,
                                     MpegException
Throws:
java.io.IOException
MpegException

runMyTest

protected void runMyTest(Mpeg1VideoStream stream)
                  throws MpegException,
                         java.io.IOException
Throws:
MpegException
java.io.IOException

testLampVideo

public void testLampVideo()
                   throws MpegException,
                          java.io.IOException
Throws:
MpegException
java.io.IOException

testDuckAndCover

public void testDuckAndCover()
                      throws MpegException,
                             java.io.IOException
Throws:
MpegException
java.io.IOException

setUp

protected void setUp()
              throws java.lang.Exception
Throws:
java.lang.Exception