Restore fixed test failure due to missing skin

This commit is contained in:
Arnaud Roques 2021-09-19 22:50:22 +02:00
parent a6f3d162a6
commit 5ed7094e1f
3 changed files with 412 additions and 64 deletions

View File

@ -15,89 +15,86 @@ root {
document {
BackGroundColor White
header {
HorizontalAlignment right
FontSize 10
FontColor #888888
BackGroundColor none
LineColor none
}
title {
HorizontalAlignment center
FontSize 14
FontStyle bold
Padding 5
Margin 5
LineColor none
BackGroundColor none
}
footer {
HorizontalAlignment center
FontSize 10
FontColor #888888
BackGroundColor none
LineColor none
}
legend {
LineColor black
BackGroundColor #DDDDDD
FontSize 14
RoundCorner 15
Padding 6
Margin 8
}
caption {
HorizontalAlignment center
FontSize 14
Padding 0
Margin 1
LineColor none
BackGroundColor none
}
}
stereotype {
FontStyle italic
}
title {
HorizontalAlignment center
FontSize 14
FontStyle bold
Padding 5
Margin 5
LineColor none
BackGroundColor none
}
header {
HorizontalAlignment right
FontSize 10
FontColor #888888
BackGroundColor none
LineColor none
}
footer {
HorizontalAlignment center
FontSize 10
FontColor #888888
BackGroundColor none
LineColor none
}
legend {
LineColor black
BackGroundColor #DDDDDD
FontSize 14
RoundCorner 15
Padding 6
Margin 8
}
caption {
HorizontalAlignment center
FontSize 14
Padding 0
Margin 1
LineColor none
BackGroundColor none
}
element {
Shadowing 4.0
}
group {
BackGroundColor white
}
sequenceDiagram {
group {
LineColor black
LineThickness 2.0
FontSize 11
FontStyle bold
}
groupHeader {
BackGroundColor #EEEEEE
LineColor black
FontSize 13
FontStyle bold
}
lifeLine {
BackGroundColor white
}
}
classDiagram {
}
group {
BackGroundColor white
LineColor black
LineThickness 2.0
FontSize 11
FontStyle bold
}
groupHeader {
BackGroundColor #EEEEEE
LineColor black
FontSize 13
FontStyle bold
}
lifeLine {
BackGroundColor white
}
destroy {
}
@ -369,4 +366,7 @@ nwdiagDiagram {
FontSize 12
BackGroundColor #ddd
}
arrow {
FontSize 11
}
}

View File

@ -0,0 +1,60 @@
package nonreg.simple;
import java.io.IOException;
import org.junit.jupiter.api.Test;
import nonreg.BasicTest;
/*
Test diagram MUST be put between triple quotes
"""
@startuml
title title
legend legend
footer footer
header header
caption caption
<style>
document {
BackGroundColor orange
}
title {
BackGroundColor yellow
}
legend {
BackGroundColor green
}
footer {
BackGroundColor blue
FontColor red
FontSize 15
}
header {
BackGroundColor red
}
caption {
BackGroundColor purple
}
</style>
class Bob {
hello
}
class Sally
Sally --> Bob
@enduml
"""
*/
public class A0005_Test extends BasicTest {
@Test
void testSimple() throws IOException {
checkImage("(2 entities)");
}
}

View File

