This project has retired. For details please refer to its Attic page.
TestDigesterDefinitionsReader (Tiles 2 2.1.4 Test API)

org.apache.tiles.definition.digester
Class TestDigesterDefinitionsReader

Package class diagram package TestDigesterDefinitionsReader
java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.apache.tiles.definition.digester.TestDigesterDefinitionsReader
All Implemented Interfaces:
junit.framework.Test

public class TestDigesterDefinitionsReader
extends junit.framework.TestCase

Tests the org.apache.tiles.definition.digester.DigesterDefinitionsReader class.

Version:
$Rev: 736275 $ $Date: 2009-01-21 10:58:20 +0100 (mer, 21 gen 2009) $

Constructor Summary
TestDigesterDefinitionsReader(String name)
          Creates a new instance of TestDigesterDefinitionsReader.
 
Method Summary
static void main(String[] theArgs)
          Start the tests.
protected  void setUp()
          
static junit.framework.Test suite()
           
 void testBadSource()
          Tests read with bad input source.
 void testBadXml()
          Tests read with bad XML source.
 void testRead()
          Tests the read method under normal conditions.
 void testRead21Version()
          Tests the read method under normal conditions for the new features in 2.1 version of the DTD.
 void testRegressionTiles352()
          Regression test for bug TILES-352.
 void testValidatingParameter()
          Tests the validating input parameter.
 
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, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TestDigesterDefinitionsReader

public TestDigesterDefinitionsReader(String name)
Creates a new instance of TestDigesterDefinitionsReader.

Parameters:
name - The name of the test.
Method Detail

main

public static void main(String[] theArgs)
Start the tests.

Parameters:
theArgs - the arguments. Not used

suite

public static junit.framework.Test suite()
Returns:
a test suite (TestSuite) that includes all methods starting with "test"

setUp

protected void setUp()
              throws Exception

Overrides:
setUp in class junit.framework.TestCase
Throws:
Exception

testRead

public void testRead()
              throws IOException
Tests the read method under normal conditions.

Throws:
IOException - If something goes wrong.

testRead21Version

public void testRead21Version()
                       throws IOException
Tests the read method under normal conditions for the new features in 2.1 version of the DTD.

Throws:
IOException - If something goes wrong.

testBadSource

public void testBadSource()
Tests read with bad input source.


testBadXml

public void testBadXml()
Tests read with bad XML source.


testValidatingParameter

public void testValidatingParameter()
Tests the validating input parameter. This test case enables Digester's validating property then passes in a configuration file with invalid XML.


testRegressionTiles352

public void testRegressionTiles352()
                            throws IOException
Regression test for bug TILES-352.

Throws:
IOException - If something goes wrong.


Copyright © 2001-2009 Apache Software Foundation. All Rights Reserved.