You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by el...@apache.org on 2020/04/06 11:54:40 UTC

[maven-antrun-plugin] branch master updated: replace deprecated method (#3)

This is an automated email from the ASF dual-hosted git repository.

elharo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-antrun-plugin.git


The following commit(s) were added to refs/heads/master by this push:
     new 3c9012e  replace deprecated method (#3)
3c9012e is described below

commit 3c9012eca6bf5cd6c02f3ab767e1758e1d8e0951
Author: Elliotte Rusty Harold <el...@users.noreply.github.com>
AuthorDate: Mon Apr 6 07:54:34 2020 -0400

    replace deprecated method (#3)
    
    * replace deprecated method
    * direct dependency on hamcrest
---
 pom.xml                                                             | 6 ++++++
 .../plugins/antrun/AntrunXmlPlexusConfigurationWriterTest.java      | 2 +-
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/pom.xml b/pom.xml
index 7dbb919..bfb0db0 100644
--- a/pom.xml
+++ b/pom.xml
@@ -106,6 +106,12 @@ under the License.
       <scope>test</scope>
     </dependency>
     <dependency>
+      <groupId>org.hamcrest</groupId>
+      <artifactId>hamcrest-core</artifactId>
+      <version>1.3</version>
+      <scope>test</scope>
+    </dependency>
+    <dependency>
       <groupId>org.xmlunit</groupId>
       <artifactId>xmlunit-core</artifactId>
       <version>2.6.4</version>
diff --git a/src/test/java/org/apache/maven/plugins/antrun/AntrunXmlPlexusConfigurationWriterTest.java b/src/test/java/org/apache/maven/plugins/antrun/AntrunXmlPlexusConfigurationWriterTest.java
index 8ca6698..c181b12 100644
--- a/src/test/java/org/apache/maven/plugins/antrun/AntrunXmlPlexusConfigurationWriterTest.java
+++ b/src/test/java/org/apache/maven/plugins/antrun/AntrunXmlPlexusConfigurationWriterTest.java
@@ -30,7 +30,7 @@ import org.junit.Test;
 import org.junit.rules.TemporaryFolder;
 import org.xmlunit.builder.Input;
 
-import static org.junit.Assert.assertThat;
+import static org.hamcrest.MatcherAssert.assertThat;
 import static org.xmlunit.matchers.CompareMatcher.isIdenticalTo;
 
 /**