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

org.apache.tiles.definition
Class LocaleDefinitionsFactoryTest

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

public class LocaleDefinitionsFactoryTest
extends junit.framework.TestCase

Tests LocaleDefinitionsFactory.

Version:
$Rev: 676326 $ $Date: 2008-07-13 16:16:07 +0200 (dom, 13 lug 2008) $

Constructor Summary
LocaleDefinitionsFactoryTest(String name)
          Creates a new instance of TestUrlDefinitionsFactory.
 
Method Summary
static void main(String[] theArgs)
          Start the tests.
protected  void setUp()
          
static junit.framework.Test suite()
           
 void testGetDefinition()
          Tests the getDefinition 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, 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

LocaleDefinitionsFactoryTest

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

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

setUp

protected void setUp()
              throws Exception

Overrides:
setUp in class junit.framework.TestCase
Throws:
Exception

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.

testReadByLocale

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

Throws:
Exception - If something goes wrong.

testReaderParam

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

Throws:
Exception - If something goes wrong.


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