org.appfuse.webapp.action
Class LoginServletTest

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byorg.apache.cactus.ServletTestCase
              extended byorg.appfuse.webapp.action.LoginServletTest
All Implemented Interfaces:
Test

public class LoginServletTest
extends ServletTestCase


Field Summary
 
Fields inherited from class org.apache.cactus.ServletTestCase
config, request, response, session
 
Constructor Summary
LoginServletTest(String name)
           
 
Method Summary
 void beginExecute(WebRequest wRequest)
           
 void beginFormAuthentication(WebRequest theRequest)
           
 LoginServlet createInstance()
           
 void endExecute(WebResponse response)
           
static void main(String[] args)
           
protected  void setUp()
           
protected  void tearDown()
           
 void testExecute()
           
 void testFormAuthentication()
          Test logging in as user a user
 void testInit()
          Test that initialization parameters were set
 
Methods inherited from class org.apache.cactus.ServletTestCase
runBare, runCactusTest
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, 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

LoginServletTest

public LoginServletTest(String name)
Method Detail

createInstance

public LoginServlet createInstance()
                            throws Exception
Throws:
Exception

setUp

protected void setUp()
              throws Exception
Throws:
Exception

tearDown

protected void tearDown()
                 throws Exception
Throws:
Exception

testInit

public void testInit()
              throws Exception
Test that initialization parameters were set

Throws:
Exception

beginFormAuthentication

public void beginFormAuthentication(WebRequest theRequest)

testFormAuthentication

public void testFormAuthentication()
Test logging in as user a user


beginExecute

public void beginExecute(WebRequest wRequest)

testExecute

public void testExecute()
                 throws Exception
Throws:
Exception

endExecute

public void endExecute(WebResponse response)

main

public static void main(String[] args)


Copyright © 2002-2004