Package org.glassfish.jersey.message.internal

Examples of org.glassfish.jersey.message.internal.LocaleProvider


* @author Mark Hadley
*/
public class LocaleProviderTest {
    @Test
    public void testToString() {
        final LocaleProvider instance = new LocaleProvider();
        assertEquals("en", instance.toString(new Locale("en")));
        assertEquals("en-US", instance.toString(new Locale("en", "us")));
    }
View Full Code Here


        assertEquals("en-US", instance.toString(new Locale("en", "us")));
    }

    @Test
    public void testFromString() throws Exception {
        final LocaleProvider instance = new LocaleProvider();
        assertEquals(new Locale("en"), instance.fromString("en"));
        assertEquals(new Locale("en", "us"), instance.fromString("en-us"));
    }
View Full Code Here

TOP

Related Classes of org.glassfish.jersey.message.internal.LocaleProvider

Copyright © 2018 www.massapicom. 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.