From baee8b3008f21add1b22496796f3b5c5b758470f Mon Sep 17 00:00:00 2001 From: Oliver Kopp Date: Wed, 19 Jul 2017 03:42:51 +0200 Subject: [PATCH] Add ArchUnit rule for logging --- .../architecture/MainArchitectureTestsWithArchUnit.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/test/java/org/jabref/architecture/MainArchitectureTestsWithArchUnit.java b/src/test/java/org/jabref/architecture/MainArchitectureTestsWithArchUnit.java index 6120da6b808..db5ce2e4f24 100644 --- a/src/test/java/org/jabref/architecture/MainArchitectureTestsWithArchUnit.java +++ b/src/test/java/org/jabref/architecture/MainArchitectureTestsWithArchUnit.java @@ -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"); + }