这是文件列表器的j单元测试类,它列出了所选目录中的文件。
/** * @throws Exception */ @BeforeEach public void setUp() throws Exception { //get the folder before test dir = new File("src/Files"); }
根据File类java docs的空指针期望。