public class MessagesTest extends RhnBaseTestCase
XmlMessages
.Constructor and Description |
---|
MessagesTest(java.lang.String name)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
setUp()
sets up the test
|
void |
tearDown()
Tears down the fixture, and closes the HibernateSession.
|
void |
testUnescapeHtml()
Test unescaping the HTML
|
void |
testXmlEscapeQuote()
Test that it escapes single quotes correctly.
|
void |
testXmlFormatOneArg()
Test that it formats a one-arg string correctly
|
void |
testXmlFormatThreeArg()
Test that it formats a three-arg string correctly
|
void |
testXmlFormatTwoArg()
Test that it formats a two-arg string correctly
|
void |
testXmlGetGermanString()
test that it gets the right unformatted string
|
void |
testXmlGetKeys()
Test getting all the keys for the bundle
|
void |
testXmlGetString()
test that it gets the right unformatted string
|
void |
testXmlGetStringNoLocale()
test that it gets the right unformatted string
|
void |
testXmlNoResourceBundle()
Make sure we fail if there's no resource bundle
|
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 MessagesTest(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 tearDown()
RhnBaseTestCase
tearDown
in class RhnBaseTestCase
TestCase.tearDown()
,
HibernateFactory.closeSession()
public void testXmlGetString()
public void testXmlGetStringNoLocale()
public void testXmlGetKeys()
public void testXmlGetGermanString()
public void testXmlFormatOneArg()
public void testXmlFormatTwoArg()
public void testXmlFormatThreeArg()
public void testXmlEscapeQuote()
public void testUnescapeHtml()
public void testXmlNoResourceBundle()