Skip to content

Instantly share code, notes, and snippets.

@aludwiko
Created July 27, 2018 12:49
Show Gist options
  • Select an option

  • Save aludwiko/fa1cbd5dc4f3eee5019a0121cbe403c8 to your computer and use it in GitHub Desktop.

Select an option

Save aludwiko/fa1cbd5dc4f3eee5019a0121cbe403c8 to your computer and use it in GitHub Desktop.
"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