ch.security4web.esapi.testing
Class EsapiValidationTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by ch.security4web.esapi.testing.EsapiValidationTest
All Implemented Interfaces:
junit.framework.Test

public class EsapiValidationTest
extends junit.framework.TestCase

The Class ValidatorTest.

Author:
Mike Fauzy (mike.fauzy@aspectsecurity.com), Jeff Williams (jeff.williams@aspectsecurity.com)

Constructor Summary
EsapiValidationTest(java.lang.String testName)
          Instantiates a new HTTP utilities test.
 
Method Summary
static junit.framework.Test suite()
           
 void testAddRule()
           
 void testAssertValidFileUpload()
           
 void testGetCookies()
           
 void testGetHeader()
           
 void testGetHeaderNames()
           
 void testGetParameter()
           
 void testGetParameterMap()
           
 void testGetParameterNames()
           
 void testGetPrintable1()
           
 void testGetPrintable2()
           
 void testGetQueryString()
           
 void testGetRequestURI()
           
 void testGetRule()
           
 void testGetValidCreditCard()
           
 void testGetValidDate()
           
 void testGetValidDirectoryPath()
           
 void testGetValidDouble()
           
 void testGetValidFileContent()
           
 void testGetValidFileName()
           
 void testGetValidInput()
           
 void testGetValidInteger()
           
 void testGetValidListItem()
           
 void testGetValidNumber()
           
 void testGetValidRedirectLocation()
           
 void testGetValidSafeHTML()
           
 void testIsInvalidFilename()
           
 void testIssue82_SafeString_Bad_Regex()
           
 void testIsValidDate()
           
 void testIsValidDirectoryPath()
           
 void TestIsValidDirectoryPath()
           
 void testIsValidDouble()
           
 void testIsValidFileContent()
           
 void testIsValidFileName()
           
 void testIsValidFileUpload()
           
 void testIsValidHTTPRequestParameterSet()
           
 void testisValidInput()
           
 void testIsValidInteger()
           
 void testIsValidListItem()
           
 void testIsValidNumber()
           
 void testIsValidParameterSet()
           
 void testIsValidPrintable()
           
 void testIsValidRedirectLocation()
           
 void testIsValidSafeHTML()
           
 void testLenientDate()
           
 void testSafeReadLine()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, getName, run, run, runBare, 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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EsapiValidationTest

public EsapiValidationTest(java.lang.String testName)
Instantiates a new HTTP utilities test.

Parameters:
testName - the test name
Method Detail

suite

public static junit.framework.Test suite()

testAddRule

public void testAddRule()

testAssertValidFileUpload

public void testAssertValidFileUpload()

testGetPrintable1

public void testGetPrintable1()

testGetPrintable2

public void testGetPrintable2()

testGetRule

public void testGetRule()

testGetValidCreditCard

public void testGetValidCreditCard()

testGetValidDate

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

testLenientDate

public void testLenientDate()

testGetValidDirectoryPath

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

testGetValidDouble

public void testGetValidDouble()

testGetValidFileContent

public void testGetValidFileContent()

testGetValidFileName

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

testGetValidInput

public void testGetValidInput()

testGetValidInteger

public void testGetValidInteger()

testGetValidListItem

public void testGetValidListItem()

testGetValidNumber

public void testGetValidNumber()

testGetValidRedirectLocation

public void testGetValidRedirectLocation()

testGetValidSafeHTML

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

testIsInvalidFilename

public void testIsInvalidFilename()

testIsValidDate

public void testIsValidDate()

testIsValidDirectoryPath

public void testIsValidDirectoryPath()
                              throws java.io.IOException
Throws:
java.io.IOException

TestIsValidDirectoryPath

public void TestIsValidDirectoryPath()

testIsValidDouble

public void testIsValidDouble()

testIsValidFileContent

public void testIsValidFileContent()

testIsValidFileName

public void testIsValidFileName()

testIsValidFileUpload

public void testIsValidFileUpload()
                           throws java.io.IOException
Throws:
java.io.IOException

testIsValidHTTPRequestParameterSet

public void testIsValidHTTPRequestParameterSet()

testisValidInput

public void testisValidInput()

testIsValidInteger

public void testIsValidInteger()

testIsValidListItem

public void testIsValidListItem()

testIsValidNumber

public void testIsValidNumber()

testIsValidParameterSet

public void testIsValidParameterSet()

testIsValidPrintable

public void testIsValidPrintable()

testIsValidRedirectLocation

public void testIsValidRedirectLocation()

testIsValidSafeHTML

public void testIsValidSafeHTML()

testSafeReadLine

public void testSafeReadLine()

testIssue82_SafeString_Bad_Regex

public void testIssue82_SafeString_Bad_Regex()

testGetParameterMap

public void testGetParameterMap()

testGetParameterNames

public void testGetParameterNames()

testGetParameter

public void testGetParameter()

testGetCookies

public void testGetCookies()

testGetHeader

public void testGetHeader()

testGetHeaderNames

public void testGetHeaderNames()

testGetQueryString

public void testGetQueryString()

testGetRequestURI

public void testGetRequestURI()