equal
deleted
inserted
replaced
63 |
63 |
64 @Test |
64 @Test |
65 public void runTest() throws Exception { |
65 public void runTest() throws Exception { |
66 // Test jdeps classes |
66 // Test jdeps classes |
67 runTest(null); |
67 runTest(null); |
68 // Test jdeps -addmods |
68 // Test jdeps --add-modules |
69 runTest(JAVA_ANNOTATIONS_COMMON, SPLIT_PKG_NAME); |
69 runTest(JAVA_ANNOTATIONS_COMMON, SPLIT_PKG_NAME); |
70 } |
70 } |
71 |
71 |
72 private void runTest(String root, String... splitPackages) throws Exception { |
72 private void runTest(String root, String... splitPackages) throws Exception { |
73 String cmd = String.format("jdeps -verbose:class -addmods %s %s%n", |
73 String cmd = String.format("jdeps -verbose:class --add-modules %s %s%n", |
74 root, CLASSES_DIR); |
74 root, CLASSES_DIR); |
75 |
75 |
76 try (JdepsUtil.Command jdeps = JdepsUtil.newCommand(cmd)) { |
76 try (JdepsUtil.Command jdeps = JdepsUtil.newCommand(cmd)) { |
77 jdeps.verbose("-verbose:class") |
77 jdeps.verbose("-verbose:class") |
78 .addRoot(CLASSES_DIR); |
78 .addRoot(CLASSES_DIR); |