com.atlassian.security.auth.trustedapps
Class TestDefaultRequestMatcher

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

public class TestDefaultRequestMatcher
extends junit.framework.TestCase


Constructor Summary
TestDefaultRequestMatcher()
           
 
Method Summary
 void testAllGood()
           
 void testBadIpAddress()
           
 void testBadIpAddressInXForwardedFor()
           
 void testBadUrl()
           
 void testContextPathRemoval()
           
 void testIpAddressInXForwardedForChecked()
           
 void testMultipleIpAddressesInXForwardedForChecked()
           
 void testNullIpMatcher()
           
 void testNullUrlMatcher()
           
 
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

TestDefaultRequestMatcher

public TestDefaultRequestMatcher()
Method Detail

testAllGood

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

testBadIpAddress

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

testIpAddressInXForwardedForChecked

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

testMultipleIpAddressesInXForwardedForChecked

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

testBadIpAddressInXForwardedFor

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

testBadUrl

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

testContextPathRemoval

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

testNullIpMatcher

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

testNullUrlMatcher

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


Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.