org.acegisecurity.ui.basicauth
Class BasicProcessingFilterTests

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.jmock.core.VerifyingTestCase
              extended by org.jmock.core.MockObjectSupportTestCase
                  extended by org.jmock.MockObjectTestCase
                      extended by org.acegisecurity.ui.basicauth.BasicProcessingFilterTests
All Implemented Interfaces:
junit.framework.Test

public class BasicProcessingFilterTests
extends org.jmock.MockObjectTestCase

Tests BasicProcessingFilter.

Version:
$Id: BasicProcessingFilterTests.java 1496 2006-05-23 13:38:33Z benalex $
Author:
Ben Alex

Field Summary
 
Fields inherited from class org.jmock.core.MockObjectSupportTestCase
ANYTHING, NOT_NULL, NULL
 
Constructor Summary
BasicProcessingFilterTests()
           
BasicProcessingFilterTests(String arg0)
           
 
Method Summary
static void main(String[] args)
           
protected  void setUp()
           
protected  void tearDown()
           
 void testDoFilterWithNonHttpServletRequestDetected()
           
 void testDoFilterWithNonHttpServletResponseDetected()
           
 void testFilterIgnoresRequestsContainingNoAuthorizationHeader()
           
 void testGettersSetters()
           
 void testInvalidBasicAuthorizationTokenIsIgnored()
           
 void testNormalOperation()
           
 void testOtherAuthorizationSchemeIsIgnored()
           
 void testStartupDetectsMissingAuthenticationEntryPoint()
           
 void testStartupDetectsMissingAuthenticationManager()
           
 void testSuccessLoginThenFailureLoginResultsInSessionLoosingToken()
           
 void testWrongPasswordContinuesFilterChainIfIgnoreFailureIsTrue()
           
 void testWrongPasswordReturnsForbiddenIfIgnoreFailureIsFalse()
           
 
Methods inherited from class org.jmock.MockObjectTestCase
atLeastOnce, defaultMockNameForType, mock, mock, never, newCoreMock, once, onConsecutiveCalls, onConsecutiveCalls, onConsecutiveCalls, returnValue, returnValue, returnValue, returnValue, returnValue, returnValue, returnValue, returnValue, returnValue, throwException
 
Methods inherited from class org.jmock.core.MockObjectSupportTestCase
and, eq, eq, eq, eq, eq, eq, eq, eq, eq, eq, isA, newDummy, newDummy, newDummy, not, or, same, stringContains
 
Methods inherited from class org.jmock.core.VerifyingTestCase
registerToVerify, runBare, unregisterToVerify, verify
 
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

BasicProcessingFilterTests

public BasicProcessingFilterTests()

BasicProcessingFilterTests

public BasicProcessingFilterTests(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

testDoFilterWithNonHttpServletRequestDetected

public void testDoFilterWithNonHttpServletRequestDetected()
                                                   throws Exception
Throws:
Exception

testDoFilterWithNonHttpServletResponseDetected

public void testDoFilterWithNonHttpServletResponseDetected()
                                                    throws Exception
Throws:
Exception

testFilterIgnoresRequestsContainingNoAuthorizationHeader

public void testFilterIgnoresRequestsContainingNoAuthorizationHeader()
                                                              throws Exception
Throws:
Exception

testGettersSetters

public void testGettersSetters()

testInvalidBasicAuthorizationTokenIsIgnored

public void testInvalidBasicAuthorizationTokenIsIgnored()
                                                 throws Exception
Throws:
Exception

testNormalOperation

public void testNormalOperation()
                         throws Exception
Throws:
Exception

testOtherAuthorizationSchemeIsIgnored

public void testOtherAuthorizationSchemeIsIgnored()
                                           throws Exception
Throws:
Exception

testStartupDetectsMissingAuthenticationEntryPoint

public void testStartupDetectsMissingAuthenticationEntryPoint()
                                                       throws Exception
Throws:
Exception

testStartupDetectsMissingAuthenticationManager

public void testStartupDetectsMissingAuthenticationManager()
                                                    throws Exception
Throws:
Exception

testSuccessLoginThenFailureLoginResultsInSessionLoosingToken

public void testSuccessLoginThenFailureLoginResultsInSessionLoosingToken()
                                                                  throws Exception
Throws:
Exception

testWrongPasswordContinuesFilterChainIfIgnoreFailureIsTrue

public void testWrongPasswordContinuesFilterChainIfIgnoreFailureIsTrue()
                                                                throws Exception
Throws:
Exception

testWrongPasswordReturnsForbiddenIfIgnoreFailureIsFalse

public void testWrongPasswordReturnsForbiddenIfIgnoreFailureIsFalse()
                                                             throws Exception
Throws:
Exception


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