org.apache.tapestry.junit
Class TestComponentMessages

java.lang.Object
  extended by BaseComponentTestCase
      extended by org.apache.tapestry.junit.TapestryTestCase
          extended by org.apache.tapestry.junit.TestComponentMessages

public class TestComponentMessages
extends TapestryTestCase

Tests the class ComponentMessagesSourceImpl.

TODO: Add tests realted to messages encoding (which can be specified as meta-data on the component specification or, ultimately, in the namespace (library specification).

Since:
2.0.4
Author:
Howard Lewis Ship

Field Summary
 
Fields inherited from class org.apache.tapestry.junit.TapestryTestCase
IS_JDK13
 
Constructor Summary
TestComponentMessages()
           
 
Method Summary
 void test_Component_Overrides_Namespace()
           
 void test_Component_Property_From_Application()
           
 void test_Component_Property_From_Library_Overrides_Application()
           
 void test_Localized_In_Namespace()
           
 void test_Only_In_Base()
           
 void test_Only_In_Namespace()
           
 void test_Specification_Properties_File_Change()
           
 void test_Specification_Properties_File_Classpath_Change()
           
 void testDateFormatLocalization()
           
 void testDateFormatting()
           
 void testLocalizedComponentOverridesLocalizedNamespace()
           
 void testMissingBase()
          Tests that the code that locates properties files can deal with the base path (i.e., Foo.properties) doesn't exist.
 void testMissingCountry()
          Tests that naming and search works correctly for locales that specify language and variant, but no country.
 void testMissingKey()
           
 void testMultipleLocalesWithNamespace()
           
 void testOverwrittenInCountry()
           
 void testOverwrittenInLanguage()
           
 void testOverwrittenInVariant()
           
 
Methods inherited from class org.apache.tapestry.junit.TapestryTestCase
checkException, checkList, checkList, checkProperty, createValueConverter, getSpecificationResourceLocation, newBindingSource, newComponent, parseApp, parseComponent, parseLib, parsePage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestComponentMessages

public TestComponentMessages()
Method Detail

test_Only_In_Base

public void test_Only_In_Base()

test_Specification_Properties_File_Change

public void test_Specification_Properties_File_Change()

test_Specification_Properties_File_Classpath_Change

public void test_Specification_Properties_File_Classpath_Change()

test_Only_In_Namespace

public void test_Only_In_Namespace()
Since:
4.0

test_Localized_In_Namespace

public void test_Localized_In_Namespace()
Since:
4.0

test_Component_Overrides_Namespace

public void test_Component_Overrides_Namespace()
Since:
4.0

testLocalizedComponentOverridesLocalizedNamespace

public void testLocalizedComponentOverridesLocalizedNamespace()
Since:
4.0

testMissingKey

public void testMissingKey()

testOverwrittenInLanguage

public void testOverwrittenInLanguage()

testOverwrittenInCountry

public void testOverwrittenInCountry()

testOverwrittenInVariant

public void testOverwrittenInVariant()

testMissingBase

public void testMissingBase()
Tests that the code that locates properties files can deal with the base path (i.e., Foo.properties) doesn't exist.


testMissingCountry

public void testMissingCountry()
Tests that naming and search works correctly for locales that specify language and variant, but no country.


testDateFormatting

public void testDateFormatting()

testDateFormatLocalization

public void testDateFormatLocalization()

testMultipleLocalesWithNamespace

public void testMultipleLocalesWithNamespace()

test_Component_Property_From_Application

public void test_Component_Property_From_Application()

test_Component_Property_From_Library_Overrides_Application

public void test_Component_Property_From_Library_Overrides_Application()


Copyright © 2006-2011 Apache Software Foundation. All Rights Reserved.