Skip to content

Commit 7eacd41

Browse files
Adds a "Terminal" shape.
1 parent 90fd090 commit 7eacd41

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
- structurizr-dsl: Adds support for defining element and relationship styles for light and dark mode.
77
- structurizr-dsl: Adds a `Bucket` shape.
88
- structurizr-dsl: Adds a `Shell` shape.
9+
- structurizr-dsl: Adds a `Terminal` shape.
910

1011
## v4.1.0 (28th May 2025)
1112

structurizr-core/src/main/java/com/structurizr/view/Shape.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ public enum Shape {
1616
Folder,
1717
WebBrowser,
1818
Window,
19+
Terminal,
1920
Shell,
2021
MobileDevicePortrait,
2122
MobileDeviceLandscape,

structurizr-dsl/src/test/java/com/structurizr/dsl/ElementStyleParserTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ void test_parseShape_ThrowsAnException_WhenThereAreTooManyTokens() {
8080
parser.parseShape(elementStyleDslContext(), tokens("shape", "shape", "extra"));
8181
fail();
8282
} catch (Exception e) {
83-
assertEquals("Too many tokens, expected: shape <Box|RoundedBox|Circle|Ellipse|Hexagon|Diamond|Cylinder|Bucket|Pipe|Person|Robot|Folder|WebBrowser|Window|Shell|MobileDevicePortrait|MobileDeviceLandscape|Component>", e.getMessage());
83+
assertEquals("Too many tokens, expected: shape <Box|RoundedBox|Circle|Ellipse|Hexagon|Diamond|Cylinder|Bucket|Pipe|Person|Robot|Folder|WebBrowser|Window|Terminal|Shell|MobileDevicePortrait|MobileDeviceLandscape|Component>", e.getMessage());
8484
}
8585
}
8686

@@ -90,7 +90,7 @@ void test_parseShape_ThrowsAnException_WhenTheShapeIsMissing() {
9090
parser.parseShape(elementStyleDslContext(), tokens("shape"));
9191
fail();
9292
} catch (Exception e) {
93-
assertEquals("Expected: shape <Box|RoundedBox|Circle|Ellipse|Hexagon|Diamond|Cylinder|Bucket|Pipe|Person|Robot|Folder|WebBrowser|Window|Shell|MobileDevicePortrait|MobileDeviceLandscape|Component>", e.getMessage());
93+
assertEquals("Expected: shape <Box|RoundedBox|Circle|Ellipse|Hexagon|Diamond|Cylinder|Bucket|Pipe|Person|Robot|Folder|WebBrowser|Window|Terminal|Shell|MobileDevicePortrait|MobileDeviceLandscape|Component>", e.getMessage());
9494
}
9595
}
9696

0 commit comments

Comments
 (0)