org.acegisecurity.context
Class HttpSessionContextIntegrationFilterTests

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

public class HttpSessionContextIntegrationFilterTests
extends junit.framework.TestCase

Tests HttpSessionContextIntegrationFilter.

Version:
$Id: HttpSessionContextIntegrationFilterTests.java 1858 2007-05-24 02:04:47Z benalex $
Author:
Ben Alex

Constructor Summary
HttpSessionContextIntegrationFilterTests()
           
HttpSessionContextIntegrationFilterTests(String arg0)
           
 
Method Summary
 void testConcurrentThreadsLazilyChangeFilterAppliedValueToTrue()
           
 void testDetectsIncompatibleSessionProperties()
           
 void testDetectsMissingOrInvalidContext()
           
 void testExceptionWithinFilterChainStillClearsSecurityContextHolder()
           
 void testExistingContextContentsCopiedIntoContextHolderFromSessionAndChangesToContextCopiedBackToSession()
           
 void testHttpSessionCreatedWhenContextHolderChanges()
           
 void testHttpSessionEagerlyCreatedWhenDirected()
           
 void testHttpSessionNotCreatedUnlessContextHolderChanges()
           
 void testHttpSessionWithNonContextInWellKnownLocationIsOverwritten()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, 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

HttpSessionContextIntegrationFilterTests

public HttpSessionContextIntegrationFilterTests()

HttpSessionContextIntegrationFilterTests

public HttpSessionContextIntegrationFilterTests(String arg0)
Method Detail

testDetectsIncompatibleSessionProperties

public void testDetectsIncompatibleSessionProperties()
                                              throws Exception
Throws:
Exception

testDetectsMissingOrInvalidContext

public void testDetectsMissingOrInvalidContext()
                                        throws Exception
Throws:
Exception

testExceptionWithinFilterChainStillClearsSecurityContextHolder

public void testExceptionWithinFilterChainStillClearsSecurityContextHolder()
                                                                    throws Exception
Throws:
Exception

testExistingContextContentsCopiedIntoContextHolderFromSessionAndChangesToContextCopiedBackToSession

public void testExistingContextContentsCopiedIntoContextHolderFromSessionAndChangesToContextCopiedBackToSession()
                                                                                                         throws Exception
Throws:
Exception

testHttpSessionCreatedWhenContextHolderChanges

public void testHttpSessionCreatedWhenContextHolderChanges()
                                                    throws Exception
Throws:
Exception

testHttpSessionEagerlyCreatedWhenDirected

public void testHttpSessionEagerlyCreatedWhenDirected()
                                               throws Exception
Throws:
Exception

testHttpSessionNotCreatedUnlessContextHolderChanges

public void testHttpSessionNotCreatedUnlessContextHolderChanges()
                                                         throws Exception
Throws:
Exception

testHttpSessionWithNonContextInWellKnownLocationIsOverwritten

public void testHttpSessionWithNonContextInWellKnownLocationIsOverwritten()
                                                                   throws Exception
Throws:
Exception

testConcurrentThreadsLazilyChangeFilterAppliedValueToTrue

public void testConcurrentThreadsLazilyChangeFilterAppliedValueToTrue()
                                                               throws Exception
Throws:
Exception


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