Skip to content

Commit

Permalink
ArchUnit rule strengthened
Browse files Browse the repository at this point in the history
  • Loading branch information
Felipe444 committed Sep 7, 2020
1 parent 4f64ebd commit bdc85c7
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ class ArchUnitUT {
private static final PACT_MODEL_PACKAGE = 'au.com.dius.pact.model..'
private static final SWAGGER_PACT_VALIDATOR_PACKAGE = 'com.atlassian.oai.validator..'
private static final GOOGLE_COMMON_PACKAGE = 'com.google.common..'
private static final JAVAX_PERSISTENCE_PACKAGE = 'javax.persistence..' // todo: get rid of this from rules

@ArchTest
public static final ArchRule NO_CIRCULAR_DEPENDENCIES_BETWEEN_PACKAGES = SlicesRuleDefinition.slices()
Expand All @@ -40,8 +39,7 @@ class ArchUnitUT {
.should()
.dependOnClassesThat()
.resideOutsideOfPackages(DOMAIN_PACKAGE, DEFAULT_PACKAGE, SLF4J_PACKAGE, LOMBOK_PACKAGE, CORE_JAVA_PACKAGE,
JAVAX_PERSISTENCE_PACKAGE, VAUNT_PACKAGE, PACT_MODEL_PACKAGE, SWAGGER_PACT_VALIDATOR_PACKAGE,
GOOGLE_COMMON_PACKAGE)
VAUNT_PACKAGE, PACT_MODEL_PACKAGE, SWAGGER_PACT_VALIDATOR_PACKAGE, GOOGLE_COMMON_PACKAGE)

@ArchTest
public static final ArchRule INFRASTRUCTURE_SHOULD_NOT_DEPEND_ON_INTERFACES = noClasses()
Expand Down

0 comments on commit bdc85c7

Please sign in to comment.