@Test public void testWriteInfoNullWriter() { String s; StringWriter writer = new StringWriter(); try { sLogger.writeInfo(null, ioSet); s = writer.getBuffer().toString(); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } }
@Test(expected = NullPointerException.class) public void testWriteInfoNullInfo() { String s; StringWriter writer = new StringWriter(); try { sLogger.writeInfo(writer, null); s = writer.getBuffer().toString(); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } }