You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2018/06/09 16:49:23 UTC

[38/50] [abbrv] [text] [LANG-123] WordUtils.wrap throws StringIndexOutOfBoundsException when wrapLength is Integer.MAX_VALUE.

[LANG-123] WordUtils.wrap throws StringIndexOutOfBoundsException when
wrapLength is Integer.MAX_VALUE.

Project: http://git-wip-us.apache.org/repos/asf/commons-text/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-text/commit/3778f582
Tree: http://git-wip-us.apache.org/repos/asf/commons-text/tree/3778f582
Diff: http://git-wip-us.apache.org/repos/asf/commons-text/diff/3778f582

Branch: refs/heads/release
Commit: 3778f58226d5b24121cc683fc072c36be173450c
Parents: c86c6e4
Author: Gary Gregory <ga...@gmail.com>
Authored: Fri May 18 12:27:38 2018 -0600
Committer: Gary Gregory <ga...@gmail.com>
Committed: Fri May 18 12:27:38 2018 -0600

----------------------------------------------------------------------
 src/test/java/org/apache/commons/text/WordUtilsTest.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-text/blob/3778f582/src/test/java/org/apache/commons/text/WordUtilsTest.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/commons/text/WordUtilsTest.java b/src/test/java/org/apache/commons/text/WordUtilsTest.java
index 416e3d3..f03ba81 100644
--- a/src/test/java/org/apache/commons/text/WordUtilsTest.java
+++ b/src/test/java/org/apache/commons/text/WordUtilsTest.java
@@ -528,7 +528,7 @@ public class WordUtilsTest {
     }
 
     @Test
-    public void testLANG1397() throws Exception {
+    public void testText123() throws Exception {
         // Prior to fix, this was throwing StringIndexOutOfBoundsException
         WordUtils.wrap("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa "
                 + "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", Integer.MAX_VALUE);