net.sf.jooreports.templates
Class TextInputTagTest

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.TextInputTagTest
All Implemented Interfaces:
junit.framework.Test

public class TextInputTagTest
extends AbstractTemplateTest

test input field tags <text:text-input text-description="JOOScript">...</text:text-input>


Constructor Summary
TextInputTagTest()
           
 
Method Summary
 void testDirective()
          input field with content [#assign title='Mr.']
 void testDirectivesInOneLine()
          input fields for directive in one line
 void testDirectivesInSplitLine()
          input fields for directive in split lines
 void testDirectivesSwitch()
          input fields for directive "switch"
 void testDirectiveWithSpecialChars()
          input field for directive contains "&"
 void testVariable()
          input field with content $name
 
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

TextInputTagTest

public TextInputTagTest()
Method Detail

testVariable

public void testVariable()
                  throws java.io.IOException,
                         DocumentTemplateException
input field with content $name

Throws:
java.io.IOException
DocumentTemplateException

testDirective

public void testDirective()
                   throws java.io.IOException,
                          DocumentTemplateException
input field with content [#assign title='Mr.']

Throws:
java.io.IOException
DocumentTemplateException

testDirectivesInOneLine

public void testDirectivesInOneLine()
                             throws java.io.IOException,
                                    DocumentTemplateException
input fields for directive in one line

[#if showname=='Yes']...[/#if]

Throws:
java.io.IOException
DocumentTemplateException

testDirectivesInSplitLine

public void testDirectivesInSplitLine()
                               throws java.io.IOException,
                                      DocumentTemplateException
input fields for directive in split lines

[#if showname='Yes']
...
[#else]
...
[/#if]

Throws:
java.io.IOException
DocumentTemplateException

testDirectiveWithSpecialChars

public void testDirectiveWithSpecialChars()
                                   throws java.io.IOException,
                                          DocumentTemplateException
input field for directive contains "&"

[#if (cond1=='pass' && cond2=='pass')]

Throws:
java.io.IOException
DocumentTemplateException

testDirectivesSwitch

public void testDirectivesSwitch()
                          throws java.io.IOException,
                                 DocumentTemplateException
input fields for directive "switch"

[#switch option][#case '1']
...
[#break]
...
[/#switch]

Throws:
java.io.IOException
DocumentTemplateException


Copyright © 2009. All Rights Reserved.