org.opencms.i18n
Class TestCmsMessages

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.opencms.i18n.TestCmsMessages
All Implemented Interfaces:
junit.framework.Test

public class TestCmsMessages
extends junit.framework.TestCase

Tests for the CmsMessages.

Since:
6.0.0

Constructor Summary
TestCmsMessages()
           
 
Method Summary
 void testLocale()
          Tests if message will be returned in the correct locale.
 void testMessageWithParameters()
          Tests parameter replacement in messages.
 void testUnknownKeys()
          Tests for for missing localized keys.
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TestCmsMessages

public TestCmsMessages()
Method Detail

testLocale

public void testLocale()
                throws Exception
Tests if message will be returned in the correct locale.

Throws:
Exception - if the test fails

testMessageWithParameters

public void testMessageWithParameters()
                               throws Exception
Tests parameter replacement in messages.

Throws:
Exception - if the test fails

testUnknownKeys

public void testUnknownKeys()
                     throws Exception
Tests for for missing localized keys.

Throws:
Exception - if the test fails