| org.apache.derbyTesting.junit.BaseTestCase org.apache.derbyTesting.functionTests.tests.i18n.MessageBundleTest
MessageBundleTest | public class MessageBundleTest extends BaseTestCase (Code) | | This class does everything we can to validate that the messages_en.properties
file is in synch with SQLState.java and MessageId.java. We want to make sure
that message ids defined in SQLState and MessageId have matching messages
in the messages properties file, and also find out if there are any messages
that don't have matching ids in the SQLState and MessageId files. The
first is a bug, the second is something to be aware of.
|
MessageBundleTest | public MessageBundleTest(String name)(Code) | | |
loadMessageBundle | static void loadMessageBundle(int index)(Code) | | |
loadMessageBundleIds | static void loadMessageBundleIds() throws Exception(Code) | | Load all the message ids from messages_en.properties into a HashSet.
This assumes its available on the classpath
|
testMessageBundleOrphanedMessages | public void testMessageBundleOrphanedMessages() throws Exception(Code) | | See if there are any message ids in the message bundle that
are not in SQLState.java or MessageId.java
|
testMessageIdOrphanedIds | public void testMessageIdOrphanedIds() throws Exception(Code) | | See if there are any message ids in MessageId.java not in
the message bundle
|
testSQLStateOrphanedIds | public void testSQLStateOrphanedIds() throws Exception(Code) | | See if there are any message ids in SQLState.java that are
not in the message bundle
|
|
|