Skip to content

Commit

Permalink
Add Architecture Test to ensure correct logging
Browse files Browse the repository at this point in the history
  • Loading branch information
dfuchss committed Dec 3, 2023
1 parent cecfe45 commit 5771b36
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
6 changes: 6 additions & 0 deletions endtoend-testing/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,11 @@
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
</dependency>
<dependency>
<groupId>com.tngtech.archunit</groupId>
<artifactId>archunit-junit5</artifactId>
<version>1.2.0</version>
<scope>test</scope>
</dependency>
</dependencies>
</project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
package de.jplag.endtoend.architecture;

import static com.tngtech.archunit.lang.syntax.ArchRuleDefinition.noClasses;

import com.tngtech.archunit.junit.AnalyzeClasses;
import com.tngtech.archunit.junit.ArchTest;
import com.tngtech.archunit.lang.ArchRule;

@AnalyzeClasses(packages = "de.jplag")
public class JPlagArchitectureTest {
@ArchTest
public static final ArchRule enforceCorrectLogger = noClasses().should().accessClassesThat()
.haveNameMatching(java.util.logging.Logger.class.getName());
}

0 comments on commit 5771b36

Please sign in to comment.