From 3c9012eca6bf5cd6c02f3ab767e1758e1d8e0951 Mon Sep 17 00:00:00 2001 From: Elliotte Rusty Harold Date: Mon, 6 Apr 2020 07:54:34 -0400 Subject: [PATCH] replace deprecated method (#3) * replace deprecated method * direct dependency on hamcrest --- pom.xml | 6 ++++++ .../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 @@ -105,6 +105,12 @@ under the License. 4.13 test + + org.hamcrest + hamcrest-core + 1.3 + test + org.xmlunit xmlunit-core 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.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; /**