com.mtp.model
Class StatusModelTest

java.lang.Object
  |
  +--junit.framework.Assert
        |
        +--junit.framework.TestCase
              |
              +--com.mtp.model.StatusModelTest
All Implemented Interfaces:
Test

public class StatusModelTest
extends TestCase


Field Summary
protected  boolean changed
           
 
Constructor Summary
StatusModelTest(String name)
           
 
Method Summary
 StatusModel buildInstance()
           
static Test suite()
           
 void testChangeFiredOnHandleException()
           
 void testChangeFiredOnSetStatus()
           
 void testDefaultConstructor()
           
 void testHandleException()
           
 void testHandleExceptionWithEmptyMessage()
           
 void testHandleExceptionWithHumanMessage()
           
 void testHandleExceptionWithNullMessage()
           
 void testSetStatus()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, 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
 

Field Detail

changed

protected boolean changed
Constructor Detail

StatusModelTest

public StatusModelTest(String name)
Method Detail

suite

public static Test suite()

buildInstance

public StatusModel buildInstance()

testSetStatus

public void testSetStatus()
                   throws Exception
Exception

testDefaultConstructor

public void testDefaultConstructor()
                            throws Exception
Exception

testHandleExceptionWithNullMessage

public void testHandleExceptionWithNullMessage()
                                        throws Exception
Exception

testHandleExceptionWithEmptyMessage

public void testHandleExceptionWithEmptyMessage()
                                         throws Exception
Exception

testHandleException

public void testHandleException()
                         throws Exception
Exception

testHandleExceptionWithHumanMessage

public void testHandleExceptionWithHumanMessage()
                                         throws Exception
Exception

testChangeFiredOnSetStatus

public void testChangeFiredOnSetStatus()
                                throws Exception
Exception

testChangeFiredOnHandleException

public void testChangeFiredOnHandleException()
                                      throws Exception
Exception


Copyright © 2002 Matthew Pekar. All Rights Reserved.