Skip to content

small test change for diagram template #176

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 11, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,15 @@ public void testSpecExamplesParsing(String workflowLocation) throws Exception {
assertNotNull(workflow.getStates());

WorkflowDiagram workflowDiagram =
new WorkflowDiagramImpl().setWorkflow(workflow).setTemplate("custom-template");
new WorkflowDiagramImpl()
.showLegend(true)
.setWorkflow(workflow)
.setTemplate("custom-template");

String diagramSVG = workflowDiagram.getSvgDiagram();

Assertions.assertNotNull(diagramSVG);
// custom template uses #0000FF as start node color
Assertions.assertTrue(diagramSVG.contains("#0000FF"));
// custom template uses customcolor in the legend
Assertions.assertTrue(diagramSVG.contains("customcolor"));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ skinparam backgroundColor White
skinparam legendBackgroundColor White
skinparam legendBorderColor White
skinparam state {
StartColor #0000FF
StartColor Green
EndColor Orange
BackgroundColor GhostWhite
BackgroundColor<< workflow >> White
Expand Down Expand Up @@ -39,7 +39,7 @@ state "[(${diagram.title})]" as workflow << workflow >> {
legend center
State Types and Border Colors:
| Event | Operation | Switch | Sleep | Parallel | Inject | ForEach | CallBack |
|<#7fe5f0>|<#bada55>|<#92a0f2>|<#b83b5e>|<#6a2c70>|<#1e5f74>|<#931a25>|<#ffcb8e>|
|<#7fe5f0>|<#bada55>|<#92a0f2>|<#b83b5e>|<#6a2c70>|<#1e5f74>|<#931a25>|<customcolor>|
endlegend
[/]

Expand Down