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

org.apache.tiles.definition
Class TestUrlDefinitionsFactory

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

public class TestUrlDefinitionsFactory
extends junit.framework.TestCase

Tests the UrlDefinitionsFactory.

Version:
$Rev: 571250 $ $Date: 2007-08-30 19:32:28 +0200 (Thu, 30 Aug 2007) $

Constructor Summary
TestUrlDefinitionsFactory(String name)
          Creates a new instance of TestUrlDefinitionsFactory.
 
Method Summary
static void main(String[] theArgs)
          Start the tests.
static junit.framework.Test suite()
           
 void testBadSourceType()
          Tests addSource with a bad source object type.
 void testCalculatePostfixes()
          Tests the calculatePostfixes method.
 void testConcatPostfix()
          Tests the concatPostfix method.
 void testGetDefinition()
          Tests the getDefinition method.
 void testIsContextProcessed()
          Tests the isContextProcessed method.
 void testReadByLocale()
          Tests the addDefinitions method under normal circumstances.
 void testReadDefinitions()
          Tests the readDefinitions method under normal conditions.
 void testReaderParam()
          Tests the reader init param.
 
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

TestUrlDefinitionsFactory

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

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"

testReadDefinitions

public void testReadDefinitions()
                         throws Exception
Tests the readDefinitions method under normal conditions.

Throws:
Exception - If something goes wrong.

testGetDefinition

public void testGetDefinition()
                       throws Exception
Tests the getDefinition method.

Throws:
Exception - If something goes wrong.

testBadSourceType

public void testBadSourceType()
                       throws Exception
Tests addSource with a bad source object type.

Throws:
Exception - If something goes wrong.

testReadByLocale

public void testReadByLocale()
                      throws Exception
Tests the addDefinitions method under normal circumstances.

Throws:
Exception - If something goes wrong.

testIsContextProcessed

public void testIsContextProcessed()
                            throws Exception
Tests the isContextProcessed method.

Throws:
Exception - If something goes wrong.

testReaderParam

public void testReaderParam()
                     throws Exception
Tests the reader init param.

Throws:
Exception - If something goes wrong.

testCalculatePostfixes

public void testCalculatePostfixes()
Tests the calculatePostfixes method.


testConcatPostfix

public void testConcatPostfix()
Tests the concatPostfix method.



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