|
||||||||||
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.IntrospectorTestCase
public class IntrospectorTestCase
Test case for the Velocity Introspector which uses the Java Reflection API to determine the correct signature of the methods used in VTL templates. This should be split into separate tests for each of the methods searched for but this is a start for now.
Nested Class Summary | |
---|---|
static class |
IntrospectorTestCase.MethodProvider
|
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 | |
---|---|
IntrospectorTestCase(String name)
Creates a new instance. |
Method Summary | |
---|---|
void |
setUp()
|
static junit.framework.Test |
suite()
Get the containing TestSuite . |
void |
testIntrospectorBoolean()
|
void |
testIntrospectorByte()
|
void |
testIntrospectorChar()
|
void |
testIntrospectorDouble()
|
void |
testIntrospectorFloat()
|
void |
testIntrospectorInteger()
|
void |
testIntrospectorPrimitiveLong()
|
void |
testIntrospectorPrimitiveShort()
|
void |
testIntrospectorReallyUntouchable()
|
void |
testIntrospectorUntouchable()
|
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, 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 IntrospectorTestCase(String name)
Method Detail |
---|
public void setUp()
setUp
in class junit.framework.TestCase
public static junit.framework.Test suite()
TestSuite
. This is always
VelocityTestSuite
.
TestSuite
to run.public void testIntrospectorBoolean() throws Exception
Exception
public void testIntrospectorByte() throws Exception
Exception
public void testIntrospectorChar() throws Exception
Exception
public void testIntrospectorDouble() throws Exception
Exception
public void testIntrospectorFloat() throws Exception
Exception
public void testIntrospectorInteger() throws Exception
Exception
public void testIntrospectorPrimitiveLong() throws Exception
Exception
public void testIntrospectorPrimitiveShort() throws Exception
Exception
public void testIntrospectorUntouchable() throws Exception
Exception
public void testIntrospectorReallyUntouchable() throws Exception
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |