macaw.test.curation
Class TestCurateSupportingDocuments

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by macaw.test.curation.MacawCurationTestCase
              extended by macaw.test.curation.TestCurateSupportingDocuments
All Implemented Interfaces:
junit.framework.Test

public class TestCurateSupportingDocuments
extends MacawCurationTestCase


Copyright 2010 Medical Research Council Unit for Lifelong Health and Ageing Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Version:
1.0
Author:
Kevin Garwood (kgarwood@users.sourceforge.net)

Field Summary
 
Fields inherited from class macaw.test.curation.MacawCurationTestCase
admin, curationService, jsmith, log
 
Constructor Summary
TestCurateSupportingDocuments()
           
 
Method Summary
 void testAddDocumentA1()
           
 void testAddDocumentE1()
           
 void testAddDocumentN1()
           
 void testDeleteDocumentA1()
          delete all items in a one item list
 void testDeleteDocumentE1()
           
 void testDeleteDocumentN1()
          delete multiple items from a list
 void testFieldValidationN1()
           
 void testFieldValidationN2()
           
 void testFieldValidationN3()
           
 void testFieldValidationN4()
           
 void testUpdateDocumentA1()
          detect when update changes result in a duplicate record
 void testUpdateDocumentE1()
          update a non-existent supporting document
 void testUpdateDocumentN1()
           
 
Methods inherited from class macaw.test.curation.MacawCurationTestCase
setUp, tearDown
 
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, failNotEquals, failNotSame, failSame
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TestCurateSupportingDocuments

public TestCurateSupportingDocuments()
Method Detail

testFieldValidationN1

public void testFieldValidationN1()

testFieldValidationN2

public void testFieldValidationN2()

testFieldValidationN3

public void testFieldValidationN3()

testFieldValidationN4

public void testFieldValidationN4()

testAddDocumentN1

public void testAddDocumentN1()

testAddDocumentA1

public void testAddDocumentA1()

testAddDocumentE1

public void testAddDocumentE1()

testUpdateDocumentN1

public void testUpdateDocumentN1()

testUpdateDocumentA1

public void testUpdateDocumentA1()
detect when update changes result in a duplicate record


testUpdateDocumentE1

public void testUpdateDocumentE1()
update a non-existent supporting document


testDeleteDocumentN1

public void testDeleteDocumentN1()
delete multiple items from a list


testDeleteDocumentA1

public void testDeleteDocumentA1()
delete all items in a one item list


testDeleteDocumentE1

public void testDeleteDocumentE1()