l.addHandler(h);
} catch (Exception e) {
fail(e.getMessage());
}
PrintWriter pw = new PrintWriterImpl(l);
pw.print(true);
pw.print('a');
pw.print(123);
pw.print(1.3);
pw.println();
pw.println("toto");
String[] found = getFirstLines(LOG_FILE_NAME, 2);
assertNotNull("TestHelper error: return null", found);
assertEquals("TestHelper error: wrong size", 2, found.length);
assertNotNull("TestHelper error: element 0 is null", found[0]);
assertNotNull("TestHelper error: element 1 is null", found[1]);