-
-
Notifications
You must be signed in to change notification settings - Fork 290
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds support for
!elements group
(#351).
- Loading branch information
1 parent
cb8a407
commit f363836
Showing
5 changed files
with
86 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
structurizr-dsl/src/test/resources/dsl/find-elements-in-flat-group.dsl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
workspace { | ||
|
||
model { | ||
user = person "User" | ||
|
||
group = group "Group" { | ||
softwareSystem "A" | ||
softwareSystem "B" | ||
softwareSystem "C" | ||
} | ||
|
||
!elements group { | ||
user -> this "Uses" | ||
} | ||
} | ||
|
||
} |
34 changes: 34 additions & 0 deletions
34
structurizr-dsl/src/test/resources/dsl/find-elements-in-nested-group.dsl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
workspace { | ||
|
||
model { | ||
properties { | ||
"structurizr.groupSeparator" "/" | ||
} | ||
|
||
user1 = person "User 1" | ||
user2 = person "User 2" | ||
|
||
department1 = group "Department 1" { | ||
team1 = group "Team 1" { | ||
softwareSystem "A" | ||
} | ||
|
||
team2 = group "Team 2" { | ||
softwareSystem "B" | ||
} | ||
|
||
team3 = group "Team 3" { | ||
softwareSystem "C" | ||
} | ||
} | ||
|
||
!elements department1 { | ||
user1 -> this "Uses" | ||
} | ||
|
||
!elements team1 { | ||
user2 -> this "Uses" | ||
} | ||
} | ||
|
||
} |