edu.wpi.prc.task.test
Class WorkUnitTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by edu.wpi.prc.task.test.WorkUnitTest
All Implemented Interfaces:
junit.framework.Test

public class WorkUnitTest
extends junit.framework.TestCase

Tests WorkUnit persistence.

Author:
James Baldassari

Field Summary
private  Volunteer v
           
private  WorkUnit wu
           
 
Constructor Summary
WorkUnitTest(java.lang.String name)
           
 
Method Summary
protected  void setUp()
           
 void testDelete()
          Tests deleting a WorkUnit from the database.
 void testExpiration()
          Tests work unit expiration dates.
 void testSave()
          Tests saving a WorkUnit to the database.
 void testUpdate()
          Tests updating a WorkUnit in the database.
 
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
 

Field Detail

wu

private WorkUnit wu

v

private Volunteer v
Constructor Detail

WorkUnitTest

public WorkUnitTest(java.lang.String name)
Method Detail

setUp

protected void setUp()
              throws java.lang.Exception
Overrides:
setUp in class junit.framework.TestCase
Throws:
java.lang.Exception

testSave

public void testSave()
Tests saving a WorkUnit to the database.


testExpiration

public void testExpiration()
Tests work unit expiration dates.


testUpdate

public void testUpdate()
Tests updating a WorkUnit in the database.


testDelete

public void testDelete()
Tests deleting a WorkUnit from the database.