예제 #1
0
 @Test
 public void testFileInSubFolder() throws IOException {
   root.subFolder("folderA").subFolder("folderB").createFile("test.html").close();
   output.assertSingleFile("folderA/folderB/test.html");
   output.close();
   output.assertAllClosed();
 }
예제 #2
0
 @Test
 public void testFileInRoot() throws IOException {
   root.createFile("test.html").close();
   output.assertSingleFile("test.html");
 }
예제 #3
0
 @After
 public void teardown() throws IOException {
   output.close();
   output.assertAllClosed();
 }