Skip to content

Commit 33b2e4e

Browse files
committed
small change to diagram custom template test
Signed-off-by: Tihomir Surdilovic <[email protected]>
1 parent c1c25fd commit 33b2e4e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

diagram/src/test/java/io/serverlessworkflow/diagram/test/CustomTemplateWorkflowDiagramTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,6 @@ public void testSpecExamplesParsing(String workflowLocation) throws Exception {
4545

4646
Assertions.assertNotNull(diagramSVG);
4747
// custom template uses #0000FF as start node color
48-
Assertions.assertTrue(diagramSVG.contains("#0000FF"));
48+
Assertions.assertTrue(diagramSVG.contains("customcolor"));
4949
}
5050
}

diagram/src/test/resources/templates/plantuml/custom-template.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ skinparam backgroundColor White
33
skinparam legendBackgroundColor White
44
skinparam legendBorderColor White
55
skinparam state {
6-
StartColor #0000FF
6+
StartColor Green
77
EndColor Orange
88
BackgroundColor GhostWhite
99
BackgroundColor<< workflow >> White
@@ -39,7 +39,7 @@ state "[(${diagram.title})]" as workflow << workflow >> {
3939
legend center
4040
State Types and Border Colors:
4141
| 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>|
4343
endlegend
4444
[/]
4545

0 commit comments

Comments
 (0)