commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chtom...@apache.org
Subject [11/14] [text] TEXT-23: fix assertEquals, SrtBuilderTest diff objs
Date Sun, 13 Nov 2016 20:34:14 GMT
TEXT-23: fix assertEquals, SrtBuilderTest diff objs


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

Branch: refs/heads/master
Commit: 7adf1d5ea33fc1a67196f96ce71c17ebdb28efed
Parents: 6f24aa4
Author: Rob Tompkins <christopher.tompkins@capitalone.com>
Authored: Wed Nov 9 16:00:03 2016 -0500
Committer: Rob Tompkins <christopher.tompkins@capitalone.com>
Committed: Wed Nov 9 16:13:57 2016 -0500

----------------------------------------------------------------------
 src/test/java/org/apache/commons/text/StrBuilderTest.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-text/blob/7adf1d5e/src/test/java/org/apache/commons/text/StrBuilderTest.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/commons/text/StrBuilderTest.java b/src/test/java/org/apache/commons/text/StrBuilderTest.java
index 1920984..e44c767 100644
--- a/src/test/java/org/apache/commons/text/StrBuilderTest.java
+++ b/src/test/java/org/apache/commons/text/StrBuilderTest.java
@@ -467,7 +467,7 @@ public class StrBuilderTest {
     @Test
     public void testToCharArray() {
         final StrBuilder sb = new StrBuilder();
-        assertEquals(ArrayUtils.EMPTY_CHAR_ARRAY, sb.toCharArray());
+        assertEquals(ArrayUtils.EMPTY_CHAR_ARRAY.length, sb.toCharArray().length);
 
         char[] a = sb.toCharArray();
         assertNotNull("toCharArray() result is null", a);
@@ -482,7 +482,7 @@ public class StrBuilderTest {
     @Test
     public void testToCharArrayIntInt() {
         final StrBuilder sb = new StrBuilder();
-        assertEquals(ArrayUtils.EMPTY_CHAR_ARRAY, sb.toCharArray(0, 0));
+        assertEquals(ArrayUtils.EMPTY_CHAR_ARRAY.length, sb.toCharArray(0, 0).length);
 
         sb.append("junit");
         char[] a = sb.toCharArray(0, 20); // too large test


Mime
View raw message