@Test public void testNonASCII() { Assert.assertFalse(CharsetUtil.isASCII(SWISS_GERMAN_HELLO)); Assert.assertFalse(CharsetUtil.isASCII(RUSSIAN_HELLO)); }
@Test public void testAllASCII() { String s = "Like hello and stuff"; Assert.assertTrue(CharsetUtil.isASCII(s)); }