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/06/01 12:05:13 UTC

[maven-shared-utils] branch default created (now 7d7c483)

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

elharo pushed a change to branch default
in repository https://gitbox.apache.org/repos/asf/maven-shared-utils.git.


      at 7d7c483  replace deprecated method

This branch includes the following new commits:

     new 7d7c483  replace deprecated method

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[maven-shared-utils] 01/01: replace deprecated method

Posted by el...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

elharo pushed a commit to branch default
in repository https://gitbox.apache.org/repos/asf/maven-shared-utils.git

commit 7d7c4830ee3f6ef316c12213f93742ef089ff2bd
Author: Elliotte Rusty Harold <el...@ibiblio.org>
AuthorDate: Mon Jun 1 08:04:59 2020 -0400

    replace deprecated method
---
 pom.xml                                                          | 6 ++++++
 src/test/java/org/apache/maven/shared/utils/CaseTest.java        | 2 +-
 src/test/java/org/apache/maven/shared/utils/StringUtilsTest.java | 9 +--------
 3 files changed, 8 insertions(+), 9 deletions(-)

diff --git a/pom.xml b/pom.xml
index 6219907..714a520 100644
--- a/pom.xml
+++ b/pom.xml
@@ -97,6 +97,12 @@
       <scope>test</scope>
     </dependency>
     <dependency>
+      <groupId>org.apache.commons</groupId>
+      <artifactId>commons-text</artifactId>
+      <version>1.3</version>
+      <scope>test</scope>
+    </dependency>
+    <dependency>
       <groupId>com.google.code.findbugs</groupId>
       <artifactId>jsr305</artifactId>
       <version>3.0.2</version>
diff --git a/src/test/java/org/apache/maven/shared/utils/CaseTest.java b/src/test/java/org/apache/maven/shared/utils/CaseTest.java
index 46e8055..7eae302 100644
--- a/src/test/java/org/apache/maven/shared/utils/CaseTest.java
+++ b/src/test/java/org/apache/maven/shared/utils/CaseTest.java
@@ -21,7 +21,7 @@ package org.apache.maven.shared.utils;
 
 import java.util.Locale;
 
-import org.apache.commons.lang3.StringEscapeUtils;
+import org.apache.commons.text.StringEscapeUtils;
 import org.junit.AfterClass;
 import org.junit.Assert;
 import org.junit.ComparisonFailure;
diff --git a/src/test/java/org/apache/maven/shared/utils/StringUtilsTest.java b/src/test/java/org/apache/maven/shared/utils/StringUtilsTest.java
index fdf4e38..505cf50 100644
--- a/src/test/java/org/apache/maven/shared/utils/StringUtilsTest.java
+++ b/src/test/java/org/apache/maven/shared/utils/StringUtilsTest.java
@@ -24,9 +24,7 @@ import java.util.HashMap;
 import java.util.Iterator;
 import java.util.Map;
 
-import org.junit.Rule;
 import org.junit.Test;
-import org.junit.rules.TemporaryFolder;
 
 import static org.hamcrest.CoreMatchers.is;
 import static org.hamcrest.CoreMatchers.nullValue;
@@ -34,17 +32,12 @@ import static org.hamcrest.MatcherAssert.assertThat;
 
 /**
  * Test the {@link StringUtils} class.
- *
- * We don't need to test this
+ * 
  * @author <a href="mailto:struberg@yahoo.de">Mark Struberg</a>
  */
 public class StringUtilsTest
 {
 
-    @Rule
-    public TemporaryFolder tempFolder = new TemporaryFolder();
-
-
     @Test( expected = NullPointerException.class )
     public void testAbbreviate_NPE()
     {