|
|||||||||
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 | +--org.apache.cactus.AbstractTestCase | +--org.apache.cactus.AbstractWebTestCase | +--org.apache.cactus.ServletTestCase | +--org.apache.cactus.JspTestCase | +--openfuture.bugbase.test.common.JspBaseTestCase | +--openfuture.bugbase.test.access.JspLoginTestCase
Try simple login and logoff to and from bug base.
Created: Mon Oct 29 21:36:31 2001
Fields inherited from class org.apache.cactus.JspTestCase |
out, pageContext |
Fields inherited from class org.apache.cactus.ServletTestCase |
config, request, response, session |
Fields inherited from class org.apache.cactus.AbstractTestCase |
BEGIN_METHOD_PREFIX, END_METHOD_PREFIX, LOG_CLIENT_CONFIG, TEST_METHOD_PREFIX |
Constructor Summary | |
JspLoginTestCase(java.lang.String name)
Creates a new JspLoginTestCase instance
by calling the constructor of the superclass. |
Method Summary | |
void |
beginLogin(org.apache.cactus.WebRequest request)
Login into Bug Base using HTTPUnit |
void |
beginLogoff(org.apache.cactus.WebRequest request)
Logoff from Bug Base using HTTPUnit. |
void |
endLogin(java.net.HttpURLConnection theConnection)
Clean up on the client. |
void |
endLogoff(java.net.HttpURLConnection theConnection)
Clean up on the client. |
void |
testLogin()
Check, if this
is the correct user . |
void |
testLogoff()
Check, if the user attribute
is cleared. |
Methods inherited from class openfuture.bugbase.test.common.JspBaseTestCase |
clientSetUp, clientTearDown, copyCookies, findForm, getClient, getLog, getProperties, login, loginPage, logoff, logoffPage, setClient, setDefault, setProperties, setUrl |
Methods inherited from class org.apache.cactus.JspTestCase |
runTest |
Methods inherited from class org.apache.cactus.AbstractWebTestCase |
callEndMethod, runGenericTest |
Methods inherited from class org.apache.cactus.AbstractTestCase |
callBeginMethod, getBeginMethodName, getCurrentTestMethod, getEndMethodName, getLogger, runBare, runBareServerTest, runServerTest |
Methods inherited from class junit.framework.TestCase |
countTestCases, createResult, getName, run, run, setName, setUp, tearDown, 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 JspLoginTestCase(java.lang.String name)
JspLoginTestCase
instance
by calling the constructor of the superclass.name
- test case nameMethod Detail |
public void beginLogin(org.apache.cactus.WebRequest request) throws java.lang.Exception
request
- web request to continuejava.lang.Exception
- if an error occurspublic void testLogin() throws java.lang.Exception
this
is the correct user
.java.lang.Exception
- if an error occurspublic void endLogin(java.net.HttpURLConnection theConnection) throws java.lang.Exception
request
- web request to continuejava.lang.Exception
- if an error occursJspBaseTestCase.clientTearDown()
public void beginLogoff(org.apache.cactus.WebRequest request) throws java.lang.Exception
request
- web request to continuejava.lang.Exception
- if an error occurspublic void testLogoff() throws java.lang.Exception
user attribute
is cleared.java.lang.Exception
- if an error occurspublic void endLogoff(java.net.HttpURLConnection theConnection) throws java.lang.Exception
request
- web request to continuejava.lang.Exception
- if an error occursJspBaseTestCase.clientTearDown()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |