equal
deleted
inserted
replaced
21 * questions. |
21 * questions. |
22 */ |
22 */ |
23 |
23 |
24 /* |
24 /* |
25 * @test |
25 * @test |
26 * @bug 8131025 8141092 8153761 8145263 8131019 8175886 8176184 |
26 * @bug 8131025 8141092 8153761 8145263 8131019 8175886 8176184 8176241 |
27 * @summary Test Completion and Documentation |
27 * @summary Test Completion and Documentation |
28 * @library /tools/lib |
28 * @library /tools/lib |
29 * @modules jdk.compiler/com.sun.tools.javac.api |
29 * @modules jdk.compiler/com.sun.tools.javac.api |
30 * jdk.compiler/com.sun.tools.javac.main |
30 * jdk.compiler/com.sun.tools.javac.main |
31 * jdk.jdeps/com.sun.tools.javap |
31 * jdk.jdeps/com.sun.tools.javap |
295 new HashSet<>(Arrays.asList("class"))); |
295 new HashSet<>(Arrays.asList("class"))); |
296 } |
296 } |
297 |
297 |
298 public void testImportStart() { |
298 public void testImportStart() { |
299 assertCompletion("import c|", "com"); |
299 assertCompletion("import c|", "com"); |
300 assertCompletion("import o|", "org"); |
|
301 } |
300 } |
302 |
301 |
303 public void testBrokenClassFile() throws Exception { |
302 public void testBrokenClassFile() throws Exception { |
304 Compiler compiler = new Compiler(); |
303 Compiler compiler = new Compiler(); |
305 Path testOutDir = Paths.get("CompletionTestBrokenClassFile"); |
304 Path testOutDir = Paths.get("CompletionTestBrokenClassFile"); |