DotExportStyles { public static String getEdgeStyle(Dependency rel) { StringTemplate st = new StringTemplate("color = \"$color$\", fontcolor = \"$color$\", penwidth = $width$, style = $style$"); EdgeStyle edgeStyle = GraphExportStyles.getEdgeStyle(rel); st.setAttribute("color", edgeStyle.getColor()); st.setAttribute("width", edgeStyle.getWidth()); st.setAttribute("style", edgeStyle.getDotLineStyle()); return st.toString(); } private  DotExportStyles(); static String getNodeStyle(Node node); static String getNodeUrl(String node); static String getEdgeStyle(Dependency rel); static double getRankSep(int noNodes);  }
@Test public void testGetEdgeStyle() { Dependency dependency = mock(Dependency.class); when(dependency.getDependencyType()).thenReturn(DependencyType.CREATE); assertThat(DotExportStyles.getEdgeStyle(dependency), is("color = \"#b2182b\", fontcolor = \"#b2182b\", penwidth = 3.0, style = solid")); }