|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--junit.framework.Assert | +--junit.framework.TestCase | +--junit.log4j.LoggedTestCase | +--openfuture.bugbase.test.common.BusinessTestCase | +--openfuture.bugbase.test.access.NewUserTestCase
Test case adding a new user to Bug Base.
Created: Sun Oct 28 20:10:57 2001
Fields inherited from class junit.log4j.LoggedTestCase |
category, isLog4jInClasspath |
Constructor Summary | |
NewUserTestCase(java.lang.String name)
Creates a new NewUserTestCase instance. |
Method Summary | |
void |
addNewUser()
Create a unique user with initial user ID "testid", add it to the list of test users
and try to save it to Bug Base. |
java.util.LinkedList |
getTestuserIDs()
Return the list of test users' IDs |
java.util.LinkedList |
getTestusers()
Get the value of testusers. |
void |
setTestusers(java.util.LinkedList v)
Set the value of testusers. |
void |
tearDown()
Remove the user added in testAddNewUserAsNormal() ,
testAddNewUserAsDoctor() and testAddNewUserAsDoctor() . |
void |
testAddNewUserAsAdmin()
Try to add a new user: Login as admin user. Try to add a new user. If this causes a I18NException , everything is OK. |
void |
testAddNewUserAsDoctor()
Try to add a new user: Login as doctor user. Try to add a new user. If this causes a I18NException , everything is OK. |
void |
testAddNewUserAsNormal()
Try to add a new user: Login as normal user. Try to add a new user. If this causes a I18NException , everything is OK. |
Methods inherited from class openfuture.bugbase.test.common.BusinessTestCase |
callPage, createAdminUser, createCompleteBugReport, createCompleteBugReport, createDoctorUser, createNormalUser, createNormalUser, createUniqueUserId, fillReportForm, findForm, findLink, findLinkByText, getAdminUser, getClient, getDoctorUser, getNormalUser, getResourceBundle, getUniqueFilename, hasReasonKey, isUniqueUserId, login, login, loginPage, loginPage, logoff, logoffPage, searchUser, setAdminUser, setClient, setDefault, setDoctorUser, setNormalUser, setResourceBundle, setUp |
Methods inherited from class junit.log4j.LoggedTestCase |
debug, debug, error, error, fatal, fatal, getProperties, info, info, setProperties, warn, warn |
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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public NewUserTestCase(java.lang.String name)
NewUserTestCase
instance.name
- test case nameMethod Detail |
public void testAddNewUserAsNormal() throws java.lang.Exception
I18NException
, everything is OK. Otherwise
an Exception is thrown, since only admin users may add
users.java.lang.Exception
- if an error occurspublic void testAddNewUserAsDoctor() throws java.lang.Exception
I18NException
, everything is OK. Otherwise
an Exception is thrown, since only admin users may add
users.java.lang.Exception
- if an error occurspublic void testAddNewUserAsAdmin() throws java.lang.Exception
I18NException
, everything is OK. Otherwise
an Exception is thrown, since only admin users may add
users.java.lang.Exception
- if an error occurspublic void addNewUser() throws java.lang.Exception
list of test users
and try to save it to Bug Base.java.lang.Exception
- if an error occurspublic void tearDown() throws java.lang.Exception
testAddNewUserAsNormal()
,
testAddNewUserAsDoctor()
and testAddNewUserAsDoctor()
.tearDown
in class BusinessTestCase
java.lang.Exception
- if an error occurspublic java.util.LinkedList getTestusers()
public void setTestusers(java.util.LinkedList v)
v
- Value to assign to testusers.public java.util.LinkedList getTestuserIDs()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |