forked from ESAPI/esapi-java-legacy
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathESAPITest.java
More file actions
83 lines (75 loc) · 2.07 KB
/
ESAPITest.java
File metadata and controls
83 lines (75 loc) · 2.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
/**
* OWASP Enterprise Security API (ESAPI)
*
* This file is part of the Open Web Application Security Project (OWASP)
* Enterprise Security API (ESAPI) project. For details, please see
* <a href="http://www.owasp.org/index.php/ESAPI">http://www.owasp.org/index.php/ESAPI</a>.
*
* Copyright (c) 2007 - The OWASP Foundation
*
* The ESAPI is published by OWASP under the BSD license. You should read and accept the
* LICENSE before you use, modify, and/or redistribute this software.
*
* @author Jeff Williams <a href="http://www.aspectsecurity.com">Aspect Security</a>
* @created 2007
*/
package org.owasp.esapi;
import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;
/**
* The Class ExecutorTest.
*
* @author Jeff Williams (jeff.williams@aspectsecurity.com)
*/
public class ESAPITest extends TestCase {
/**
* Instantiates a new executor test.
*
* @param testName
* the test name
*/
public ESAPITest(String testName) {
super(testName);
}
/**
* {@inheritDoc}
*/
protected void setUp() throws Exception {
// none
}
/**
* {@inheritDoc}
*/
protected void tearDown() throws Exception {
// none
}
/**
* Suite.
*
* @return the test
*/
public static Test suite() {
TestSuite suite = new TestSuite(ESAPITest.class);
return suite;
}
/**
* Test of all the ESAPI setter methods
*
* @throws Exception
* the exception
*/
public void testSetters() throws Exception {
System.out.println("testSetters");
ESAPI.setAccessController(ESAPI.accessController());
ESAPI.setAuthenticator(ESAPI.authenticator());
ESAPI.setEncoder(ESAPI.encoder());
ESAPI.setEncryptor(ESAPI.encryptor());
ESAPI.setExecutor(ESAPI.executor());
ESAPI.setHttpUtilities(ESAPI.httpUtilities());
ESAPI.setIntrusionDetector(ESAPI.intrusionDetector());
ESAPI.setRandomizer(ESAPI.randomizer());
ESAPI.setSecurityConfiguration(ESAPI.securityConfiguration());
ESAPI.setValidator(ESAPI.validator());
}
}