public class LocalizationServiceTest extends RhnBaseTestCase
LocalizationService
.Constructor and Description |
---|
LocalizationServiceTest(java.lang.String name)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
setUp()
sets up the test
|
protected void |
tearDown()
Tears down the fixture, and closes the HibernateSession.
|
void |
testDebugMessage()
Test to make sure debug mode works
|
void |
testFormatDate()
Test formatDate
|
void |
testFormatNumber()
Test formatNumber
|
void |
testGetAlphabet()
Test the alphabet and digit functions
|
void |
testGetCountriesPrefixes()
Test the prefix and country functions
|
void |
testGetDebugMessage()
Test getting debug message
|
void |
testGetDigits()
Test the alphabet and digit functions
|
void |
testGetInstance()
test that makes sure we can instantiate the service
|
void |
testGetInvalidMessage()
test to exercise looking up an invalid message
|
void |
testGetMessageNoLocale()
Test forcing a call with a null locale
|
void |
testGetMessageNonDefaultLocale()
Test calling with the parent of en_US, en
|
void |
testGetMessageNoParams()
test a standard non-parameterized message call
|
void |
testGetMessageOneParams()
test a standard non-parameterized message call
|
void |
testGetMessages() |
void |
testGetMessagesMultipleFiles()
test a standard non-parameterized message call
|
void |
testGetMessageWithSpacesInKey()
test a standard non-parameterized message with
spaces in the key.
|
void |
testHasMessage() |
void |
testNullMessage() |
void |
testPlainText() |
void |
testSupportedLocales() |
assertContains, assertContains, assertContains, assertNotBefore, assertNotBefore, assertNotEmpty, assertNotEmpty, assertPropertyEquals, clearSession, commitAndCloseSession, createDirIfNotExists, disableLocalizationServiceLogging, enableLocalizationServiceLogging, flushAndEvict, getNow, reload, reload
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, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, runTest, setName, toString
public LocalizationServiceTest(java.lang.String name)
name
- test namepublic void setUp() throws java.lang.Exception
setUp
in class RhnBaseTestCase
java.lang.Exception
- if an error occurs during setup.public void testGetInstance()
protected void tearDown() throws java.lang.Exception
tearDown
in class RhnBaseTestCase
java.lang.Exception
TestCase.tearDown()
,
HibernateFactory.closeSession()
public void testGetMessageNoParams()
public void testGetMessageOneParams()
public void testGetMessagesMultipleFiles()
public void testGetMessageNoLocale()
public void testGetMessageNonDefaultLocale()
public void testGetMessages()
public void testHasMessage()
public void testGetDebugMessage()
public void testGetMessageWithSpacesInKey()
public void testGetInvalidMessage()
public void testFormatDate() throws java.lang.Exception
java.lang.Exception
- something bad happenedpublic void testFormatNumber()
public void testGetAlphabet()
public void testGetDigits()
public void testGetCountriesPrefixes()
public void testDebugMessage()
public void testSupportedLocales()
public void testNullMessage()
public void testPlainText()