net.sf.jooreports.templates
Class VisualTemplateTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by net.sf.jooreports.templates.AbstractTemplateTest
              extended by net.sf.jooreports.templates.VisualTemplateTest
All Implemented Interfaces:
junit.framework.Test

public class VisualTemplateTest
extends AbstractTemplateTest


Constructor Summary
VisualTemplateTest()
           
 
Method Summary
 void testNewScriptForRepeatingTableRow()
          template contains [#list items as item] in new JOOScript style
 void testNewScriptWithSetting()
          template contains [#setting number_format="00.00"] in new JOOScript style
 void testScriptForRepeatingTableRow()
          template contains [#list items as item]
 void testScriptWithSetting()
          template contains [#setting number_format="00.00"]
 void testScriptWithSpecialChars()
          template contains [#if (item.cond1=='yes' && item.cond2=='yes')]
 void testVisualFields()
          Deprecated. use TextInputTagTest.testVariable()
 
Methods inherited from class net.sf.jooreports.templates.AbstractTemplateTest
assertFileCreated, createTempFile, extractTextContent, getTestFile, processTemplate, setUp
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, 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, failNotEquals, failNotSame, failSame
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

VisualTemplateTest

public VisualTemplateTest()
Method Detail

testVisualFields

public void testVisualFields()
                      throws java.io.IOException,
                             DocumentTemplateException
Deprecated. use TextInputTagTest.testVariable()

template contains input fields: [description:field1,content:field one] [description:field2,content:field two]

Throws:
java.io.IOException
DocumentTemplateException

testScriptWithSetting

public void testScriptWithSetting()
                           throws java.io.IOException,
                                  DocumentTemplateException
template contains [#setting number_format="00.00"]

Throws:
java.io.IOException
DocumentTemplateException

testNewScriptWithSetting

public void testNewScriptWithSetting()
                              throws java.io.IOException,
                                     DocumentTemplateException
template contains [#setting number_format="00.00"] in new JOOScript style

Throws:
java.io.IOException
DocumentTemplateException

testScriptForRepeatingTableRow

public void testScriptForRepeatingTableRow()
                                    throws java.io.IOException,
                                           DocumentTemplateException
template contains [#list items as item]

Throws:
java.io.IOException
DocumentTemplateException

testNewScriptForRepeatingTableRow

public void testNewScriptForRepeatingTableRow()
                                       throws java.io.IOException,
                                              DocumentTemplateException
template contains [#list items as item] in new JOOScript style

Throws:
java.io.IOException
DocumentTemplateException

testScriptWithSpecialChars

public void testScriptWithSpecialChars()
                                throws java.io.IOException,
                                       DocumentTemplateException
template contains [#if (item.cond1=='yes' && item.cond2=='yes')]

Throws:
java.io.IOException
DocumentTemplateException


Copyright © 2009. All Rights Reserved.