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

org.apache.tiles
Class TestDefinition

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

public class TestDefinition
extends junit.framework.TestCase

Tests the Definition class.

Version:
$Rev: 790234 $ $Date: 2009-07-01 17:54:28 +0200 (mer, 01 lug 2009) $

Constructor Summary
TestDefinition(String name)
          Creates a new instance of TestDefinition.
 
Method Summary
static void main(String[] theArgs)
          Start the tests.
static junit.framework.Test suite()
           
 void testInherit()
          Tests the Definition#inherit(Definition) method.
 void testPutAttribute()
          Verifies the put Attribute functionality.
 void testToString()
          Tests Definition.toString().
 
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

TestDefinition

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

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"

testPutAttribute

public void testPutAttribute()
Verifies the put Attribute functionality. Attributes are added or replaced in the definition.


testInherit

public void testInherit()
Tests the Definition#inherit(Definition) method.


testToString

public void testToString()
Tests Definition.toString().



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