com.goldenhammer.modality
Class ModalityTest

java.lang.Object
  extended byTestCase
      extended bycom.goldenhammer.modality.ModalityTest

public class ModalityTest
extends TestCase

JUnit testing class for the Modality class

See Also:
Serialized Form

Constructor Summary
ModalityTest()
           
 
Method Summary
protected  void setUp()
          Sets up the fixture
 void testDoEcho()
          Test if an echo can be sent to the server
 void testGetStats()
          Tests getting the stats out of the modality.
 void testModalityStatus()
          Tests the status variable of the modality for the various normal statuses during a test simulation
 void testModalityStatusStopped()
          Tests the modality's status variable during the instance that it is stopped
 void testModalityString()
           
 void testNewModality()
          This tests that the modality is created and contains the correct attribute values.
 void testSave()
          Tests saving the modality to an XML file.
 void testStoreImage()
          Tests if an image can be sent to the server
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModalityTest

public ModalityTest()
Method Detail

setUp

protected void setUp()
Sets up the fixture


testNewModality

public void testNewModality()
This tests that the modality is created and contains the correct attribute values.


testDoEcho

public void testDoEcho()
Test if an echo can be sent to the server


testStoreImage

public void testStoreImage()
Tests if an image can be sent to the server


testSave

public void testSave()
Tests saving the modality to an XML file.


testModalityString

public void testModalityString()

testModalityStatus

public void testModalityStatus()
Tests the status variable of the modality for the various normal statuses during a test simulation


testModalityStatusStopped

public void testModalityStatusStopped()
Tests the modality's status variable during the instance that it is stopped


testGetStats

public void testGetStats()
Tests getting the stats out of the modality.