< prev index next >

test/langtools/tools/jdeps/Basic.java

Print this page

        

*** 35,44 **** --- 35,45 ---- import java.io.IOException; import java.io.PrintWriter; import java.io.StringWriter; import java.nio.file.Files; import java.nio.file.Path; + import java.nio.file.Paths; import java.util.*; import java.util.regex.*; import java.util.stream.Collectors; import static java.nio.file.StandardCopyOption.*;
*** 133,142 **** --- 134,156 ---- cpath.append(File.pathSeparator).append(dir2.toString()); test(new File(testDir, "Test.class"), new String[] {"java.lang.Object", "java.lang.String", "p.Foo", "p.Bar"}, new String[] {"compact1", "compact1", dir1.toFile().getName(), dir2.toFile().getName()}, new String[] {"-v", "-classpath", cpath.toString(), "Test.class"}); + + // tests --missing-deps option + test(new File(testDir, "Test.class"), + new String[] {"p.Foo", "p.Bar"}, + new String[] {"not found", "not found"}, + new String[] {"--missing-deps"}); + + // no missing dependence + test(new File(testDir, "Test.class"), + new String[0], + new String[0], + new String[] {"--missing-deps", "-classpath", cpath.toString()}); + return errors; } void test(File file, String[] expect, String[] profiles) { test(file, expect, profiles, new String[0]);
< prev index next >