2728293031323334353637
private UnknownCharset charset; @Test public void constructor() { try { new UnknownCharset(null); fail(); } catch (IllegalArgumentException e) { assertThat(e, exception("charset name")); } }
3637383940414243
} } @Test public void name() { charset = new UnknownCharset("test"); assertEquals("test", charset.name()); }
4243444546474849
assertEquals("test", charset.name()); } @Test public void toString_() { charset = new UnknownCharset("test"); assertEquals("test", charset.name()); }
4849505152535455565758
assertEquals("test", charset.name()); } @Test public void newEncoder() { charset = new UnknownCharset("test"); try { charset.newEncoder(); fail(); } catch (UnsupportedOperationException e) {
6061626364656667686970
} } @Test public void newDecoder() { charset = new UnknownCharset("test"); try { charset.newDecoder(); fail(); } catch (UnsupportedOperationException e) {