mirror of https://github.com/dspinellis/UMLGraph
Changes for testable output (platform independent, compact)
This commit is contained in:
parent
11575dfd31
commit
2053cb50eb
|
|
@ -44,6 +44,7 @@ public class BasicTest {
|
||||||
if (!outFolder.exists())
|
if (!outFolder.exists())
|
||||||
outFolder.mkdirs();
|
outFolder.mkdirs();
|
||||||
|
|
||||||
|
System.setProperty("os.name", "generic"); // don't use windows specific fonts
|
||||||
performBasicTests(different);
|
performBasicTests(different);
|
||||||
performViewTests(different, outFolder);
|
performViewTests(different, outFolder);
|
||||||
|
|
||||||
|
|
@ -60,7 +61,7 @@ public class BasicTest {
|
||||||
private static void performViewTests(List<String> differences, File outFolder)
|
private static void performViewTests(List<String> differences, File outFolder)
|
||||||
throws IOException {
|
throws IOException {
|
||||||
String[] options = new String[] { "-docletpath", "build", "-private", "-d",
|
String[] options = new String[] { "-docletpath", "build", "-private", "-d",
|
||||||
outFolder.getAbsolutePath(), "-sourcepath", "testdata/java", "-subpackages",
|
outFolder.getAbsolutePath(), "-sourcepath", "testdata/java", "-subpackages", "-compact",
|
||||||
"gr.spinellis", "-views" };
|
"gr.spinellis", "-views" };
|
||||||
runDoclet(options);
|
runDoclet(options);
|
||||||
|
|
||||||
|
|
@ -111,7 +112,7 @@ public class BasicTest {
|
||||||
dotFile.delete();
|
dotFile.delete();
|
||||||
File refFile = new File(testRefFolder, outFileName);
|
File refFile = new File(testRefFolder, outFileName);
|
||||||
String javaPath = new File(testSourceFolder, javaFiles[i]).getAbsolutePath();
|
String javaPath = new File(testSourceFolder, javaFiles[i]).getAbsolutePath();
|
||||||
String[] options = new String[] { "-docletpath", "build", "-hide", "Hidden",
|
String[] options = new String[] { "-docletpath", "build", "-hide", "Hidden", "-compact",
|
||||||
"-private", "-d", testDestFolder, "-output", outFileName, javaPath };
|
"-private", "-d", testDestFolder, "-output", outFileName, javaPath };
|
||||||
|
|
||||||
runDoclet(options);
|
runDoclet(options);
|
||||||
|
|
|
||||||
|
|
@ -44,6 +44,7 @@ public class BasicTest {
|
||||||
if (!outFolder.exists())
|
if (!outFolder.exists())
|
||||||
outFolder.mkdirs();
|
outFolder.mkdirs();
|
||||||
|
|
||||||
|
System.setProperty("os.name", "generic"); // don't use windows specific fonts
|
||||||
performBasicTests(different);
|
performBasicTests(different);
|
||||||
performViewTests(different, outFolder);
|
performViewTests(different, outFolder);
|
||||||
|
|
||||||
|
|
@ -60,7 +61,7 @@ public class BasicTest {
|
||||||
private static void performViewTests(List<String> differences, File outFolder)
|
private static void performViewTests(List<String> differences, File outFolder)
|
||||||
throws IOException {
|
throws IOException {
|
||||||
String[] options = new String[] { "-docletpath", "build", "-private", "-d",
|
String[] options = new String[] { "-docletpath", "build", "-private", "-d",
|
||||||
outFolder.getAbsolutePath(), "-sourcepath", "testdata/java", "-subpackages",
|
outFolder.getAbsolutePath(), "-sourcepath", "testdata/java", "-subpackages", "-compact",
|
||||||
"gr.spinellis", "-views" };
|
"gr.spinellis", "-views" };
|
||||||
runDoclet(options);
|
runDoclet(options);
|
||||||
|
|
||||||
|
|
@ -111,7 +112,7 @@ public class BasicTest {
|
||||||
dotFile.delete();
|
dotFile.delete();
|
||||||
File refFile = new File(testRefFolder, outFileName);
|
File refFile = new File(testRefFolder, outFileName);
|
||||||
String javaPath = new File(testSourceFolder, javaFiles[i]).getAbsolutePath();
|
String javaPath = new File(testSourceFolder, javaFiles[i]).getAbsolutePath();
|
||||||
String[] options = new String[] { "-docletpath", "build", "-hide", "Hidden",
|
String[] options = new String[] { "-docletpath", "build", "-hide", "Hidden", "-compact",
|
||||||
"-private", "-d", testDestFolder, "-output", outFileName, javaPath };
|
"-private", "-d", testDestFolder, "-output", outFileName, javaPath };
|
||||||
|
|
||||||
runDoclet(options);
|
runDoclet(options);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue