macaw.test.curation
Class TestCurateOntologyTerms

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

public class TestCurateOntologyTerms
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
TestCurateOntologyTerms()
           
 
Method Summary
 void testAddOntologyTermA1()
          add two ontology terms that have the same term but come from different ontology names
 void testAddOntologyTermE1()
          add two ontology terms that have the same term and the same ontology names
 void testAddOntologyTermN1()
          add ontology term to list
 void testDeleteOntologyTermA1()
          delete item from a one-item list
 void testDeleteOntologyTermE1()
          delete non-existent ontology term from list
 void testDeleteOntologyTermN1()
          delete ontology terms from list
 void testUpdateOntologyTermE1()
          make sure update doesn't result in a duplicate by changing the name space
 void testUpdateOntologyTermE2()
          make sure update doesn't result in a duplicate by changing the ontology name
 void testUpdateOntologyTermE3()
          reject update of non-existent term
 void testUpdateOntologyTermN1()
          update ontology term to list
 void testValidationN1()
          validation fails if term is left blank
 void testValidationN2()
          validation fails if ontology name is left blank
 void testValidationN3()
          validation fails if ontology name space is left blank
 void testValidationN4()
          validation fails if multiple errors happen
 
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

TestCurateOntologyTerms

public TestCurateOntologyTerms()
Method Detail

testValidationN1

public void testValidationN1()
validation fails if term is left blank


testValidationN2

public void testValidationN2()
validation fails if ontology name is left blank


testValidationN3

public void testValidationN3()
validation fails if ontology name space is left blank


testValidationN4

public void testValidationN4()
validation fails if multiple errors happen


testAddOntologyTermN1

public void testAddOntologyTermN1()
add ontology term to list


testAddOntologyTermA1

public void testAddOntologyTermA1()
add two ontology terms that have the same term but come from different ontology names


testAddOntologyTermE1

public void testAddOntologyTermE1()
add two ontology terms that have the same term and the same ontology names


testUpdateOntologyTermN1

public void testUpdateOntologyTermN1()
update ontology term to list


testUpdateOntologyTermE1

public void testUpdateOntologyTermE1()
make sure update doesn't result in a duplicate by changing the name space


testUpdateOntologyTermE2

public void testUpdateOntologyTermE2()
make sure update doesn't result in a duplicate by changing the ontology name


testUpdateOntologyTermE3

public void testUpdateOntologyTermE3()
reject update of non-existent term


testDeleteOntologyTermN1

public void testDeleteOntologyTermN1()
delete ontology terms from list


testDeleteOntologyTermA1

public void testDeleteOntologyTermA1()
delete item from a one-item list


testDeleteOntologyTermE1

public void testDeleteOntologyTermE1()
delete non-existent ontology term from list