Ghidra is a software reverse engineering (SRE) framework
Test fixes
dragonmacher371c02307043
diff --git a/Ghidra/Features/Base/src/test.slow/java/ghidra/app/plugin/core/datamgr/editor/EnumEditor2Test.java b/Ghidra/Features/Base/src/test.slow/java/ghidra/app/plugin/core/datamgr/editor/EnumEditor2Test.javaindex 7090558831..1e4587c0f8 100644--- a/Ghidra/Features/Base/src/test.slow/java/ghidra/app/plugin/core/datamgr/editor/EnumEditor2Test.java+++ b/Ghidra/Features/Base/src/test.slow/java/ghidra/app/plugin/core/datamgr/editor/EnumEditor2Test.java@@ -545,7 +545,7 @@ public class EnumEditor2Test extends AbstractGhidraHeadedIntegrationTest {nameField.setText(newName);});- DockingActionIf applyAction = getAction(plugin, "Apply Enum Changes");+ DockingActionIf applyAction = getAction(plugin, "Editor: Apply Enum Changes");assertTrue(applyAction.isEnabled());performAction(applyAction);@@ -566,7 +566,7 @@ public class EnumEditor2Test extends AbstractGhidraHeadedIntegrationTest {nameField.setText(newDescription);});- DockingActionIf applyAction = getAction(plugin, "Apply Enum Changes");+ DockingActionIf applyAction = getAction(plugin, "Editor: Apply Enum Changes");assertTrue(applyAction.isEnabled());performAction(applyAction);diff --git a/Ghidra/Features/GraphServices/src/test/java/ghidra/graph/export/AttributedGraphExportersTest.java b/Ghidra/Features/GraphServices/src/test/java/ghidra/graph/export/AttributedGraphExportersTest.javaindex 8de62a5e6c..9a0e719f02 100644--- a/Ghidra/Features/GraphServices/src/test/java/ghidra/graph/export/AttributedGraphExportersTest.java+++ b/Ghidra/Features/GraphServices/src/test/java/ghidra/graph/export/AttributedGraphExportersTest.java@@ -21,7 +21,8 @@ import java.io.File;import java.io.IOException;import java.util.List;-import org.junit.*;+import org.junit.Before;+import org.junit.Test;import generic.test.AbstractGenericTest;import ghidra.graph.exporter.*;@@ -35,25 +36,15 @@ public class AttributedGraphExportersTest extends AbstractGenericTest {@Beforepublic void setUp() throws Exception {-graph = createGraph();}- @After- public void tearDown() {- }-@Testpublic void testCsvEdgeList() throws Exception {CsvEdgeListGraphExporter exporter = new CsvEdgeListGraphExporter();List<String> lines = doExport(exporter, graph);- assertOutput(lines,- "A,B",- "B,C",- "B,D",- "C,E",- "D,E");+ assertOutput(lines, "A,B", "B,C", "B,D", "C,E", "D,E");}@Test@@ -61,29 +52,15 @@ public class AttributedGraphExportersTest extends AbstractGenericTest {CsvAdjacencyListGraphExporter exporter = new CsvAdjacencyListGraphExporter();List<String> lines = doExport(exporter, graph);- assertOutput(lines,- "A,B",- "B,C,D",- "C,E",- "D,E",- "E",- "F");+ assertOutput(lines, "A,B", "B,C,D", "C,E", "D,E", "E", "F");}@Testpublic void testDIMACS() throws Exception {DimacsGraphExporter exporter = new DimacsGraphExporter();List<String> lines = doExport(exporter, graph);- assertOutput(lines,- "c",- "c SOURCE: Generated using the JGraphT library",- "c",- "p edge 6 5",- "e A B",- "e B C",- "e B D",- "e C E",- "e D E");+ assertOutput(lines, "c", "c SOURCE: Generated using the JGraphT library", "c", "p edge 6 5",+ "e A B", "e B C", "e B D", "e C E", "e D E");}@Test@@ -91,20 +68,13 @@ public class AttributedGraphExportersTest extends AbstractGenericTest {DotGraphExporter exporter = new DotGraphExporter();List<String> lines = doExport(exporter, graph);- assertOutput(lines,- "digraph Ghidra {",- " \"A\" [ Type=\"X\" Inverted=\"true\" Name=\"A\" ];",- " \"B\" [ Type=\"Y\" Name=\"B\" ];",- " \"C\" [ Type=\"Y\" Name=\"C\" ];",- " \"D\" [ Type=\"Y\" Name=\"D\" ];",- " \"E\" [ Type=\"Z\" Name=\"E\" ];",- " \"F\" [ Type=\"T\" Name=\"F\" ];",- " \"A\" -> \"B\" [ EType=\"Fall\" ];",- " \"B\" -> \"C\" [ EType=\"JMP\" ];",- " \"B\" -> \"D\" [ EType=\"Fall\" ];",- " \"C\" -> \"E\" [ EType=\"Fall\" ];",- " \"D\" -> \"E\" [ EType=\"Call\" ];",- "}");+ assertOutput(lines, "digraph Ghidra {",+ " \"A\" [ Type=\"X\" Inverted=\"true\" label=\"A\" ];",+ " \"B\" [ Type=\"Y\" label=\"B\" ];", " \"C\" [ Type=\"Y\" label=\"C\" ];",+ " \"D\" [ Type=\"Y\" label=\"D\" ];", " \"E\" [ Type=\"Z\" label=\"E\" ];",+ " \"F\" [ Type=\"T\" label=\"F\" ];", " \"A\" -> \"B\" [ EType=\"Fall\" ];",+ " \"B\" -> \"C\" [ EType=\"JMP\" ];", " \"B\" -> \"D\" [ EType=\"Fall\" ];",+ " \"C\" -> \"E\" [ EType=\"Fall\" ];", " \"D\" -> \"E\" [ EType=\"Call\" ];", "}");}@@ -112,68 +82,16 @@ public class AttributedGraphExportersTest extends AbstractGenericTest {public void testGraphML() throws Exception {GmlGraphExporter exporter = new GmlGraphExporter();List<String> lines = doExport(exporter, graph);- assertOutput(lines,- "Creator \"JGraphT GML Exporter\"",- "Version 1",- "graph",- "[",- " label \"\"",- " directed 1",- " node",- " [",- " id A",- " ]",- " node",- " [",- " id B",- " ]",- " node",- " [",- " id C",- " ]",- " node",- " [",- " id D",- " ]",- " node",- " [",- " id E",- " ]",- " node",- " [",- " id F",- " ]",- " edge",- " [",- " id 1",- " source A",- " target B",- " ]",- " edge",- " [",- " id 2",- " source B",- " target C",- " ]",- " edge",- " [",- " id 3",- " source B",- " target D",- " ]",- " edge",- " [",- " id 4",- " source C",- " target E",- " ]",- " edge",- " [",- " id 5",- " source D",- " target E",- " ]",- "]");+ assertOutput(lines, "Creator \"JGraphT GML Exporter\"", "Version 1", "graph", "[",+ " label \"\"", " directed 1", " node", " [", " id A", " ]", " node",+ " [", " id B", " ]", " node", " [", " id C", " ]", " node",+ " [", " id D", " ]", " node", " [", " id E", " ]", " node",+ " [", " id F", " ]", " edge", " [", " id 1", " source A",+ " target B", " ]", " edge", " [", " id 2", " source B",+ " target C", " ]", " edge", " [", " id 3", " source B",+ " target D", " ]", " edge", " [", " id 4", " source C",+ " target E", " ]", " edge", " [", " id 5", " source D",+ " target E", " ]", "]");}@Test@@ -181,47 +99,35 @@ public class AttributedGraphExportersTest extends AbstractGenericTest {GraphMlGraphExporter exporter = new GraphMlGraphExporter();List<String> lines = doExport(exporter, graph);assertOutput(lines,- "<?xml version=\"1.0\" encoding=\"UTF-8\"?><graphml xmlns=\"http://graphml.graphdrawing.org/xmlns\" xsi:schemaLocation=\"http://graphml.graphdrawing.org/xmlns http://graphml.graphdrawing.org/xmlns/1.0/graphml.xsd\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">",+ "<?xml version=\"1.0\" encoding=\"UTF-8\"?><graphml xmlns=\"http://graphml.graphdrawing.org/xmlns\" xsi:schemaLocation=\"http://graphml.graphdrawing.org/xmlns http://graphml.graphdrawing.org/xmlns/1.0/graphml.xsd\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">"," <key id=\"key11\" for=\"node\" attr.name=\"Type\" attr.type=\"string\"/>",- " <key id=\"key1\" for=\"node\" attr.name=\"Inverted\" attr.type=\"string\"/>",+ " <key id=\"key1\" for=\"node\" attr.name=\"Inverted\" attr.type=\"string\"/>"," <key id=\"key12\" for=\"node\" attr.name=\"Name\" attr.type=\"string\"/>"," <key id=\"key17\" for=\"edge\" attr.name=\"EType\" attr.type=\"string\"/>",- " <graph edgedefault=\"directed\">",- " <node id=\"A\">",+ " <graph edgedefault=\"directed\">", " <node id=\"A\">"," <data key=\"key11\">X</data>",- " <data key=\"key1\">true</data>",- " <data key=\"key12\">A</data>",- " </node>",- " <node id=\"B\">",- " <data key=\"key11\">Y</data>", " <data key=\"key12\">B</data>",- " </node>",- " <node id=\"C\">",- " <data key=\"key11\">Y</data>", " <data key=\"key12\">C</data>",- " </node>",- " <node id=\"D\">",- " <data key=\"key11\">Y</data>", " <data key=\"key12\">D</data>",- " </node>",- " <node id=\"E\">",- " <data key=\"key11\">Z</data>", " <data key=\"key12\">E</data>",- " </node>", " <node id=\"F\">",- " <data key=\"key11\">T</data>", " <data key=\"key12\">F</data>",- " </node>",- " <edge id=\"1\" source=\"A\" target=\"B\">",- " <data key=\"key17\">Fall</data>",- " </edge>",- " <edge id=\"2\" source=\"B\" target=\"C\">",- " <data key=\"key17\">JMP</data>",- " </edge>",- " <edge id=\"3\" source=\"B\" target=\"D\">",- " <data key=\"key17\">Fall</data>",- " </edge>",- " <edge id=\"4\" source=\"C\" target=\"E\">",- " <data key=\"key17\">Fall</data>",- " </edge>",- " <edge id=\"5\" source=\"D\" target=\"E\">",- " <data key=\"key17\">Call</data>",- " </edge>",- " </graph>",+ " <data key=\"key1\">true</data>",+ " <data key=\"key12\">A</data>", " </node>",+ " <node id=\"B\">", " <data key=\"key11\">Y</data>",+ " <data key=\"key12\">B</data>", " </node>",+ " <node id=\"C\">", " <data key=\"key11\">Y</data>",+ " <data key=\"key12\">C</data>", " </node>",+ " <node id=\"D\">", " <data key=\"key11\">Y</data>",+ " <data key=\"key12\">D</data>", " </node>",+ " <node id=\"E\">", " <data key=\"key11\">Z</data>",+ " <data key=\"key12\">E</data>", " </node>",+ " <node id=\"F\">", " <data key=\"key11\">T</data>",+ " <data key=\"key12\">F</data>", " </node>",+ " <edge id=\"1\" source=\"A\" target=\"B\">",+ " <data key=\"key17\">Fall</data>", " </edge>",+ " <edge id=\"2\" source=\"B\" target=\"C\">",+ " <data key=\"key17\">JMP</data>", " </edge>",+ " <edge id=\"3\" source=\"B\" target=\"D\">",+ " <data key=\"key17\">Fall</data>", " </edge>",+ " <edge id=\"4\" source=\"C\" target=\"E\">",+ " <data key=\"key17\">Fall</data>", " </edge>",+ " <edge id=\"5\" source=\"D\" target=\"E\">",+ " <data key=\"key17\">Call</data>", " </edge>", " </graph>","</graphml>");}@@ -250,30 +156,16 @@ public class AttributedGraphExportersTest extends AbstractGenericTest {public void testMATRIX() throws Exception {MatrixGraphExporter exporter = new MatrixGraphExporter();List<String> lines = doExport(exporter, graph);- assertOutput(lines,- "A B 1",- "B C 1",- "B D 1",- "C E 1",- "D E 1");+ assertOutput(lines, "A B 1", "B C 1", "B D 1", "C E 1", "D E 1");}@Testpublic void testVISIO() throws Exception {VisioGraphExporter exporter = new VisioGraphExporter();List<String> lines = doExport(exporter, graph);- assertOutput(lines,- "Shape,A,,A",- "Shape,B,,B",- "Shape,C,,C",- "Shape,D,,D",- "Shape,E,,E",- "Shape,F,,F",- "Link,A-->B,,,A,B",- "Link,B-->C,,,B,C",- "Link,B-->D,,,B,D",- "Link,C-->E,,,C,E",- "Link,D-->E,,,D,E");+ assertOutput(lines, "Shape,A,,A", "Shape,B,,B", "Shape,C,,C", "Shape,D,,D", "Shape,E,,E",+ "Shape,F,,F", "Link,A-->B,,,A,B", "Link,B-->C,,,B,C", "Link,B-->D,,,B,D",+ "Link,C-->E,,,C,E", "Link,D-->E,,,D,E");}private AttributedGraph createGraph() {@@ -285,7 +177,7 @@ public class AttributedGraphExportersTest extends AbstractGenericTest {AttributedVertex vE = g.addVertex("E");AttributedVertex vF = g.addVertex("F");- // A+ // A// |// B// / \@@ -329,12 +221,10 @@ public class AttributedGraphExportersTest extends AbstractGenericTest {for (int i = 0; i < expected.length; i++) {if (i >= actual.size()) {fail(testName.getMethodName() + ": output line " + (i + 1) + ": expected :\"" +- expected[i] +- "\", got: EOF");+ expected[i] + "\", got: EOF");}assertEquals(testName.getMethodName() + ": output line " + (i + 1) + ": ",- expected[i],- actual.get(i));+ expected[i], actual.get(i));}}catch (Throwable e) {diff --git a/Ghidra/Features/GraphServices/src/test/java/ghidra/graph/export/GraphExportTest.java b/Ghidra/Features/GraphServices/src/test/java/ghidra/graph/export/GraphExportTest.javaindex 0a8408a036..e452e8fb88 100644--- a/Ghidra/Features/GraphServices/src/test/java/ghidra/graph/export/GraphExportTest.java+++ b/Ghidra/Features/GraphServices/src/test/java/ghidra/graph/export/GraphExportTest.java@@ -69,7 +69,9 @@ public class GraphExportTest extends AbstractGhidraHeadedIntegrationTest {private void setGraph(AttributedGraph graph, GraphDisplay exporter) {try {- exporter.setGraph(graph, "Test", false, TaskMonitor.DUMMY);+ GraphDisplayOptions options =+ new GraphDisplayOptionsBuilder(graph.getGraphType()).build();+ exporter.setGraph(graph, options, "Test", false, TaskMonitor.DUMMY);}catch (CancelledException e) {// can't happen with dummy@@ -85,109 +87,41 @@ public class GraphExportTest extends AbstractGhidraHeadedIntegrationTest {public void testCSV() throws Exception {List<String> lines = processDialog(new CsvEdgeListGraphExporter());- assertOutput(lines,- "A,B",- "B,C",- "B,D",- "C,E",- "D,E");+ assertOutput(lines, "A,B", "B,C", "B,D", "C,E", "D,E");}@Testpublic void testDIMACS() throws Exception {List<String> lines = processDialog(new DimacsGraphExporter());- assertOutput(lines,- "c",- "c SOURCE: Generated using the JGraphT library",- "c",- "p edge 5 5",- "e A B",- "e B C",- "e B D",- "e C E",- "e D E");+ assertOutput(lines, "c", "c SOURCE: Generated using the JGraphT library", "c", "p edge 5 5",+ "e A B", "e B C", "e B D", "e C E", "e D E");}@Testpublic void testDOT() throws Exception {List<String> lines = processDialog(new DotGraphExporter());- assertOutput(lines,- "digraph Ghidra {",- " \"A\" [ Type=\"X\" Inverted=\"true\" Name=\"A\" ];",- " \"B\" [ Type=\"Y\" Name=\"B\" ];",- " \"C\" [ Type=\"Y\" Name=\"C\" ];",- " \"D\" [ Type=\"Y\" Name=\"D\" ];",- " \"E\" [ Type=\"Z\" Name=\"E\" ];",- " \"A\" -> \"B\" [ EType=\"Fall\" ];",- " \"B\" -> \"C\" [ EType=\"JMP\" ];",- " \"B\" -> \"D\" [ EType=\"Fall\" ];",- " \"C\" -> \"E\" [ EType=\"Fall\" ];",- " \"D\" -> \"E\" [ EType=\"Call\" ];",- "}");+ assertOutput(lines, "digraph Ghidra {",+ " \"A\" [ Type=\"X\" Inverted=\"true\" label=\"A\" ];",+ " \"B\" [ Type=\"Y\" label=\"B\" ];", " \"C\" [ Type=\"Y\" label=\"C\" ];",+ " \"D\" [ Type=\"Y\" label=\"D\" ];", " \"E\" [ Type=\"Z\" label=\"E\" ];",+ " \"A\" -> \"B\" [ EType=\"Fall\" ];", " \"B\" -> \"C\" [ EType=\"JMP\" ];",+ " \"B\" -> \"D\" [ EType=\"Fall\" ];", " \"C\" -> \"E\" [ EType=\"Fall\" ];",+ " \"D\" -> \"E\" [ EType=\"Call\" ];", "}");}@Testpublic void testGML() throws Exception {List<String> lines = processDialog(new GmlGraphExporter());- assertOutput(lines,- "Creator \"JGraphT GML Exporter\"",- "Version 1",- "graph",- "[",- " label \"\"",- " directed 1",- " node",- " [",- " id A",- " ]",- " node",- " [",- " id B",- " ]",- " node",- " [",- " id C",- " ]",- " node",- " [",- " id D",- " ]",- " node",- " [",- " id E",- " ]",- " edge",- " [",- " id 1",- " source A",- " target B",- " ]",- " edge",- " [",- " id 2",- " source B",- " target C",- " ]",- " edge",- " [",- " id 3",- " source B",- " target D",- " ]",- " edge",- " [",- " id 4",- " source C",- " target E",- " ]",- " edge",- " [",- " id 5",- " source D",- " target E",- " ]",- "]");+ assertOutput(lines, "Creator \"JGraphT GML Exporter\"", "Version 1", "graph", "[",+ " label \"\"", " directed 1", " node", " [", " id A", " ]", " node",+ " [", " id B", " ]", " node", " [", " id C", " ]", " node",+ " [", " id D", " ]", " node", " [", " id E", " ]", " edge",+ " [", " id 1", " source A", " target B", " ]", " edge",+ " [", " id 2", " source B", " target C", " ]", " edge",+ " [", " id 3", " source B", " target D", " ]", " edge",+ " [", " id 4", " source C", " target E", " ]", " edge",+ " [", " id 5", " source D", " target E", " ]", "]");}@Test@@ -195,49 +129,49 @@ public class GraphExportTest extends AbstractGhidraHeadedIntegrationTest {List<String> lines = processDialog(new GraphMlGraphExporter());// @formatter:offassertOutput(lines,- "<?xml version=\"1.0\" encoding=\"UTF-8\"?><graphml xmlns=\"http://graphml.graphdrawing.org/xmlns\" xsi:schemaLocation=\"http://graphml.graphdrawing.org/xmlns http://graphml.graphdrawing.org/xmlns/1.0/graphml.xsd\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">",- " <key id=\"key9\" for=\"node\" attr.name=\"Type\" attr.type=\"string\"/>",- " <key id=\"key1\" for=\"node\" attr.name=\"Inverted\" attr.type=\"string\"/>",- " <key id=\"key10\" for=\"node\" attr.name=\"Name\" attr.type=\"string\"/>",- " <key id=\"key15\" for=\"edge\" attr.name=\"EType\" attr.type=\"string\"/>",- " <graph edgedefault=\"directed\">",- " <node id=\"A\">",- " <data key=\"key9\">X</data>",- " <data key=\"key1\">true</data>",- " <data key=\"key10\">A</data>",- " </node>",- " <node id=\"B\">",- " <data key=\"key9\">Y</data>",- " <data key=\"key10\">B</data>",- " </node>",- " <node id=\"C\">",- " <data key=\"key9\">Y</data>",- " <data key=\"key10\">C</data>",- " </node>",- " <node id=\"D\">",- " <data key=\"key9\">Y</data>",- " <data key=\"key10\">D</data>",- " </node>",- " <node id=\"E\">",- " <data key=\"key9\">Z</data>",- " <data key=\"key10\">E</data>",- " </node>",- " <edge id=\"1\" source=\"A\" target=\"B\">",- " <data key=\"key15\">Fall</data>",- " </edge>",- " <edge id=\"2\" source=\"B\" target=\"C\">",- " <data key=\"key15\">JMP</data>",- " </edge>",- " <edge id=\"3\" source=\"B\" target=\"D\">",- " <data key=\"key15\">Fall</data>",- " </edge>",- " <edge id=\"4\" source=\"C\" target=\"E\">",- " <data key=\"key15\">Fall</data>",- " </edge>",- " <edge id=\"5\" source=\"D\" target=\"E\">",- " <data key=\"key15\">Call</data>",- " </edge>",- " </graph>",+ "<?xml version=\"1.0\" encoding=\"UTF-8\"?><graphml xmlns=\"http://graphml.graphdrawing.org/xmlns\" xsi:schemaLocation=\"http://graphml.graphdrawing.org/xmlns http://graphml.graphdrawing.org/xmlns/1.0/graphml.xsd\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">",+ " <key id=\"key9\" for=\"node\" attr.name=\"Type\" attr.type=\"string\"/>",+ " <key id=\"key1\" for=\"node\" attr.name=\"Inverted\" attr.type=\"string\"/>",+ " <key id=\"key10\" for=\"node\" attr.name=\"Name\" attr.type=\"string\"/>",+ " <key id=\"key15\" for=\"edge\" attr.name=\"EType\" attr.type=\"string\"/>",+ " <graph edgedefault=\"directed\">",+ " <node id=\"A\">",+ " <data key=\"key9\">X</data>",+ " <data key=\"key1\">true</data>",+ " <data key=\"key10\">A</data>",+ " </node>",+ " <node id=\"B\">",+ " <data key=\"key9\">Y</data>",+ " <data key=\"key10\">B</data>",+ " </node>",+ " <node id=\"C\">",+ " <data key=\"key9\">Y</data>",+ " <data key=\"key10\">C</data>",+ " </node>",+ " <node id=\"D\">",+ " <data key=\"key9\">Y</data>",+ " <data key=\"key10\">D</data>",+ " </node>",+ " <node id=\"E\">",+ " <data key=\"key9\">Z</data>",+ " <data key=\"key10\">E</data>",+ " </node>",+ " <edge id=\"1\" source=\"A\" target=\"B\">",+ " <data key=\"key15\">Fall</data>",+ " </edge>",+ " <edge id=\"2\" source=\"B\" target=\"C\">",+ " <data key=\"key15\">JMP</data>",+ " </edge>",+ " <edge id=\"3\" source=\"B\" target=\"D\">",+ " <data key=\"key15\">Fall</data>",+ " </edge>",+ " <edge id=\"4\" source=\"C\" target=\"E\">",+ " <data key=\"key15\">Fall</data>",+ " </edge>",+ " <edge id=\"5\" source=\"D\" target=\"E\">",+ " <data key=\"key15\">Call</data>",+ " </edge>",+ " </graph>","</graphml>");// @formatter:on}@@ -263,27 +197,14 @@ public class GraphExportTest extends AbstractGhidraHeadedIntegrationTest {@Testpublic void testMATRIX() throws Exception {List<String> lines = processDialog(new MatrixGraphExporter());- assertOutput(lines,- "A B 1",- "B C 1",- "B D 1",- "C E 1",- "D E 1");+ assertOutput(lines, "A B 1", "B C 1", "B D 1", "C E 1", "D E 1");}@Testpublic void testVISIO() throws Exception {List<String> lines = processDialog(new VisioGraphExporter());- assertOutput(lines,- "Shape,A,,A",- "Shape,B,,B",- "Shape,C,,C",- "Shape,D,,D",- "Shape,E,,E",- "Link,A-->B,,,A,B",- "Link,B-->C,,,B,C",- "Link,B-->D,,,B,D",- "Link,C-->E,,,C,E",+ assertOutput(lines, "Shape,A,,A", "Shape,B,,B", "Shape,C,,C", "Shape,D,,D", "Shape,E,,E",+ "Link,A-->B,,,A,B", "Link,B-->C,,,B,C", "Link,B-->D,,,B,D", "Link,C-->E,,,C,E","Link,D-->E,,,D,E");}@@ -300,8 +221,7 @@ public class GraphExportTest extends AbstractGhidraHeadedIntegrationTest {private List<String> processDialog(AttributedGraphExporter exporter) throws IOException {dialog = getDialogComponent(GraphExporterDialog.class);- String filePath =- createTempFilePath("GraphExportTest", "." + exporter.getFileExtension());+ String filePath = createTempFilePath("GraphExportTest", "." + exporter.getFileExtension());runSwing(() -> dialog.setOutputFile(filePath));dialog.setExporter(exporter);pressButtonByText(dialog, "OK");@@ -360,12 +280,10 @@ public class GraphExportTest extends AbstractGhidraHeadedIntegrationTest {for (int i = 0; i < expected.length; i++) {if (i >= actual.size()) {fail(testName.getMethodName() + ": output line " + (i + 1) + ": expected :\"" +- expected[i] +- "\", got: EOF");+ expected[i] + "\", got: EOF");}assertEquals(testName.getMethodName() + ": output line " + (i + 1) + ": ",- expected[i],- actual.get(i));+ expected[i], actual.get(i));}}catch (Throwable e) {