org.apache.velocity.test
public class BaseTestCase extends TestCase
Version: $Id: BaseTestCase.java,v 1.12.4.1 2004/03/03 23:23:04 geirm Exp $
Field Summary | |
---|---|
Perl5Util | perl
used for nomalization of output and compare data |
Constructor Summary | |
---|---|
BaseTestCase(String name)
Default constructor. |
Method Summary | |
---|---|
protected static void | assureResultsDirectoryExists(String resultsDirectory)
Assures that the results directory exists. |
protected static String | getFileName(String dir, String base, String ext)
Concatenates the file name parts together appropriately.
|
protected static String | getTestCaseName(String s)
Turns a base file name into a test case name.
|
protected boolean | isMatch(String resultsDir, String compareDir, String baseFileName, String resultExt, String compareExt)
Returns whether the processed template matches the
content of the provided comparison file.
|
protected String | normalizeNewlines(String source)
Normalizes lines to account for platform differences. |
Returns: The full path to the file.
Parameters: s The base file name.
Returns: The test case name.
Returns: Whether the output matches the contents of the comparison file.
Throws: Exception Test failure condition.
Returns: source with all line terminations changed to Unix style