Skip to content

Commit

Permalink
#704 Enforce failure reasons in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
neonailol committed May 22, 2018
1 parent 8684193 commit 78ca0f1
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
21 changes: 21 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,27 @@ The MIT License (MIT)
</execution>
</executions>
</plugin>
<plugin>
<groupId>de.thetaphi</groupId>
<artifactId>forbiddenapis</artifactId>
<version>2.4.1</version>
<configuration>
<failOnUnsupportedJava>false</failOnUnsupportedJava>
<failOnViolation>false</failOnViolation>
<signaturesFiles>
<signaturesFile>./src/verifier/forbiddenapis.txt</signaturesFile>
</signaturesFiles>
</configuration>
<executions>
<execution>
<id>forbiddenapis</id>
<phase>test-compile</phase>
<goals>
<goal>testCheck</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
Expand Down
6 changes: 6 additions & 0 deletions src/verifier/forbiddenapis.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

@defaultMessage Please specify failure reason
org.hamcrest.MatcherAssert#assertThat(java.lang.Object, org.hamcrest.Matcher)

@defaultMessage Please specify failure reason
org.junit.Assert#assertThat(java.lang.Object, org.hamcrest.Matcher)

0 comments on commit 78ca0f1

Please sign in to comment.