macaw.test.retrieval
Class TestRetrieveUsers

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by macaw.test.retrieval.MacawRetrievalTestCase
              extended by macaw.test.retrieval.TestRetrieveUsers
All Implemented Interfaces:
junit.framework.Test

public class TestRetrieveUsers
extends MacawRetrievalTestCase


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.retrieval.MacawRetrievalTestCase
admin, curationService, jsmith, log, retrievalService
 
Constructor Summary
TestRetrieveUsers()
           
 
Method Summary
 void testGetUserFromEmailA1()
          get user based on non-existent email
 void testGetUserFromEmailE1()
          get user based an invalid email
 void testGetUserFromEmailN1()
          get user based on email
 void testGetUserFromIDA1()
          retrieves an unknown user
 void testGetUserFromIDN1()
          retrieves a known user
 void testGetUsersA1()
          get users when none are registered
 void testGetUsersN1()
           
 void testUnverifiedUsersA1()
          retrieve a list of unverified users from a collection of users that doesn't have any.
 void testUnverifiedUsersN1()
          retrieve a list of unverified users
 
Methods inherited from class macaw.test.retrieval.MacawRetrievalTestCase
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

TestRetrieveUsers

public TestRetrieveUsers()
Method Detail

testGetUserFromIDN1

public void testGetUserFromIDN1()
retrieves a known user


testGetUserFromIDA1

public void testGetUserFromIDA1()
retrieves an unknown user


testUnverifiedUsersN1

public void testUnverifiedUsersN1()
retrieve a list of unverified users


testUnverifiedUsersA1

public void testUnverifiedUsersA1()
retrieve a list of unverified users from a collection of users that doesn't have any.


testGetUsersN1

public void testGetUsersN1()

testGetUsersA1

public void testGetUsersA1()
get users when none are registered


testGetUserFromEmailN1

public void testGetUserFromEmailN1()
get user based on email


testGetUserFromEmailA1

public void testGetUserFromEmailA1()
get user based on non-existent email


testGetUserFromEmailE1

public void testGetUserFromEmailE1()
get user based an invalid email