freemarker.testcase
Class DummyTestCase

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by freemarker.testcase.AbstractTestCase
              extended by freemarker.testcase.DummyTestCase
All Implemented Interfaces:
junit.framework.Test

public final class DummyTestCase
extends AbstractTestCase

Dummy test case. This tests the AbstractTestCase class, by generating a test that is identical to the reference text. The input file is identical to the template file, and no transformation is performed.

Version:
$Id: DummyTestCase.java 1003 2004-10-16 14:54:58Z run2000 $

Field Summary
 
Fields inherited from class freemarker.testcase.AbstractTestCase
m_aFilename, m_aReferenceText, m_aTemplateText
 
Constructor Summary
DummyTestCase(java.lang.String aTestname)
          Creates new DummyTestCase.
 
Method Summary
static void main(java.lang.String[] args)
          Main method for calling the test in standalone mode.
 void runTest()
          Performs the test.
 void setUp()
          Sets up the reference and template files.
 
Methods inherited from class freemarker.testcase.AbstractTestCase
getReferenceText, getTemplateText, getTestcasePath, getTextFromFile, isTextIdentical, setUpFiles, showTestResults, writeText
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, 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

DummyTestCase

public DummyTestCase(java.lang.String aTestname)
Creates new DummyTestCase.

Parameters:
aTestname - the name of the test to be supplied to JUnit
Method Detail

setUp

public void setUp()
Sets up the reference and template files.

Overrides:
setUp in class junit.framework.TestCase

runTest

public void runTest()
Performs the test.

Overrides:
runTest in class junit.framework.TestCase

main

public static void main(java.lang.String[] args)
Main method for calling the test in standalone mode.