public void openCloseClassPlanetNode() {
}
private void checkClassPlanet() {
DependencyGraph graph = fGraphPanel.getGraph();
org.evolizer.famix.model.entities.FamixPackage thebigvoidPackage = new org.evolizer.famix.model.entities.FamixPackage("thebigvoid", null);
Assert.assertTrue("Graph must contain FAMIX entity " + thebigvoidPackage.getUniqueName(), graph.contains(thebigvoidPackage));
org.evolizer.famix.model.entities.FamixClass planetClass = new org.evolizer.famix.model.entities.FamixClass("thebigvoid.Planet", null);
Assert.assertTrue("Graph must contain FAMIX entity " + planetClass.getUniqueName(), graph.contains(planetClass));
org.evolizer.famix.model.entities.FamixMethod planetContstructor = new org.evolizer.famix.model.entities.FamixMethod("thebigvoid.Planet.<init>(java.lang.String,java.awt.Color)", null);
Assert.assertTrue("Graph must contain FAMIX entity " + planetContstructor.getUniqueName(), graph.contains(planetContstructor));
org.evolizer.famix.model.entities.FamixMethod getColor = new org.evolizer.famix.model.entities.FamixMethod("thebigvoid.Planet.getColor()", null);
Assert.assertTrue("Graph must contain FAMIX entity " + getColor.getUniqueName(), graph.contains(getColor));
org.evolizer.famix.model.entities.FamixAttribute color = new org.evolizer.famix.model.entities.FamixAttribute("thebigvoid.Planet.color", null);
Assert.assertTrue("Graph must contain FAMIX entity " + color.getUniqueName(), graph.contains(color));
Node thebigvoidPackageNode = graph.getNode(thebigvoidPackage);
Node planetClassNode = graph.getNode(planetClass);
Node planetConstructorNode = graph.getNode(planetContstructor);
Node getColorNode = graph.getNode(getColor);
Node colorNode = graph.getNode(color);
Assert.assertNull("Parent node of " + thebigvoidPackageNode + " has to be null", graph.getHierarchyManager().getParentNode(thebigvoidPackageNode));
Assert.assertEquals("Parent node of " + planetClassNode + " has to be " + thebigvoidPackageNode, thebigvoidPackageNode, graph.getHierarchyManager().getParentNode(planetClassNode));
Assert.assertEquals("Parent node of " + planetConstructorNode + " has to be " + planetClassNode, planetClassNode, graph.getHierarchyManager().getParentNode(planetConstructorNode));
Assert.assertEquals("Parent node of " + getColorNode + " has to be " + planetClassNode, planetClassNode, graph.getHierarchyManager().getParentNode(getColorNode));
Assert.assertEquals("Parent node of " + colorNode + " has to be " + planetClassNode, planetClassNode, graph.getHierarchyManager().getParentNode(colorNode));
Assert.assertEquals(thebigvoidPackageNode + " does have 0 edges", 0, thebigvoidPackageNode.edges().size());
Assert.assertEquals(planetClassNode + " does have 0 edges", 0, planetClassNode.edges().size());
Assert.assertNotNull("There should be an edge between " + getColorNode + " and " + colorNode, getColorNode.getEdge(colorNode));
Assert.assertNotNull("There should be an edge between " + planetConstructorNode + " and " + colorNode, planetConstructorNode.getEdge(colorNode));