|
|||||||||
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.bugreports.ViewBugReportsTestCase
Testing searching and viewing existing bug reports. It is especially tested, whether read access to bug reports are blocked, if the user does not belong to the report's group.
Created: Mon Dec 03 19:29:24 2001
Field Summary | |
protected java.lang.Integer |
adminReportID
|
protected java.lang.String |
adminReportTitle
|
protected java.lang.Integer |
normalReportID
|
protected java.lang.String |
normalReportTitle
|
protected java.lang.String |
project
|
Fields inherited from class junit.log4j.LoggedTestCase |
category, isLog4jInClasspath |
Constructor Summary | |
ViewBugReportsTestCase(java.lang.String name)
Creates a new ViewBugReportsTestCase instance. |
Method Summary | |
void |
setUp()
First calls super.setUp() and creates two bug reports, one as
normal user and one as
admin user . |
void |
tearDown()
Removes the created bug reports and finally calls super.tearDown() . |
void |
testClientAccessDenied()
Client Test: Try to access as normal user the
bug report created by the admin user
during setUp() . |
void |
testClientAccessSuccessful()
Client Test: Try to access as normal user the
bug report created by the normal user
during setUp() . |
void |
testJspAccessDenied()
JSP Test: Try to access as normal user the
bug report created by the admin user
during setUp() . |
void |
testJspAccessSuccessful()
JSP Test: Try to access as normal user the
bug report created by the normal user
during setUp() . |
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 |
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 |
Field Detail |
protected java.lang.Integer normalReportID
protected java.lang.Integer adminReportID
protected java.lang.String normalReportTitle
protected java.lang.String adminReportTitle
protected java.lang.String project
Constructor Detail |
public ViewBugReportsTestCase(java.lang.String name)
ViewBugReportsTestCase
instance.name
- test case nameMethod Detail |
public void setUp() throws java.lang.Exception
super.setUp()
and creates two bug reports, one as
normal user
and one as
admin user
.setUp
in class BusinessTestCase
java.lang.Exception
- if an error occurspublic void tearDown() throws java.lang.Exception
super.tearDown()
.tearDown
in class BusinessTestCase
java.lang.Exception
- if an error occurssetUp()
public void testClientAccessSuccessful() throws java.lang.Exception
normal user
the
bug report created by the normal user
during setUp()
. This access should succeed.java.lang.Exception
- if an error occurspublic void testClientAccessDenied() throws java.lang.Exception
normal user
the
bug report created by the admin user
during setUp()
. This access is expected to fail.java.lang.Exception
- if an error occurspublic void testJspAccessSuccessful() throws java.lang.Exception
normal user
the
bug report created by the normal user
during setUp()
. This access should succeed.java.lang.Exception
- if an error occurspublic void testJspAccessDenied() throws java.lang.Exception
normal user
the
bug report created by the admin user
during setUp()
. This access is expected to fail.java.lang.Exception
- if an error occurs
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |