ch.security4web.esapi.testing
Class EsapiValidationTest
java.lang.Object
junit.framework.Assert
junit.framework.TestCase
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. |
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 |
EsapiValidationTest
public EsapiValidationTest(java.lang.String testName)
- Instantiates a new HTTP utilities test.
- Parameters:
testName
- the test name
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()