org.apache.myfaces.custom.security
Class SecurityContextVariableResolverTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.apache.shale.test.base.AbstractJsfTestCase
              extended by org.apache.myfaces.custom.security.SecurityContextVariableResolverTest
All Implemented Interfaces:
junit.framework.Test

public class SecurityContextVariableResolverTest
extends org.apache.shale.test.base.AbstractJsfTestCase

Version:
$Revision: 1099917 $ $Date: 2011-05-05 13:57:45 -0500 (Thu, 05 May 2011) $
Author:
cagatay (latest modification by $Author: lu4242 $)

Field Summary
protected  org.apache.myfaces.custom.security.SecurityContextVariableResolver resolver
           
 
Fields inherited from class org.apache.shale.test.base.AbstractJsfTestCase
application, config, externalContext, facesContext, facesContextFactory, lifecycle, lifecycleFactory, renderKit, request, response, servletContext, session
 
Constructor Summary
SecurityContextVariableResolverTest(java.lang.String testName)
           
 
Method Summary
 void setUp()
           
static junit.framework.Test suite()
           
 void tearDown()
           
 void testExceptionMustBeThrownWhenAnInvalidImplIsConfigured()
           
 void testSecurityContextImplIsCustomWhenCustomImplIsConfigured()
           
 void testSecurityContextImplIsDefaultImplWhenNoCustomImplIsConfigured()
           
 
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, failNotEquals, failNotSame, failSame, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

resolver

protected org.apache.myfaces.custom.security.SecurityContextVariableResolver resolver
Constructor Detail

SecurityContextVariableResolverTest

public SecurityContextVariableResolverTest(java.lang.String testName)
Method Detail

setUp

public void setUp()
           throws java.lang.Exception
Overrides:
setUp in class org.apache.shale.test.base.AbstractJsfTestCase
Throws:
java.lang.Exception

tearDown

public void tearDown()
              throws java.lang.Exception
Overrides:
tearDown in class org.apache.shale.test.base.AbstractJsfTestCase
Throws:
java.lang.Exception

suite

public static junit.framework.Test suite()

testSecurityContextImplIsDefaultImplWhenNoCustomImplIsConfigured

public void testSecurityContextImplIsDefaultImplWhenNoCustomImplIsConfigured()

testSecurityContextImplIsCustomWhenCustomImplIsConfigured

public void testSecurityContextImplIsCustomWhenCustomImplIsConfigured()

testExceptionMustBeThrownWhenAnInvalidImplIsConfigured

public void testExceptionMustBeThrownWhenAnInvalidImplIsConfigured()


Copyright © 2011 The Apache Software Foundation. All Rights Reserved.