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

org.apache.tiles.definition
Class TestDefinitions

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

public class TestDefinitions
extends junit.framework.TestCase

Tests the DefinitionsImpl class.

Version:
$Rev: 616890 $ $Date: 2008-01-30 21:16:51 +0100 (Wed, 30 Jan 2008) $

Constructor Summary
TestDefinitions(String name)
          Creates a new instance of TestDefinitions.
 
Method Summary
static void main(String[] theArgs)
          Start the tests.
static junit.framework.Test suite()
           
 void testLocalizedResolveInheritances()
          Tests the inheritance with localized definitions.
 void testReset()
          Tests the reset method.
 void testResolveAttributeDependencies()
          Verifies that attribute dependencies are resolved.
 void testResolveInheritances()
          Tests the inheritance properties of Definition objects.
 
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

TestDefinitions

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

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"

testResolveInheritances

public void testResolveInheritances()
Tests the inheritance properties of Definition objects.


testLocalizedResolveInheritances

public void testLocalizedResolveInheritances()
Tests the inheritance with localized definitions.


testReset

public void testReset()
Tests the reset method.


testResolveAttributeDependencies

public void testResolveAttributeDependencies()
Verifies that attribute dependencies are resolved. A definition can have an attribute that points to another definition. This test verifies that the resolveAttributes method is executed and attribute dependencies are calculated.



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