Skip to content

Commit

Permalink
ok let's do it the oter way
Browse files Browse the repository at this point in the history
  • Loading branch information
rbri committed Dec 17, 2024
1 parent a0ffab1 commit 3e3ac19
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
6 changes: 0 additions & 6 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1300,12 +1300,6 @@
<artifactId>junit</artifactId>
<version>${junit.version}</version>
<scope>test</scope>
<exclusions>
<exclusion>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest-core</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.tngtech.archunit</groupId>
Expand Down
8 changes: 8 additions & 0 deletions src/test/java/org/htmlunit/archunit/Architecture2Test.java
Original file line number Diff line number Diff line change
Expand Up @@ -168,4 +168,12 @@ else if (oneTests.size() == 0) {
.and().doNotHaveFullyQualifiedName("org.htmlunit.javascript.host.intl.DateTimeFormat")
.and().doNotHaveFullyQualifiedName("org.htmlunit.javascript.host.intl.NumberFormat")
.should().callMethod(BrowserVersion.class, "isFirefoxESR", new Class[] {});


/**
* Do not use hamcrest.
*/
@ArchTest
public static final ArchRule hamcrest = noClasses()
.should().dependOnClassesThat().resideInAPackage("org.hamcrest..");
}

0 comments on commit 3e3ac19

Please sign in to comment.