Skip to content

Commit

Permalink
Add ArchUnit rule for logging
Browse files Browse the repository at this point in the history
  • Loading branch information
koppor committed Jul 19, 2017
1 parent 0903374 commit baee8b3
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,9 @@ public class MainArchitectureTestsWithArchUnit {
noClasses().that().areNotAnnotatedWith(ApacheCommonsLang3Allowed.class)
.should().accessClassesThat().resideInAPackage("org.apache.commons.lang3");

@ArchTest
public static final ArchRule doNotUseApacheCommonsLogging =
noClasses()
.should().accessClassesThat().resideInAPackage("org.apache.commons.logging");

}

0 comments on commit baee8b3

Please sign in to comment.