macaw.test.curation
Class TestCurateRawVariables

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

public class TestCurateRawVariables
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
TestCurateRawVariables()
           
 
Method Summary
protected  void setUp()
           
 void testAddRawVariableA1()
           
 void testAddRawVariableE1()
           
 void testAddRawVariableN1()
           
 void testDeleteRawVariableA1()
          delete item from a one item list
 void testDeleteRawVariableE1()
          detect delete applied to a non-existent variable
 void testDeleteRawVariableN1()
           
 void testRawVariableValidationN1()
          check that name is not blank
 void testRawVariableValidationN14()
          check that validation detects multiple field errors
 void testRawVariableValidationN4()
          check that if is cleaned is true, cleaning status is not blank
 void testRawVariableValidationN5()
          test that availability is not blank
 void testSetAlternativeVariable()
           
 void testUpdateRawVariableE2()
          detect update with an illegal cleaning state
 void testUpdateRawVariableE3()
          detect update with an illegal availability state
 void testUpdateRawVariableE5()
          detect update with a non-existent variable
 void testUpdateRawVariableN1()
           
 
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

TestCurateRawVariables

public TestCurateRawVariables()
Method Detail

setUp

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

testRawVariableValidationN1

public void testRawVariableValidationN1()
check that name is not blank


testRawVariableValidationN4

public void testRawVariableValidationN4()
check that if is cleaned is true, cleaning status is not blank


testRawVariableValidationN5

public void testRawVariableValidationN5()
test that availability is not blank


testRawVariableValidationN14

public void testRawVariableValidationN14()
check that validation detects multiple field errors


testAddRawVariableN1

public void testAddRawVariableN1()

testAddRawVariableA1

public void testAddRawVariableA1()

testAddRawVariableE1

public void testAddRawVariableE1()

testUpdateRawVariableN1

public void testUpdateRawVariableN1()

testUpdateRawVariableE2

public void testUpdateRawVariableE2()
detect update with an illegal cleaning state


testUpdateRawVariableE3

public void testUpdateRawVariableE3()
detect update with an illegal availability state


testUpdateRawVariableE5

public void testUpdateRawVariableE5()
detect update with a non-existent variable


testDeleteRawVariableN1

public void testDeleteRawVariableN1()

testDeleteRawVariableA1

public void testDeleteRawVariableA1()
delete item from a one item list


testDeleteRawVariableE1

public void testDeleteRawVariableE1()
detect delete applied to a non-existent variable


testSetAlternativeVariable

public void testSetAlternativeVariable()