TempDir cleanup timing uncertain after test execution
Problem Statement JUnit 5.7+ introduces the @TempDir annotation for automatic creation of temporary directories in test methods. The Javadoc states that directories are deleted after test execution, but the exact moment of deletion is not guaranteed to be immediate. This uncertainty can lead to memory or file‑handle leaks, especially when tests spawn long‑ru