com.mtp.pounder.controller
Class PounderControllerTest

java.lang.Object
  |
  +--junit.framework.Assert
        |
        +--junit.framework.TestCase
              |
              +--com.mtp.pounder.controller.PounderControllerTest
All Implemented Interfaces:
Test

public class PounderControllerTest
extends TestCase


Nested Class Summary
protected static class PounderControllerTest.PlayForeverPounderModel
           
protected static class PounderControllerTest.RecordForeverPounderModel
           
 
Field Summary
protected  WindowWatcher windowWatcher
           
 
Constructor Summary
PounderControllerTest(String name)
           
 
Method Summary
protected  PounderController buildController(PounderModel pm)
           
protected  void checkStatusWhenTestInstanceFactoryNotPresentAndNotDoingAnything(PounderController pc)
          Assert action states when no TestInstanceFactory is present and no playing or recording is occuring.
protected  void checkStatusWhenTestInstanceFactoryPresentAndNotDoingAnything(PounderController pc)
          Assert action states when a TestInstanceFactory is present and no playing or recording is occuring.
protected  void checkStatusWhilePaused(PounderController pc)
           
protected  void checkStatusWhilePlayingOrRecording(PounderController pc)
          Assert that we can only stop or quit while playing or recording is ocurring.
 void setUp()
           
static Test suite()
           
 void tearDown()
           
 void testStatusAfterConstructor()
          Make sure default values are correct.
 void testStatusWhilePlayingAfterFireChange()
           
 void testStatusWhilePlayingBeforeFireChange()
           
 void testStatusWhilePlayingPaused()
           
 void testStatusWhileRecordingAfterFireChange()
           
 void testStatusWhileRecordingBeforeFireChange()
           
 void testStatusWhileRecordingPaused()
           
 void testStatusWhileTestInstanceFactoryNotPresentAfterFireChange()
           
 void testStatusWhileTestInstanceFactoryPresentAfterFireChange()
           
 void testStatusWhileTestInstanceFactoryPresentBeforeFireChange()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, 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
 

Field Detail

windowWatcher

protected WindowWatcher windowWatcher
Constructor Detail

PounderControllerTest

public PounderControllerTest(String name)
Method Detail

suite

public static Test suite()

setUp

public void setUp()
           throws Exception
Overrides:
setUp in class TestCase
Exception

tearDown

public void tearDown()
              throws Exception
Overrides:
tearDown in class TestCase
Exception

checkStatusWhenTestInstanceFactoryNotPresentAndNotDoingAnything

protected void checkStatusWhenTestInstanceFactoryNotPresentAndNotDoingAnything(PounderController pc)
                                                                        throws Exception
Assert action states when no TestInstanceFactory is present and no playing or recording is occuring.

Exception

checkStatusWhenTestInstanceFactoryPresentAndNotDoingAnything

protected void checkStatusWhenTestInstanceFactoryPresentAndNotDoingAnything(PounderController pc)
                                                                     throws Exception
Assert action states when a TestInstanceFactory is present and no playing or recording is occuring.

Exception

checkStatusWhilePlayingOrRecording

protected void checkStatusWhilePlayingOrRecording(PounderController pc)
                                           throws Exception
Assert that we can only stop or quit while playing or recording is ocurring.

Exception

checkStatusWhilePaused

protected void checkStatusWhilePaused(PounderController pc)
                               throws Exception
Exception

buildController

protected PounderController buildController(PounderModel pm)

testStatusWhileRecordingPaused

public void testStatusWhileRecordingPaused()
                                    throws Exception
Exception

testStatusWhilePlayingPaused

public void testStatusWhilePlayingPaused()
                                  throws Exception
Exception

testStatusWhileRecordingBeforeFireChange

public void testStatusWhileRecordingBeforeFireChange()
                                              throws Exception
Exception

testStatusWhileRecordingAfterFireChange

public void testStatusWhileRecordingAfterFireChange()
                                             throws Exception
Exception

testStatusWhilePlayingBeforeFireChange

public void testStatusWhilePlayingBeforeFireChange()
                                            throws Exception
Exception

testStatusWhilePlayingAfterFireChange

public void testStatusWhilePlayingAfterFireChange()
                                           throws Exception
Exception

testStatusAfterConstructor

public void testStatusAfterConstructor()
                                throws Exception
Make sure default values are correct.

Exception

testStatusWhileTestInstanceFactoryPresentBeforeFireChange

public void testStatusWhileTestInstanceFactoryPresentBeforeFireChange()
                                                               throws Exception
Exception

testStatusWhileTestInstanceFactoryNotPresentAfterFireChange

public void testStatusWhileTestInstanceFactoryNotPresentAfterFireChange()
                                                                 throws Exception
Exception

testStatusWhileTestInstanceFactoryPresentAfterFireChange

public void testStatusWhileTestInstanceFactoryPresentAfterFireChange()
                                                              throws Exception
Exception


Copyright © 2002 Matthew Pekar. All Rights Reserved.