Created
July 27, 2018 12:49
-
-
Save aludwiko/fa1cbd5dc4f3eee5019a0121cbe403c8 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| "PackageStructureValidation" should "check no dependency from domain to application" in { | |
| // given | |
| val rule = noClasses().that().resideInAPackage("..domain..").should().accessClassesThat().resideInAPackage("..application..") | |
| // when // then | |
| rule.check(classes) | |
| } | |
| it should "check no dependency from domain to akka framework" in { | |
| // given | |
| val rule = noClasses().that().resideInAPackage("..domain..").should().accessClassesThat().resideInAPackage("..akka..") | |
| // when // then | |
| rule.check(classes) | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment