DotFactory.DOT_SHAPE_BOX, AbstractGraphFormatter.getDotRepresentation(node.getColor()), // framecolor
AbstractGraphFormatter.getDotRepresentation(vertex.getColor()), // framecolor
DotFactory.DOT_SHAPE_OVAL, AbstractGraphFormatter.getDotRepresentation(node.getColor()), // framecolor
AbstractGraphFormatter.getDotRepresentation(vertex.getColor()), // framecolor
DotFactory.DOT_SHAPE_OVAL, AbstractGraphFormatter.getDotRepresentation(node.getColor()), // framecolor
/** * This method tests whether the trace coloring works or not. It uses the nodes resulting from the test setup and checks them against the expected colors. * * @throws AnalysisConfigurationException * If the assembled test setup is somehow invalid. */ @Test public void testTraceColoring() throws AnalysisConfigurationException { testSetup.run(); final GraphReceiverPlugin graphReceiver = testSetup.getResultCollectionPlugin(); // Check number of produced graphs Assert.assertEquals(1, graphReceiver.getNumberOfReceivedGraphs()); // Prepare the produced graph final ComponentAllocationDependencyGraph graph = graphReceiver.<ComponentAllocationDependencyGraph>getFirstGraph(); // NOCS (generic) final ConcurrentMap<String, DependencyGraphNode<AllocationComponent>> nodeMap = DependencyGraphTestUtil.createNodeLookupTable(graph); final DependencyGraphNode<AllocationComponent> component1Node = nodeMap.get(EXPECTED_ALLOCATION_COMPONENT_NAME_1); final DependencyGraphNode<AllocationComponent> component2Node = nodeMap.get(EXPECTED_ALLOCATION_COMPONENT_NAME_2); final DependencyGraphNode<AllocationComponent> component3Node = nodeMap.get(EXPECTED_ALLOCATION_COMPONENT_NAME_3); // Check the node colors Assert.assertEquals(HIGHLIGHT_COLOR, component1Node.getColor()); Assert.assertEquals(COLLISION_COLOR, component2Node.getColor()); Assert.assertEquals(DEFAULT_COLOR, component3Node.getColor()); } }