Skip to content

Commit

Permalink
#27 Making unwanted relationships better visible in DOT file
Browse files Browse the repository at this point in the history
  • Loading branch information
gunnarmorling committed Jan 28, 2019
1 parent 7426c84 commit c995182
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ private void addSubGraph(StringBuilder sb, SortedMap<String, SortedSet<String>>

subGraphBuilder.append(" subgraph " + kind + " {").append(System.lineSeparator());
if (color != null) {
subGraphBuilder.append(" edge [color=" + color + "]").append(System.lineSeparator());
subGraphBuilder.append(" edge [color=" + color + ", penwidth=2]").append(System.lineSeparator());
}
for (Entry<String, SortedSet<String>> reads : readsOfKind.entrySet()) {
for (String read : reads.getValue()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public void shouldVisualizeCyclesInArchitectureModel() throws Exception {
" \"foo\";",
" \"qux\";",
" subgraph Cycle {",
" edge [color=purple]",
" edge [color=purple, penwidth=2]",
" \"abc\" -> \"def\";",
" \"bar\" -> \"baz\";",
" \"bar\" -> \"qux\";",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public void shouldGenerateDotFileForAnalyse() throws Exception {
" \"org.moditect.deptective.plugintest.visualize.foo\" -> \"org.moditect.deptective.plugintest.visualize.qux\";",
" }",
" subgraph Cycle {",
" edge [color=purple]",
" edge [color=purple, penwidth=2]",
" \"org.moditect.deptective.plugintest.visualize.bar\" -> \"org.moditect.deptective.plugintest.visualize.qux\";",
" \"org.moditect.deptective.plugintest.visualize.qux\" -> \"org.moditect.deptective.plugintest.visualize.bar\";",
" }",
Expand Down Expand Up @@ -123,11 +123,11 @@ public void shouldGenerateDotFileForValidate() throws Exception {
" \"org.moditect.deptective.plugintest.visualize.foo\" -> \"org.moditect.deptective.plugintest.visualize.qux\";",
" }",
" subgraph Disallowed {",
" edge [color=red]",
" edge [color=red, penwidth=2]",
" \"org.moditect.deptective.plugintest.visualize.foo\" -> \"org.moditect.deptective.plugintest.visualize.bar\";",
" }",
" subgraph Unknown {",
" edge [color=yellow]",
" edge [color=yellow, penwidth=2]",
" \"org.moditect.deptective.plugintest.visualize.qux\" -> \"org.moditect.deptective.plugintest.visualize.bar\";",
" }",
"}"
Expand Down

0 comments on commit c995182

Please sign in to comment.