|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.apache.velocity.test.BaseTestCase
org.apache.velocity.test.SecureIntrospectionTestCase
public class SecureIntrospectionTestCase
Checks that the secure introspector is working properly.
Field Summary |
---|
Fields inherited from interface org.apache.velocity.test.TemplateTestBase |
---|
CMP_FILE_EXT, COMPARE_DIR, FILE_RESOURCE_LOADER_PATH, RESULT_DIR, RESULT_FILE_EXT, TEST_CASE_PROPERTIES, TEST_COMPARE_DIR, TEST_RESULT_DIR, TMPL_FILE_EXT |
Constructor Summary | |
---|---|
SecureIntrospectionTestCase(String name)
Default constructor. |
Method Summary | |
---|---|
int |
aTestMethod()
|
Collection |
getCollection()
|
String |
getProperty()
|
void |
setProperty(String val)
|
static junit.framework.Test |
suite()
|
void |
testBadMethodCalls()
Test to see that "dangerous" methods are forbidden |
void |
testGoodMethodCalls()
Test to see that "dangerous" methods are forbidden |
Methods inherited from class org.apache.velocity.test.BaseTestCase |
---|
assureResultsDirectoryExists, getFileContents, getFileName, getFileName, getTestCaseName, isMatch, isMatch, normalizeNewlines |
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 |
---|
public SecureIntrospectionTestCase(String name)
name
- Method Detail |
---|
public static junit.framework.Test suite()
public void testBadMethodCalls() throws Exception
Exception
public void testGoodMethodCalls() throws Exception
Exception
public String getProperty()
public int aTestMethod()
public void setProperty(String val)
public Collection getCollection()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |