This project has retired. For details please refer to its Attic page.
TestDigesterDefinitionsReader (Tiles 2 2.0.7 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: 628347 $ $Date: 2008-02-16 17:28:14 +0100 (Sat, 16 Feb 2008) $

Constructor Summary
TestDigesterDefinitionsReader(String name)
          Creates a new instance of TestDigesterDefinitionsReader.
 
Method Summary
static void main(String[] theArgs)
          Start the tests.
static junit.framework.Test suite()
           
 void testBadSource()
          Tests read with bad input source.
 void testBadXml()
          Tests read with bad XML source.
 void testNoInit()
          Tests calling read without calling init.
 void testRead()
          Tests the read method under normal conditions.
 void testValidatingParameter()
          Tests the validating input parameter.
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, 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"

testRead

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


testNoInit

public void testNoInit()
Tests calling read without calling init.


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.



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