Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.velocity.test.misc.* (1)org.apache.velocity.test.provider.* (4)
org.apache.velocity.test.view.* (1)

org.apache.velocity.test: Javadoc index of package org.apache.velocity.test.


Package Samples:

org.apache.velocity.test.misc
org.apache.velocity.test.provider
org.apache.velocity.test.view

Classes:

TemplateTestCase: Easily add test cases which evaluate templates and check their output. NOTE: This class DOES NOT extend RuntimeTestCase because the TemplateTestSuite already initializes the Velocity runtime and adds the template test cases. Having this class extend RuntimeTestCase causes the Runtime to be initialized twice which is not good. I only discovered this after a couple hours of wondering why all the properties being setup were ending up as Vectors. At first I thought it was a problem with the Configuration class, but the Runtime was being initialized twice: so the first time the property is seen it's ...
ContextSafetyTestCase: Tests if we are context safe : can we switch objects in the context and re-merge the template safely. NOTE: This class should not extend RuntimeTestCase because this test is run from the VelocityTestSuite which in effect a runtime test suite and the test suite initializes the Runtime. Extending RuntimeTestCase causes the Runtime to be initialized twice.
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.
AnakiaTestCase: This is a test case for Anakia. Right now, it simply will compare two index.html files together. These are produced as a result of first running Anakia and then running this test.
BoolObj: simple class to test boolean property introspection - can't use TestProvider as there is a get( String ) and that comes before isProperty in the search pattern
EncodingTestCase: Tests input encoding handling. The input target is UTF-8, having chinese and and a spanish enyay (n-twiddle) Thanks to Kent Johnson for the example input file.
CommonsExtPropTestCase: Tests for the Commons ExtendedProperties class. This is an identical copy of the ConfigurationTestCase, which will disappear when the Configuration class does
Person: Rudimentary class used in the testbed to test introspection with subclasses of a particular class. This class need to be greatly extended to be useful :-)
TestProvider: This class is used by the testbed. Instances of the class are fed into the context that is set before the AST is traversed and dynamic content generated.
TestClassloader: Simple (real simple...) classloader that depends on a Foo.class being located in the classloader directory under test
TemplateTestBase: This is a base interface that contains a bunch of static final strings that are of use when testing templates.
MiscTestCase: Test case for any miscellaneous stuff. If it isn't big, and doesn't fit anywhere else, it goes here
Child: Rudimentary class used in the testbed to test introspection with subclasses of a particular class.
TexenClasspathTestCase: This is a test case for Texen. Simply executes a simple generative task and compares the output.
TexenTestCase: This is a test case for Texen. Simply executes a simple generative task and compares the output.
Test: This class the testbed for Velocity. It is used to test all the directives support by Velocity.
TemplateNodeView: Simple class for dumping the AST for a template. Good for debugging and writing new directives.
IntrospectorTestCase2: Test case for the Velocity Introspector which tests the ability to find a 'best match'
BaseTestCase: Base test case that provides a few utility methods for the rest of the tests.
IntrospectorTestCase3: Simple introspector test case for primitive problem found in 1.3
ParserTestCase: More specific parser tests where just templating isn't enough.
ClassloaderChangeTest: Tests if we can hand Velocity an arbitrary class for logging.
ExternalLoggerTest: Tests if we can hand Velocity an arbitrary class for logging.
MethodInvocationExceptionTest: Tests if we can hand Velocity an arbitrary class for logging.
VelocityAppTestCase: This class is intended to test the app.Velocity.java class.

Home | Contact Us | Privacy Policy | Terms of Service