ts.getTrace("test").info("test");
ts.close();
}
private void testTraceDebug() {
TraceSystem ts = new TraceSystem(null);
ByteArrayOutputStream out = new ByteArrayOutputStream();
ts.setSysOut(new PrintStream(out));
ts.setLevelSystemOut(TraceSystem.DEBUG);
ts.getTrace("test").debug(new Exception("error"), "test");
ts.close();
String outString = new String(out.toByteArray());
assertContains(outString, "error");
assertContains(outString, "Exception");
assertContains(outString, "test");
}