mirror of https://github.com/dspinellis/UMLGraph
Tiny rework of exiting in tests. This unmasks failing tests in UmlDocTest.
This commit is contained in:
parent
552db976fd
commit
0a71dbfc82
|
|
@ -58,13 +58,13 @@ public class BasicTest {
|
||||||
for (String className : differences) {
|
for (String className : differences) {
|
||||||
pw.println(className);
|
pw.println(className);
|
||||||
}
|
}
|
||||||
|
System.exit(1);
|
||||||
} else {
|
} else {
|
||||||
pw.println("GOOD, all files are structurally equal");
|
pw.println("GOOD, all files are structurally equal");
|
||||||
}
|
}
|
||||||
pw.println();
|
pw.println();
|
||||||
pw.println();
|
pw.println();
|
||||||
pw.flush();
|
pw.flush();
|
||||||
System.exit(differences.size() > 0 ? 1 : 0);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void performViewTests(List<String> differences, File outFolder)
|
private static void performViewTests(List<String> differences, File outFolder)
|
||||||
|
|
|
||||||
|
|
@ -145,11 +145,10 @@ public class UmlDocTest {
|
||||||
private static void runDoclet(String[] options) {
|
private static void runDoclet(String[] options) {
|
||||||
pw.print("Run javadoc -doclet " + doclet);
|
pw.print("Run javadoc -doclet " + doclet);
|
||||||
for (String o : options)
|
for (String o : options)
|
||||||
pw.print(" " + o);
|
pw.print(o + " ");
|
||||||
pw.println();
|
pw.println();
|
||||||
com.sun.tools.javadoc.Main.execute("UMLDoc test", pw, pw, pw,
|
com.sun.tools.javadoc.Main.execute("UMLDoc test", pw, pw, pw,
|
||||||
doclet, options);
|
doclet, options);
|
||||||
System.exit(0);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue