< prev index next >
test/tools/jdeps/jdkinternals/ShowReplacement.java
Print this page
*** 68,78 ****
}
@Test
public void withReplacement() {
Path file = Paths.get("q", "WithRepl.class");
! String[] output = JdepsUtil.jdeps("-jdkinternals", CLASSES_DIR.resolve(file).toString());
int i = 0;
while (!output[i].contains("Suggested Replacement")) {
i++;
}
--- 68,79 ----
}
@Test
public void withReplacement() {
Path file = Paths.get("q", "WithRepl.class");
! JdepsRunner jdeps = JdepsRunner.run("-jdkinternals", CLASSES_DIR.resolve(file).toString());
! String[] output = jdeps.output();
int i = 0;
while (!output[i].contains("Suggested Replacement")) {
i++;
}
*** 97,107 ****
* A JDK internal class has been removed while its package still exists.
*/
@Test
public void noReplacement() {
Path file = Paths.get("q", "NoRepl.class");
! String[] output = JdepsUtil.jdeps("-jdkinternals", CLASSES_DIR.resolve(file).toString());
int i = 0;
// expect no replacement
while (i < output.length && !output[i].contains("Suggested Replacement")) {
i++;
}
--- 98,109 ----
* A JDK internal class has been removed while its package still exists.
*/
@Test
public void noReplacement() {
Path file = Paths.get("q", "NoRepl.class");
! JdepsRunner jdeps = JdepsRunner.run("-jdkinternals", CLASSES_DIR.resolve(file).toString());
! String[] output = jdeps.output();
int i = 0;
// expect no replacement
while (i < output.length && !output[i].contains("Suggested Replacement")) {
i++;
}
*** 114,124 ****
* A JDK internal package has been removed.
*/
@Test
public void removedPackage() {
Path file = Paths.get("q", "RemovedPackage.class");
! String[] output = JdepsUtil.jdeps("--jdk-internals", CLASSES_DIR.resolve(file).toString());
int i = 0;
// expect no replacement
while (i < output.length && !output[i].contains("Suggested Replacement")) {
i++;
}
--- 116,127 ----
* A JDK internal package has been removed.
*/
@Test
public void removedPackage() {
Path file = Paths.get("q", "RemovedPackage.class");
! JdepsRunner jdeps = JdepsRunner.run("--jdk-internals", CLASSES_DIR.resolve(file).toString());
! String[] output = jdeps.output();
int i = 0;
// expect no replacement
while (i < output.length && !output[i].contains("Suggested Replacement")) {
i++;
}
< prev index next >