Package org.glassfish.jersey.message.internal

Examples of org.glassfish.jersey.message.internal.LocaleProvider.fromString()


    }

    @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


    @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
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.