org.melati.login.test
Class AccessHandlerTestAbstract

Package class diagram package AccessHandlerTestAbstract
java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.melati.poem.test.PoemTestCase
              extended by org.melati.login.test.AccessHandlerTestAbstract
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
CommandLineAccessHandlerTest, HttpBasicAuthenticationAccessHandlerTest, HttpSessionAccessHandlerTest, OpenAccessHandlerTest

public abstract class AccessHandlerTestAbstract
extends PoemTestCase

Author:
timp

Field Summary
protected static org.melati.template.AttributeMarkupLanguage aml
           
protected  org.melati.login.AccessHandler it
           
protected static org.melati.Melati m
           
protected static org.melati.MelatiConfig mc
           
protected static org.melati.template.MarkupLanguage ml
           
protected static org.melati.template.TemplateEngine templateEngine
           
 
Fields inherited from class org.melati.poem.test.PoemTestCase
maxTrans, result
 
Constructor Summary
AccessHandlerTestAbstract(String name)
          Constructor for AccessHandlerTestAbstract.
 
Method Summary
protected  void melatiConfig()
           
abstract  void setAccessHandler()
          Set the particular AccessHandler to test.
protected  void setUp()
           
protected  void tearDown()
           
 void testBuildRequest()
          Test method for buildRequest(Melati).
 void testEstablishUser()
          Test method for AccessHandler.establishUser(Melati).
 void testHandleAccessException()
          Test method for handleAccessException(Melati, AccessPoemException).
 
Methods inherited from class org.melati.poem.test.PoemTestCase
assertEquals, assertEquals, assertEquals, checkColumns, checkDbUnchanged, checkTables, checkTablesAndColumns, databaseUnchanged, dropTable, dumpTable, getDatabase, getDatabaseName, getDb, getDb, getName, getOrDie, getProperties, getPropertiesFileName, getUserToRunAs, run, runTest, setDatabaseName, setName, setPropertiesFileName, setUserToRunAs, testNothing
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, run, runBare, 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, 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
 
Methods inherited from interface junit.framework.Test
countTestCases
 

Field Detail

it

protected org.melati.login.AccessHandler it

mc

protected static org.melati.MelatiConfig mc

templateEngine

protected static org.melati.template.TemplateEngine templateEngine

ml

protected static org.melati.template.MarkupLanguage ml

aml

protected static org.melati.template.AttributeMarkupLanguage aml

m

protected static org.melati.Melati m
Constructor Detail

AccessHandlerTestAbstract

public AccessHandlerTestAbstract(String name)
Constructor for AccessHandlerTestAbstract.

Parameters:
name -
Method Detail

setUp

protected void setUp()
              throws Exception
Overrides:
setUp in class PoemTestCase
Throws:
Exception
See Also:
TestCase.setUp()

tearDown

protected void tearDown()
                 throws Exception
Overrides:
tearDown in class PoemTestCase
Throws:
Exception
See Also:
TestCase.tearDown()

setAccessHandler

public abstract void setAccessHandler()
Set the particular AccessHandler to test.


melatiConfig

protected void melatiConfig()

testHandleAccessException

public void testHandleAccessException()
                               throws Exception
Test method for handleAccessException(Melati, AccessPoemException).

Throws:
Exception
See Also:
AccessHandler.handleAccessException(Melati, AccessPoemException)

testBuildRequest

public void testBuildRequest()
                      throws Exception
Test method for buildRequest(Melati).

Throws:
Exception
See Also:
AccessHandler.buildRequest(Melati)

testEstablishUser

public void testEstablishUser()
Test method for AccessHandler.establishUser(Melati).



Copyright © 2000-2010 PanEris. All Rights Reserved.