DotExportStyles { public static String getNodeStyle(Node node) { return Boolean.TRUE.equals(node.getProperty(CycleFinder.IN_CYCLE)) ? CYCLE_STYLE : DEFAULT_STYLE; } 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 testGetNodeStyle() { Node node = new Node("my-node"); assertThat(DotExportStyles.getNodeStyle(node), is("color = black")); node.setProperty(CycleFinder.IN_CYCLE, true); assertThat(DotExportStyles.getNodeStyle(node), is("color = red, penwidth = 3.0")); }