org.acegisecurity.ui
Class AbstractProcessingFilterTests

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.acegisecurity.ui.AbstractProcessingFilterTests
All Implemented Interfaces:
junit.framework.Test

public class AbstractProcessingFilterTests
extends junit.framework.TestCase

Tests AbstractProcessingFilter.

Version:
$Id: AbstractProcessingFilterTests.java 1861 2007-05-25 01:24:07Z benalex $
Author:
Ben Alex

Constructor Summary
AbstractProcessingFilterTests()
           
AbstractProcessingFilterTests(String arg0)
           
 
Method Summary
static void main(String[] args)
           
protected  void setUp()
           
protected  void tearDown()
           
 void testDefaultProcessesFilterUrlWithPathParameter()
           
 void testDefaultUrlMuststartWithSlashOrHttpScheme()
           
 void testDoFilterWithNonHttpServletRequestDetected()
           
 void testDoFilterWithNonHttpServletResponseDetected()
           
 void testFailedAuthenticationRedirectsAppropriately()
           
 void testFilterProcessesUrlVariationsRespected()
           
 void testFullDefaultTargetUrlDoesNotHaveContextPathPrepended()
          SEC-297 fix.
 void testGettersSetters()
           
 void testIgnoresAnyServletPathOtherThanFilterProcessesUrl()
           
 void testNormalOperationWithDefaultFilterProcessesUrl()
           
 void testStartupDetectsInvalidAuthenticationFailureUrl()
           
 void testStartupDetectsInvalidAuthenticationManager()
           
 void testStartupDetectsInvalidDefaultTargetUrl()
           
 void testStartupDetectsInvalidFilterProcessesUrl()
           
 void testSuccessfulAuthenticationButWithAlwaysUseDefaultTargetUrlCausesRedirectToDefaultTargetUrl()
           
 void testSuccessfulAuthenticationCausesRedirectToSessionSpecifiedUrl()
           
 void testSuccessLoginThenFailureLoginResultsInSessionLosingToken()
           
 
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
 

Constructor Detail

AbstractProcessingFilterTests

public AbstractProcessingFilterTests()

AbstractProcessingFilterTests

public AbstractProcessingFilterTests(String arg0)
Method Detail

main

public static void main(String[] args)

setUp

protected void setUp()
              throws Exception
Overrides:
setUp in class junit.framework.TestCase
Throws:
Exception

tearDown

protected void tearDown()
                 throws Exception
Overrides:
tearDown in class junit.framework.TestCase
Throws:
Exception

testDefaultProcessesFilterUrlWithPathParameter

public void testDefaultProcessesFilterUrlWithPathParameter()

testDoFilterWithNonHttpServletRequestDetected

public void testDoFilterWithNonHttpServletRequestDetected()
                                                   throws Exception
Throws:
Exception

testDoFilterWithNonHttpServletResponseDetected

public void testDoFilterWithNonHttpServletResponseDetected()
                                                    throws Exception
Throws:
Exception

testFailedAuthenticationRedirectsAppropriately

public void testFailedAuthenticationRedirectsAppropriately()
                                                    throws Exception
Throws:
Exception

testFilterProcessesUrlVariationsRespected

public void testFilterProcessesUrlVariationsRespected()
                                               throws Exception
Throws:
Exception

testGettersSetters

public void testGettersSetters()

testDefaultUrlMuststartWithSlashOrHttpScheme

public void testDefaultUrlMuststartWithSlashOrHttpScheme()

testIgnoresAnyServletPathOtherThanFilterProcessesUrl

public void testIgnoresAnyServletPathOtherThanFilterProcessesUrl()
                                                          throws Exception
Throws:
Exception

testNormalOperationWithDefaultFilterProcessesUrl

public void testNormalOperationWithDefaultFilterProcessesUrl()
                                                      throws Exception
Throws:
Exception

testStartupDetectsInvalidAuthenticationFailureUrl

public void testStartupDetectsInvalidAuthenticationFailureUrl()
                                                       throws Exception
Throws:
Exception

testStartupDetectsInvalidAuthenticationManager

public void testStartupDetectsInvalidAuthenticationManager()
                                                    throws Exception
Throws:
Exception

testStartupDetectsInvalidDefaultTargetUrl

public void testStartupDetectsInvalidDefaultTargetUrl()
                                               throws Exception
Throws:
Exception

testStartupDetectsInvalidFilterProcessesUrl

public void testStartupDetectsInvalidFilterProcessesUrl()
                                                 throws Exception
Throws:
Exception

testSuccessLoginThenFailureLoginResultsInSessionLosingToken

public void testSuccessLoginThenFailureLoginResultsInSessionLosingToken()
                                                                 throws Exception
Throws:
Exception

testSuccessfulAuthenticationButWithAlwaysUseDefaultTargetUrlCausesRedirectToDefaultTargetUrl

public void testSuccessfulAuthenticationButWithAlwaysUseDefaultTargetUrlCausesRedirectToDefaultTargetUrl()
                                                                                                  throws Exception
Throws:
Exception

testSuccessfulAuthenticationCausesRedirectToSessionSpecifiedUrl

public void testSuccessfulAuthenticationCausesRedirectToSessionSpecifiedUrl()
                                                                     throws Exception
Throws:
Exception

testFullDefaultTargetUrlDoesNotHaveContextPathPrepended

public void testFullDefaultTargetUrlDoesNotHaveContextPathPrepended()
                                                             throws Exception
SEC-297 fix.

Throws:
Exception


Copyright © 2004-2008 Interface21, Inc. All Rights Reserved.