macaw.test.curation
Class TestCurateValueLabels

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

public class TestCurateValueLabels
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
TestCurateValueLabels()
           
 
Method Summary
protected  void setUp()
           
 void testAddValueLabelN1()
          reject value label that has a blank value
 void testDeleteValueLabelE1()
          delete a non-existent value label from a list
 void testDeleteValueLabelN1()
          delete value labels from a list
 void testUpdateValueLabelE1()
          Update non-existent variable
 void testUpdateValueLabelN1()
          Update the value, label and isMissingValue fields of a VariableLabel
 
Methods inherited from class macaw.test.curation.MacawCurationTestCase
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

TestCurateValueLabels

public TestCurateValueLabels()
Method Detail

setUp

protected void setUp()
              throws java.lang.Exception
Overrides:
setUp in class MacawCurationTestCase
Throws:
java.lang.Exception

testAddValueLabelN1

public void testAddValueLabelN1()
reject value label that has a blank value


testUpdateValueLabelN1

public void testUpdateValueLabelN1()
Update the value, label and isMissingValue fields of a VariableLabel


testUpdateValueLabelE1

public void testUpdateValueLabelE1()
Update non-existent variable


testDeleteValueLabelN1

public void testDeleteValueLabelN1()
delete value labels from a list


testDeleteValueLabelE1

public void testDeleteValueLabelE1()
delete a non-existent value label from a list