@ -0,0 +1,288 @@
package nonreg.simple;
public class A0005_TestResult {
}
/*
"""
DPI: 96
dimension: [ 128.0935 ; 282.0000 ]
scaleFactor: 1.0000
seed: 293863236578191100
svgLinkTarget: _top
hoverPathColorRGB: null
preserveAspectRatio: none
EMPTY:
pt1: [ 43.7612 ; 0.0000 ]
pt2: [ 122.0935 ; 11.0000 ]
RECTANGLE:
pt1: [ 43.7612 ; 0.0000 ]
pt2: [ 121.0935 ; 10.0000 ]
xCorner: 0
yCorner: 0
stroke: 0.0-0.0-1.0
shadow: 0
color: NULL_COLOR
backcolor: ffff0000
TEXT:
text: header
position: [ 43.7612 ; 7.7778 ]
orientation: 0
font: SansSerif.plain/10 []
color: ff888888
extendedColor: NULL_COLOR
EMPTY:
pt1: [ 20.7059 ; 11.0000 ]
pt2: [ 101.3876 ; 46.0000 ]
RECTANGLE:
pt1: [ 25.7059 ; 16.0000 ]
pt2: [ 95.3876 ; 40.0000 ]
xCorner: 0
yCorner: 0
stroke: 0.0-0.0-1.0
shadow: 0
color: NULL_COLOR
backcolor: ffffff00
TEXT:
text: title
position: [ 30.7059 ; 31.8889 ]
orientation: 0
font: SansSerif.bold/14 [BOLD]
color: ff000000
extendedColor: NULL_COLOR
COMMENT: class Bob
RECTANGLE:
pt1: [ 25.6999 ; 143.0000 ]
pt2: [ 102.4463 ; 205.0000 ]
xCorner: 0
yCorner: 0
stroke: 0.0-0.0-1.5
shadow: 4
color: ffa80036
backcolor: fffefece
EMPTY:
pt1: [ 29.7685 ; 143.0000 ]
pt2: [ 55.7685 ; 175.0000 ]
ELLIPSE:
pt1: [ 33.7685 ; 148.0000 ]
pt2: [ 55.7685 ; 170.0000 ]
start: 0.0
extend: 0.0
stroke: 0.0-0.0-1.0
shadow: 0
color: ffa80036
backcolor: ffadd1b2
CENTERED_CHAR:
char: C
position: [ 44.7685 ; 159.0000 ]
font: Monospaced.bold/17
color: ff000000
EMPTY:
pt1: [ 56.6726 ; 152.0000 ]
pt2: [ 98.3776 ; 166.0000 ]
TEXT:
text: Bob
position: [ 59.6726 ; 162.8889 ]
orientation: 0
font: SansSerif.plain/14 []
color: ff000000
extendedColor: NULL_COLOR
LINE:
pt1: [ 26.6999 ; 175.0000 ]
pt2: [ 101.4463 ; 175.0000 ]
stroke: 0.0-0.0-1.5
shadow: 0
color: ffa80036
EMPTY:
pt1: [ 25.6999 ; 175.0000 ]
pt2: [ 102.4463 ; 197.0000 ]
TEXT:
text: hello
position: [ 31.6999 ; 189.8889 ]
orientation: 0
font: SansSerif.plain/14 []
color: ff000000
extendedColor: NULL_COLOR
LINE:
pt1: [ 26.6999 ; 197.0000 ]
pt2: [ 101.4463 ; 197.0000 ]
stroke: 0.0-0.0-1.5
shadow: 0
color: ffa80036
EMPTY:
pt1: [ 25.6999 ; 197.0000 ]
pt2: [ 37.6999 ; 205.0000 ]
COMMENT: class Sally
RECTANGLE:
pt1: [ 18.1999 ; 59.0000 ]
pt2: [ 109.8937 ; 107.0000 ]
xCorner: 0
yCorner: 0
stroke: 0.0-0.0-1.5
shadow: 4
color: ffa80036
backcolor: fffefece
EMPTY:
pt1: [ 18.1999 ; 59.0000 ]
pt2: [ 44.1999 ; 91.0000 ]
ELLIPSE:
pt1: [ 22.1999 ; 64.0000 ]
pt2: [ 44.1999 ; 86.0000 ]
start: 0.0
extend: 0.0
stroke: 0.0-0.0-1.0
shadow: 0
color: ffa80036
backcolor: ffadd1b2
CENTERED_CHAR:
char: C
position: [ 33.1999 ; 75.0000 ]
font: Monospaced.bold/17
color: ff000000
EMPTY:
pt1: [ 44.1999 ; 68.0000 ]
pt2: [ 109.8937 ; 82.0000 ]
TEXT:
text: Sally
position: [ 47.1999 ; 78.8889 ]
orientation: 0
font: SansSerif.plain/14 []
color: ff000000
extendedColor: NULL_COLOR
LINE:
pt1: [ 19.1999 ; 91.0000 ]
pt2: [ 108.8937 ; 91.0000 ]
stroke: 0.0-0.0-1.5
shadow: 0
color: ffa80036
EMPTY:
pt1: [ 18.1999 ; 91.0000 ]
pt2: [ 30.1999 ; 99.0000 ]
LINE:
pt1: [ 19.1999 ; 99.0000 ]
pt2: [ 108.8937 ; 99.0000 ]
stroke: 0.0-0.0-1.5
shadow: 0
color: ffa80036
EMPTY:
pt1: [ 18.1999 ; 99.0000 ]
pt2: [ 30.1999 ; 107.0000 ]
PATH:
- type: SEG_MOVETO
pt1: [ 46.0000 ; 55.3837 ]
- type: SEG_CUBICTO
pt1: [ 46.0000 ; 66.1992 ]
pt2: [ 46.0000 ; 79.1811 ]
pt3: [ 46.0000 ; 90.7328 ]
stroke: 0.0-0.0-1.0
shadow: 0
color: ffa80036
backcolor: NULL_COLOR
POLYGON:
points:
- [ 64.1999 ; 142.7328 ]
- [ 68.1999 ; 133.7328 ]
- [ 64.1999 ; 137.7328 ]
- [ 60.1999 ; 133.7328 ]
- [ 64.1999 ; 142.7328 ]
stroke: 0.0-0.0-1.0
shadow: 0
color: ffa80036
backcolor: ffa80036
EMPTY:
pt1: [ 0.0000 ; 200.0000 ]
pt2: [ 122.0935 ; 243.0000 ]
RECTANGLE:
pt1: [ 8.0000 ; 208.0000 ]
pt2: [ 113.0935 ; 234.0000 ]
xCorner: 15
yCorner: 15
stroke: 0.0-0.0-1.0
shadow: 0
color: ff000000
backcolor: ff008000
TEXT:
text: legend
position: [ 14.0000 ; 224.8889 ]
orientation: 0
font: SansSerif.plain/14 []
color: ff000000
extendedColor: NULL_COLOR
EMPTY:
pt1: [ 2.6679 ; 243.0000 ]
pt2: [ 119.4256 ; 260.0000 ]
RECTANGLE:
pt1: [ 3.6679 ; 244.0000 ]
pt2: [ 117.4256 ; 258.0000 ]
xCorner: 0
yCorner: 0
stroke: 0.0-0.0-1.0
shadow: 0
color: NULL_COLOR
backcolor: ff800080
TEXT:
text: caption
position: [ 3.6679 ; 254.8889 ]
orientation: 0
font: SansSerif.plain/14 []
color: ff000000
extendedColor: NULL_COLOR
EMPTY:
pt1: [ 16.9796 ; 260.0000 ]
pt2: [ 105.1139 ; 276.0000 ]
RECTANGLE:
pt1: [ 16.9796 ; 260.0000 ]
pt2: [ 104.1139 ; 275.0000 ]
xCorner: 0
yCorner: 0
stroke: 0.0-0.0-1.0
shadow: 0
color: NULL_COLOR
backcolor: ff0000ff
TEXT:
text: footer
position: [ 16.9796 ; 271.6667 ]
orientation: 0
font: SansSerif.plain/15 []
color: ffff0000
extendedColor: NULL_COLOR
"""
*/