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

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

public class TestTrustedApplicationsFilterAuthenticate
extends junit.framework.TestCase

This test is really an integration test as it tests the production behaviour of the authenticate method


Constructor Summary
TestTrustedApplicationsFilterAuthenticate()
           
 
Method Summary
protected  void setUp()
           
 void testBadCertificate()
           
 void testBadPublicKey()
           
 void testBadRequestIp()
           
 void testBadRequestUrl()
           
 void testBadSecretKey()
           
 void testBadXForwardIp()
           
 void testKnownAppProtocolVersion0()
           
 void testKnownAppProtocolVersion1()
           
 void testNoTrustedAppAttempt()
           
 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

TestTrustedApplicationsFilterAuthenticate

public TestTrustedApplicationsFilterAuthenticate()
Method Detail

setUp

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

testNoTrustedAppAttempt

public void testNoTrustedAppAttempt()
                             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

testBadSecretKey

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

testBadCertificate

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

testBadPublicKey

public void testBadPublicKey()
                      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.