Skip to content

Commit

Permalink
Prefer AssertJ assertions over TestNG, JUnit
Browse files Browse the repository at this point in the history
  • Loading branch information
ssheikin authored and wendigo committed Jun 7, 2024
1 parent 3796872 commit 52ec815
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 16 deletions.
16 changes: 0 additions & 16 deletions plugin/trino-base-jdbc/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -283,22 +283,6 @@
<groupId>org.antlr</groupId>
<artifactId>antlr4-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<configuration>
<rules combine.children="append">
<RestrictImports>
<reason>Use AssertJ assertions instead of TestNG</reason>
<bannedImports>
<bannedImport>org.testng.Assert.*</bannedImport>
<bannedImport>org.testng.AssertJUnit.*</bannedImport>
<bannedImport>org.testng.asserts.**</bannedImport>
</bannedImports>
</RestrictImports>
</rules>
</configuration>
</plugin>
</plugins>
</build>
</project>
9 changes: 9 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2390,6 +2390,15 @@
<include>org.yaml:snakeyaml:2.+</include>
</includes>
</bannedDependencies>
<RestrictImports>
<reason>Prefer org.assertj.core.api.Assertions over:</reason>
<bannedImports>
<bannedImport>org.junit.jupiter.api.Assertions.*</bannedImport>
<bannedImport>org.testng.Assert.*</bannedImport>
<bannedImport>org.testng.AssertJUnit.*</bannedImport>
<bannedImport>org.testng.asserts.**</bannedImport>
</bannedImports>
</RestrictImports>
<RestrictImports>
<bannedImports>
<bannedImport>com.google.api.client.util.Preconditions</bannedImport>
Expand Down

0 comments on commit 52ec815

Please sign in to comment.