|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object junit.framework.Assert junit.framework.TestCase org.apache.velocity.test.BaseTestCase
public class BaseTestCase
Base test case that provides a few utility methods for the rest of the tests.
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. |
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 BaseTestCase(String name)
Method Detail |
---|
protected static String getFileName(String dir, String base, String ext)
protected static void assureResultsDirectoryExists(String resultsDirectory)
protected String normalizeNewlines(String source)
protected boolean isMatch(String resultsDir, String compareDir, String baseFileName, String resultExt, String compareExt) throws Exception
Exception
- Test failure condition.protected static final String getTestCaseName(String s)
s
- The base file name.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |