StringLineSeparatorWriter extends XmlWriter { @Override public void write(String str) { char[] chars = str.toCharArray(); for (char ch : chars) { writeOneCharacter(ch); } } StringLineSeparatorWriter(StringWriter out, final String lineSeparator); @Override void write(String str); @Override void write(int c); @Override void close(); void clearLineBuffer(); @Override String toString(); @Override void flush();  }
@Test void testWriteDeprecated1() { final Executable testMethod = () -> writer.write(new char[0]); final UnsupportedOperationException thrown = assertThrows(UnsupportedOperationException.class, testMethod); assertThat(thrown.getMessage(), is(nullValue())); }
@Test void testWriteDeprecated2() { final Executable testMethod = () -> writer.write("", 0, 0); final UnsupportedOperationException thrown = assertThrows(UnsupportedOperationException.class, testMethod); assertThat(thrown.getMessage(), is(nullValue())); }
@Test void testWriteDeprecated3() { final Executable testMethod = () -> writer.write(new char[0], 0, 0); final UnsupportedOperationException thrown = assertThrows(UnsupportedOperationException.class, testMethod); assertThat(thrown.getMessage(), is(nullValue())); }