Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.securityfilter.test.http.form
Class PathTricksTest  view PathTricksTest download PathTricksTest.java

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byorg.securityfilter.test.http.TestBase
              extended byorg.securityfilter.test.http.form.PathTricksTest
All Implemented Interfaces:
junit.framework.Test

public class PathTricksTest
extends org.securityfilter.test.http.TestBase

PathTricksTest - tests for proper operation when "path tricks" are employed in URLs

Version:
$Revision: 1.3 $ $Date: 2003/06/10 12:11:26 $

Field Summary
 
Fields inherited from class org.securityfilter.test.http.TestBase
baseUrl, session
 
Fields inherited from class junit.framework.TestCase
 
Constructor Summary
PathTricksTest(java.lang.String name)
          Constructor
 
Method Summary
 void testDoubleDotURLTrick()
          Test that the user is asked to login before accessing /public/../securePage.jsp.
 void testMultipleSlashURLTrick()
          Test that the user is asked to login before accessing //securePage.jsp.
 void testSingleDotURLTrick()
          Test that the user is asked to login before accessing /./securePage.jsp.
 
Methods inherited from class org.securityfilter.test.http.TestBase
assertPageTitle, assertPageTitleAfterLogin, performJustInTimeLogin, setUp
 
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

PathTricksTest

public PathTricksTest(java.lang.String name)
Constructor

Method Detail

testSingleDotURLTrick

public void testSingleDotURLTrick()
                           throws java.lang.Exception
Test that the user is asked to login before accessing /./securePage.jsp.


testDoubleDotURLTrick

public void testDoubleDotURLTrick()
                           throws java.lang.Exception
Test that the user is asked to login before accessing /public/../securePage.jsp.


testMultipleSlashURLTrick

public void testMultipleSlashURLTrick()
                               throws java.lang.Exception
Test that the user is asked to login before accessing //securePage.jsp.