Code example for Charset

Methods: displayName

0
		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) 
	public void newEncoder_always_exceptionThrown() { 
		charset.newEncoder();
	} 
 
} 
Experience pair programming with AI  Get Codota for Java