Code example for Charset

Methods: displayName

0
		assertTrue(charset.contains(Charset.forName("UTF-8")));
	} 
 
	@Test 
	public void displayName_always_notNull() { 
		assertNotNull(charset.displayName());
	} 
 
	@Test 
	public void displayNameLocale_always_notNull() { 
		assertNotNull(charset.displayName(Locale.getDefault()));
	} 
 
	@Test 
	public void newDecoder_always_correctClass() { 
		CharsetDecoder decoder = charset.newDecoder();
		assertEquals(Utf8WithFallbackCharsetDecoder.class, decoder.getClass());
	} 
 
	@Test(expected=UnsupportedOperationException.class) 
Experience pair programming with AI  Get Codota for Java