equal
deleted
inserted
replaced
43 import javax.tools.JavaFileObject.Kind; |
43 import javax.tools.JavaFileObject.Kind; |
44 import javax.tools.StandardJavaFileManager; |
44 import javax.tools.StandardJavaFileManager; |
45 import javax.tools.ToolProvider; |
45 import javax.tools.ToolProvider; |
46 |
46 |
47 import com.sun.tools.javac.file.JavacFileManager; |
47 import com.sun.tools.javac.file.JavacFileManager; |
48 import com.sun.tools.javac.nio.JavacPathFileManager; |
|
49 import com.sun.tools.javac.nio.PathFileManager; |
|
50 import com.sun.tools.javac.util.Context; |
48 import com.sun.tools.javac.util.Context; |
51 |
49 |
52 /** |
50 /** |
53 * Tests for DocumentationTool.getTask fileManager parameter. |
51 * Tests for DocumentationTool.getTask fileManager parameter. |
54 */ |
52 */ |
57 new GetTask_FileManagerTest().run(); |
55 new GetTask_FileManagerTest().run(); |
58 } |
56 } |
59 |
57 |
60 /** |
58 /** |
61 * Verify that an alternate file manager can be specified: |
59 * Verify that an alternate file manager can be specified: |
62 * in this case, a PathFileManager. |
60 * in this case, a TestFileManager. |
63 */ |
61 */ |
64 @Test |
62 @Test |
65 public void testFileManager() throws Exception { |
63 public void testFileManager() throws Exception { |
66 JavaFileObject srcFile = createSimpleJavaFileObject(); |
64 JavaFileObject srcFile = createSimpleJavaFileObject(); |
67 DocumentationTool tool = ToolProvider.getSystemDocumentationTool(); |
65 DocumentationTool tool = ToolProvider.getSystemDocumentationTool(); |