Package org.objectweb.celtix.common.i18n

Source Code of org.objectweb.celtix.common.i18n.BundleUtilsTest

package org.objectweb.celtix.common.i18n;

import java.util.ResourceBundle;

import junit.framework.TestCase;


public class BundleUtilsTest extends TestCase {
    public void testGetBundleName() throws Exception {
        assertEquals("unexpected resource bundle name",
                     "org.objectweb.celtix.common.i18n.Messages",
                     BundleUtils.getBundleName(getClass()));
    }

    public void testGetBundle() throws Exception {
        ResourceBundle bundle = BundleUtils.getBundle(getClass());
        assertNotNull("expected resource bundle", bundle);
        assertEquals("unexpected resource",
                     "localized message",
                     bundle.getString("I18N_MSG"));
                    
    }
}
TOP

Related Classes of org.objectweb.celtix.common.i18n.BundleUtilsTest

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.