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

org.apache.tiles.compat.definition.digester
Class TestCompatibilityDigesterDefinitionsReader

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

public class TestCompatibilityDigesterDefinitionsReader
extends junit.framework.TestCase

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

Version:
$Rev: 734996 $ $Date: 2009-01-16 14:27:28 +0100 (ven, 16 gen 2009) $

Constructor Summary
TestCompatibilityDigesterDefinitionsReader(String name)
          Creates a new instance of TestDigesterDefinitionsReader.
 
Method Summary
protected  void setUp()
          
static junit.framework.Test suite()
           
 void testBadSource()
          Tests read with bad input source.
 void testRead21Version()
          Tests the read method under normal conditions for the new features in 2.1 version of the DTD.
 void testReadNewFormat()
          Tests the read method to read Tiles 2.0 files.
 void testReadOldFormat()
          Tests the read method to read Tiles 1.1 files.
 
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

TestCompatibilityDigesterDefinitionsReader

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

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

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

testReadOldFormat

public void testReadOldFormat()
                       throws IOException
Tests the read method to read Tiles 1.1 files.

Throws:
DefinitionsFactoryException - If the definitions factory fails.
IOException - If an I/O exception happens.

testReadNewFormat

public void testReadNewFormat()
                       throws IOException
Tests the read method to read Tiles 2.0 files.

Throws:
IOException - If an I/O exception happens.

testRead21Version

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


testBadSource

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



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