void (LauncherSession session) { session.getLauncher().registerTestExecutionListeners(new TestExecutionListener() { @Override public void testPlanExecutionStarted(TestPlan testPlan) { if (suiteStarted == 0) { if (!includeFirstLast) return; suiteStarted = System.nanoTime(); String tempDirectory = FileUtilRt.getTempDirectory(); String[] list = new File(tempDirectory).list(); assert list != null; System.out.println("FileUtil.getTempDirectory() = " + tempDirectory + " (" + list.length + " files)"); System.out.println(Timings.getStatistics()); Assertions.assertAll(() -> assertEncoding("file.encoding"), () -> assertEncoding("sun.jnu.encoding"), () -> Assertions.assertTrue( IoTestUtil.isSymLinkCreationSupported, String.format("Symlink creation not supported for %s on %s (%s)", SystemProperties.getUserName(), SystemInfo.OS_NAME, SystemInfo.OS_VERSION)), () -> Assertions.assertEquals( "false", System.getProperty("sun.io.useCanonCaches", Runtime.version().feature() >= 13 ? "false" : ""), "The `sun.io.useCanonCaches` makes `File#getCanonical*` methods unreliable and should be set to `false`")); } } }); }