You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by rf...@apache.org on 2021/05/27 18:51:20 UTC
[maven-enforcer] branch master updated: [MENFORCER-373]
TestRequireOS uses hamcrest via transitive dependency
This is an automated email from the ASF dual-hosted git repository.
rfscholte pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-enforcer.git
The following commit(s) were added to refs/heads/master by this push:
new 5788a00 [MENFORCER-373] TestRequireOS uses hamcrest via transitive dependency
5788a00 is described below
commit 5788a007cc275569dfe5ca834a319b86af98eb3c
Author: rfscholte <rf...@apache.org>
AuthorDate: Thu May 27 20:51:03 2021 +0200
[MENFORCER-373] TestRequireOS uses hamcrest via transitive dependency
---
enforcer-rules/pom.xml | 6 ++++++
.../test/java/org/apache/maven/plugins/enforcer/TestRequireOS.java | 4 ++--
2 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/enforcer-rules/pom.xml b/enforcer-rules/pom.xml
index c7d52a6..7530fe4 100644
--- a/enforcer-rules/pom.xml
+++ b/enforcer-rules/pom.xml
@@ -80,6 +80,12 @@
<version>2.0b6</version>
</dependency>
<dependency>
+ <groupId>org.hamcrest</groupId>
+ <artifactId>hamcrest</artifactId>
+ <version>2.2</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<scope>test</scope>
diff --git a/enforcer-rules/src/test/java/org/apache/maven/plugins/enforcer/TestRequireOS.java b/enforcer-rules/src/test/java/org/apache/maven/plugins/enforcer/TestRequireOS.java
index 353a763..57808f5 100644
--- a/enforcer-rules/src/test/java/org/apache/maven/plugins/enforcer/TestRequireOS.java
+++ b/enforcer-rules/src/test/java/org/apache/maven/plugins/enforcer/TestRequireOS.java
@@ -19,9 +19,9 @@ package org.apache.maven.plugins.enforcer;
* under the License.
*/
-import static org.hamcrest.CoreMatchers.startsWith;
+import static org.hamcrest.MatcherAssert.assertThat;
+import static org.hamcrest.Matchers.startsWith;
import static org.junit.Assert.assertFalse;
-import static org.junit.Assert.assertThat;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;