gov.nih.nci.caarray.services.biomaterial.test
Class UpdateTreatmentTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by gov.nih.nci.caarray.services.biomaterial.test.UpdateTreatmentTest
All Implemented Interfaces:
junit.framework.Test

public class UpdateTreatmentTest
extends junit.framework.TestCase

Author:
zhoujim This is Junit test code for the EJB function of updating the treatment. 1) getTreatment 2) update records for treatment 3) compare the reults

Constructor Summary
UpdateTreatmentTest()
           
 
Method Summary
protected  void setUp()
           
protected  void tearDown()
           
 void testCompareResult()
           
 void testGetTreatment()
           
 void testUpdateTreatment()
          Test updating a treatment
 
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
 

Constructor Detail

UpdateTreatmentTest

public UpdateTreatmentTest()
Method Detail

setUp

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

tearDown

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

testGetTreatment

public void testGetTreatment()
                      throws AccessDeniedException,
                             ObjectNotExistException
Throws:
AccessDeniedException
ObjectNotExistException

testUpdateTreatment

public void testUpdateTreatment()
                         throws AccessDeniedException,
                                ObjectNotExistException
Test updating a treatment

Throws:
AccessDeniedException
ObjectNotExistException

testCompareResult

public void testCompareResult()