openfuture.bugbase.test.access
Class JspLoginTestCase

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
All Implemented Interfaces:
junit.framework.Test

public class JspLoginTestCase
extends JspBaseTestCase

Try simple login and logoff to and from bug base.

Created: Mon Oct 29 21:36:31 2001

Version:
$Revision: 1.1 $
Author:
Wolfgang Reissenberger

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

JspLoginTestCase

public JspLoginTestCase(java.lang.String name)
Creates a new JspLoginTestCase instance by calling the constructor of the superclass.
Parameters:
name - test case name
Method Detail

beginLogin

public void beginLogin(org.apache.cactus.WebRequest request)
                throws java.lang.Exception
Login into Bug Base using HTTPUnit
Parameters:
request - web request to continue
Throws:
java.lang.Exception - if an error occurs

testLogin

public void testLogin()
               throws java.lang.Exception
Check, if this is the correct user.
Throws:
java.lang.Exception - if an error occurs

endLogin

public void endLogin(java.net.HttpURLConnection theConnection)
              throws java.lang.Exception
Clean up on the client.
Parameters:
request - web request to continue
Throws:
java.lang.Exception - if an error occurs
See Also:
JspBaseTestCase.clientTearDown()

beginLogoff

public void beginLogoff(org.apache.cactus.WebRequest request)
                 throws java.lang.Exception
Logoff from Bug Base using HTTPUnit. First we login and then we immediately log off again.
Parameters:
request - web request to continue
Throws:
java.lang.Exception - if an error occurs

testLogoff

public void testLogoff()
                throws java.lang.Exception
Check, if the user attribute is cleared.
Throws:
java.lang.Exception - if an error occurs

endLogoff

public void endLogoff(java.net.HttpURLConnection theConnection)
               throws java.lang.Exception
Clean up on the client.
Parameters:
request - web request to continue
Throws:
java.lang.Exception - if an error occurs
See Also:
JspBaseTestCase.clientTearDown()


Copyright © 2000 -- 2003 openfuture.de. All Rights Reserved.