File tree 2 files changed +8
-5
lines changed
java/io/serverlessworkflow/diagram/test
resources/templates/plantuml
2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -39,12 +39,15 @@ public void testSpecExamplesParsing(String workflowLocation) throws Exception {
39
39
assertNotNull (workflow .getStates ());
40
40
41
41
WorkflowDiagram workflowDiagram =
42
- new WorkflowDiagramImpl ().setWorkflow (workflow ).setTemplate ("custom-template" );
42
+ new WorkflowDiagramImpl ()
43
+ .showLegend (true )
44
+ .setWorkflow (workflow )
45
+ .setTemplate ("custom-template" );
43
46
44
47
String diagramSVG = workflowDiagram .getSvgDiagram ();
45
48
46
49
Assertions .assertNotNull (diagramSVG );
47
- // custom template uses #0000FF as start node color
48
- Assertions .assertTrue (diagramSVG .contains ("#0000FF " ));
50
+ // custom template uses customcolor in the legend
51
+ Assertions .assertTrue (diagramSVG .contains ("customcolor " ));
49
52
}
50
53
}
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ skinparam backgroundColor White
3
3
skinparam legendBackgroundColor White
4
4
skinparam legendBorderColor White
5
5
skinparam state {
6
- StartColor #0000FF
6
+ StartColor Green
7
7
EndColor Orange
8
8
BackgroundColor GhostWhite
9
9
BackgroundColor<< workflow >> White
@@ -39,7 +39,7 @@ state "[(${diagram.title})]" as workflow << workflow >> {
39
39
legend center
40
40
State Types and Border Colors:
41
41
| Event | Operation | Switch | Sleep | Parallel | Inject | ForEach | CallBack |
42
- |<#7fe5f0>|<#bada55>|<#92a0f2>|<#b83b5e>|<#6a2c70>|<#1e5f74>|<#931a25>|<#ffcb8e >|
42
+ |<#7fe5f0>|<#bada55>|<#92a0f2>|<#b83b5e>|<#6a2c70>|<#1e5f74>|<#931a25>|<customcolor >|
43
43
endlegend
44
44
[/]
45
45
You can’t perform that action at this time.
0 commit comments