Skip to content

Commit

Permalink
yegor256#704 Enforce failure reasons in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
neonailol committed May 28, 2018
1 parent a1e27f3 commit d18f755
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ The MIT License (MIT)
-->
<failOnViolation>false</failOnViolation>
<signaturesFiles>
<signaturesFile>./src/test/resources/forbidden-apis.txt</signaturesFile>
<signaturesFile>./src/verifier/forbiddenapis.txt</signaturesFile>
</signaturesFiles>
</configuration>
<executions>
Expand Down
2 changes: 0 additions & 2 deletions src/test/resources/forbidden-apis.txt

This file was deleted.

8 changes: 8 additions & 0 deletions src/verifier/forbiddenapis.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
@defaultMessage Do not use static methods
org.hamcrest.Matchers

@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 d18f755

Please sign in to comment.