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

Quick Search    Search Deep

freemarker.testcase
Class TemplateTestCase  view TemplateTestCase download TemplateTestCase.java

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byfreemarker.testcase.TemplateTestCase
All Implemented Interfaces:
junit.framework.Test

public class TemplateTestCase
extends junit.framework.TestCase


Nested Class Summary
static class TemplateTestCase.TestBean
           
(package private) static class TemplateTestCase.TestBoolean
           
(package private) static class TemplateTestCase.TestMethod
           
(package private) static class TemplateTestCase.TestNode
           
 
Field Summary
(package private)  freemarker.template.Configuration conf
           
(package private)  java.util.HashMap dataModel
           
(package private)  java.lang.String filename
           
(package private)  java.lang.String inputDir
           
(package private)  java.io.File outputDir
           
(package private)  java.lang.String referenceDir
           
(package private)  freemarker.template.Template template
           
(package private)  java.lang.String testName
           
 
Fields inherited from class junit.framework.TestCase
 
Constructor Summary
TemplateTestCase(java.lang.String name, java.lang.String filename)
           
 
Method Summary
static void compare(java.io.Reader reference, java.io.Reader output)
           
 java.lang.Object getTestBean()
           
 void runTest()
          Override to run the test and assert its state.
 void setConfigParam(java.lang.String param, java.lang.String value)
           
 void setOutputDirectory(java.lang.String dirname)
           
 void setTemplateDirectory(java.lang.String dirname)
           
 void setUp()
          Sets up the fixture, for example, open a network connection.
 
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
 

Field Detail

template

freemarker.template.Template template

dataModel

java.util.HashMap dataModel

filename

java.lang.String filename

testName

java.lang.String testName

inputDir

java.lang.String inputDir

referenceDir

java.lang.String referenceDir

outputDir

java.io.File outputDir

conf

freemarker.template.Configuration conf
Constructor Detail

TemplateTestCase

public TemplateTestCase(java.lang.String name,
                        java.lang.String filename)
Method Detail

setTemplateDirectory

public void setTemplateDirectory(java.lang.String dirname)
                          throws java.io.IOException

setOutputDirectory

public void setOutputDirectory(java.lang.String dirname)

setConfigParam

public void setConfigParam(java.lang.String param,
                           java.lang.String value)
                    throws java.io.IOException

setUp

public void setUp()
           throws java.lang.Exception
Description copied from class: junit.framework.TestCase
Sets up the fixture, for example, open a network connection. This method is called before a test is executed.


runTest

public void runTest()
Description copied from class: junit.framework.TestCase
Override to run the test and assert its state.


compare

public static void compare(java.io.Reader reference,
                           java.io.Reader output)
                    throws java.io.IOException

getTestBean

public java.lang.Object getTestBean()