Ghidra is a software reverse engineering (SRE) framework
fixed junit tests
ghidravore5660799298d1
diff --git a/Ghidra/Framework/Graph/src/main/java/ghidra/service/graph/AttributedGraph.java b/Ghidra/Framework/Graph/src/main/java/ghidra/service/graph/AttributedGraph.javaindex 977c205ae1..8e59e08090 100644--- a/Ghidra/Framework/Graph/src/main/java/ghidra/service/graph/AttributedGraph.java+++ b/Ghidra/Framework/Graph/src/main/java/ghidra/service/graph/AttributedGraph.java@@ -80,6 +80,7 @@ public class AttributedGraph extends AbstractBaseGraph<AttributedVertex, Attribuif (vertexMap.containsKey(id)) {AttributedVertex vertex = vertexMap.get(id);vertex.setName(name);+ return vertex;}AttributedVertex newVertex = new AttributedVertex(id, name);addVertex(newVertex);diff --git a/Ghidra/Framework/Graph/src/test/java/ghidra/service/graph/AttributedGraphTest.java b/Ghidra/Framework/Graph/src/test/java/ghidra/service/graph/AttributedGraphTest.javaindex 56719b7fe9..8ead376d3d 100644--- a/Ghidra/Framework/Graph/src/test/java/ghidra/service/graph/AttributedGraphTest.java+++ b/Ghidra/Framework/Graph/src/test/java/ghidra/service/graph/AttributedGraphTest.java@@ -88,7 +88,7 @@ public class AttributedGraphTest {assertEquals(1, graph.getVertexCount());assertTrue(v1 == v2);- assertEquals("Bob", v2.getName());+ assertEquals("Joe", v2.getName());}@Test