macaw.test.curation
Class TestCurateUsers

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

public class TestCurateUsers
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
TestCurateUsers()
           
 
Method Summary
 void testAddUserA1()
          add two users who have the same first and last names but who have different userIDs
 void testAddUserE1()
          ERROR the addition of two users who have the same user ID
 void testAddUserN1()
           
 void testDeleteUserA1()
          delete record from a one item list
 void testDeleteUserE1()
          delete non-existent user
 void testDeleteUserN1()
           
 void testFieldValidationN1()
          ensure userID field is tested
 void testFieldValidationN10()
          ensure that the email of the address has a value
 void testFieldValidationN11()
          ensure that the email of the address has a value
 void testFieldValidationN12()
          ensure that the password has a value
 void testFieldValidationN2()
          ensure that the first name has a value
 void testFieldValidationN3()
          ensure that the last name has a value
 void testFieldValidationN4()
          ensure that the affliation has a value
 void testFieldValidationN5()
          ensure that the first line of the address has a value
 void testFieldValidationN6()
          ensure that the city of the address has a value
 void testFieldValidationN7()
          ensure that the city of the address has a value
 void testFieldValidationN8()
          ensure that the post code of the address has a value
 void testFieldValidationN9()
          ensure that the phone of the address has a value
 void testUpdateUserN1()
           
 
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

TestCurateUsers

public TestCurateUsers()
Method Detail

testFieldValidationN1

public void testFieldValidationN1()
ensure userID field is tested


testFieldValidationN2

public void testFieldValidationN2()
ensure that the first name has a value


testFieldValidationN3

public void testFieldValidationN3()
ensure that the last name has a value


testFieldValidationN4

public void testFieldValidationN4()
ensure that the affliation has a value


testFieldValidationN5

public void testFieldValidationN5()
ensure that the first line of the address has a value


testFieldValidationN6

public void testFieldValidationN6()
ensure that the city of the address has a value


testFieldValidationN7

public void testFieldValidationN7()
ensure that the city of the address has a value


testFieldValidationN8

public void testFieldValidationN8()
ensure that the post code of the address has a value


testFieldValidationN9

public void testFieldValidationN9()
ensure that the phone of the address has a value


testFieldValidationN10

public void testFieldValidationN10()
ensure that the email of the address has a value


testFieldValidationN11

public void testFieldValidationN11()
ensure that the email of the address has a value


testFieldValidationN12

public void testFieldValidationN12()
ensure that the password has a value


testAddUserN1

public void testAddUserN1()

testAddUserA1

public void testAddUserA1()
add two users who have the same first and last names but who have different userIDs


testAddUserE1

public void testAddUserE1()
ERROR the addition of two users who have the same user ID


testUpdateUserN1

public void testUpdateUserN1()

testDeleteUserN1

public void testDeleteUserN1()

testDeleteUserA1

public void testDeleteUserA1()
delete record from a one item list


testDeleteUserE1

public void testDeleteUserE1()
delete non-existent user