org.apache.velocity.test
Class IntrospectorTestCase

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.apache.velocity.test.BaseTestCase
              extended by org.apache.velocity.test.IntrospectorTestCase
All Implemented Interfaces:
junit.framework.Test, TemplateTestBase

public class IntrospectorTestCase
extends BaseTestCase

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.

Version:
$Id: IntrospectorTestCase.java 463298 2006-10-12 16:10:32Z henning $
Author:
Jason van Zyl

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

IntrospectorTestCase

public IntrospectorTestCase(String name)
Creates a new instance.

Method Detail

setUp

public void setUp()
Overrides:
setUp in class junit.framework.TestCase

suite

public static junit.framework.Test suite()
Get the containing TestSuite. This is always VelocityTestSuite.

Returns:
The TestSuite to run.

testIntrospectorBoolean

public void testIntrospectorBoolean()
                             throws Exception
Throws:
Exception

testIntrospectorByte

public void testIntrospectorByte()
                          throws Exception
Throws:
Exception

testIntrospectorChar

public void testIntrospectorChar()
                          throws Exception
Throws:
Exception

testIntrospectorDouble

public void testIntrospectorDouble()
                            throws Exception
Throws:
Exception

testIntrospectorFloat

public void testIntrospectorFloat()
                           throws Exception
Throws:
Exception

testIntrospectorInteger

public void testIntrospectorInteger()
                             throws Exception
Throws:
Exception

testIntrospectorPrimitiveLong

public void testIntrospectorPrimitiveLong()
                                   throws Exception
Throws:
Exception

testIntrospectorPrimitiveShort

public void testIntrospectorPrimitiveShort()
                                    throws Exception
Throws:
Exception

testIntrospectorUntouchable

public void testIntrospectorUntouchable()
                                 throws Exception
Throws:
Exception

testIntrospectorReallyUntouchable

public void testIntrospectorReallyUntouchable()
                                       throws Exception
Throws:
Exception


Copyright © 2000-2008 The Apache Software Foundation. All Rights Reserved.