com.atlassian.security.auth.trustedapps.filter
Class TestTrustedAppAuthenticatorImpl

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended bycom.atlassian.security.auth.trustedapps.filter.TestTrustedAppAuthenticatorImpl
All Implemented Interfaces:
junit.framework.Test

public class TestTrustedAppAuthenticatorImpl
extends junit.framework.TestCase


Constructor Summary
TestTrustedAppAuthenticatorImpl()
           
 
Method Summary
protected  void setUp()
           
 void testBadCertificate()
           
 void testBadProtocolVersion()
           
 void testBadRequestIp()
           
 void testBadRequestUrl()
           
 void testBadXForwardIp()
           
 void testBlankAppId()
           
 void testKnownAppProtocolVersion0()
           
 void testKnownAppProtocolVersion1()
           
 void testMissingMagicNumber()
           
 void testMissingSecretKey()
           
 void testPrincipalLoginDenied()
           
 void testPrincipalNotFound()
           
 void testUnknownApp()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, 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

TestTrustedAppAuthenticatorImpl

public TestTrustedAppAuthenticatorImpl()
Method Detail

setUp

protected void setUp()
              throws java.lang.Exception
Throws:
java.lang.Exception

testKnownAppProtocolVersion0

public void testKnownAppProtocolVersion0()
                                  throws java.lang.Exception
Throws:
java.lang.Exception

testKnownAppProtocolVersion1

public void testKnownAppProtocolVersion1()
                                  throws java.lang.Exception
Throws:
java.lang.Exception

testUnknownApp

public void testUnknownApp()
                    throws java.lang.Exception
Throws:
java.lang.Exception

testBlankAppId

public void testBlankAppId()
                    throws java.lang.Exception
Throws:
java.lang.Exception

testBadProtocolVersion

public void testBadProtocolVersion()
                            throws java.lang.Exception
Throws:
java.lang.Exception

testMissingSecretKey

public void testMissingSecretKey()
                          throws java.lang.Exception
Throws:
java.lang.Exception

testMissingMagicNumber

public void testMissingMagicNumber()
                            throws java.lang.Exception
Throws:
java.lang.Exception

testBadCertificate

public void testBadCertificate()
                        throws java.lang.Exception
Throws:
java.lang.Exception

testPrincipalNotFound

public void testPrincipalNotFound()
                           throws java.lang.Exception
Throws:
java.lang.Exception

testPrincipalLoginDenied

public void testPrincipalLoginDenied()
                              throws java.lang.Exception
Throws:
java.lang.Exception

testBadRequestIp

public void testBadRequestIp()
                      throws java.lang.Exception
Throws:
java.lang.Exception

testBadXForwardIp

public void testBadXForwardIp()
                       throws java.lang.Exception
Throws:
java.lang.Exception

testBadRequestUrl

public void testBadRequestUrl()
                       throws java.lang.Exception
Throws:
java.lang.Exception


Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.