From e232dcb010dde6dc2be8ac6a7242b4a6b0a72d1c Mon Sep 17 00:00:00 2001 From: Neonailol Date: Tue, 20 Mar 2018 20:52:33 +0300 Subject: [PATCH 1/2] #704 Enforce failure reasons in tests --- pom.xml | 20 ++++++++++++++++++++ src/verifier/forbiddenapis.txt | 6 ++++++ 2 files changed, 26 insertions(+) create mode 100644 src/verifier/forbiddenapis.txt diff --git a/pom.xml b/pom.xml index 212a39bdb2..19d6693633 100644 --- a/pom.xml +++ b/pom.xml @@ -210,6 +210,26 @@ The MIT License (MIT) + + de.thetaphi + forbiddenapis + 2.4.1 + + false + + ./src/verifier/forbiddenapis.txt + + + + + forbiddenapis + validate + + testCheck + + + + diff --git a/src/verifier/forbiddenapis.txt b/src/verifier/forbiddenapis.txt new file mode 100644 index 0000000000..4e9c8d2bb5 --- /dev/null +++ b/src/verifier/forbiddenapis.txt @@ -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) From 762554986a966976ddb278150d8c935f0bdc087d Mon Sep 17 00:00:00 2001 From: Neonailol Date: Tue, 20 Mar 2018 22:50:47 +0300 Subject: [PATCH 2/2] #704 Enforce failure reasons in tests --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 19d6693633..e2bf03e137 100644 --- a/pom.xml +++ b/pom.xml @@ -223,7 +223,7 @@ The MIT License (MIT) forbiddenapis - validate + test-compile testCheck