Repository: commons-lang
Updated Branches:
  refs/heads/master 5b223744b -> 34a5e7fa9


fix deprecation warning in ConstructorUtilsTest by using 
Assert#assertArrayEquals instead of Assert#assertEquals to compare arrays


Project: http://git-wip-us.apache.org/repos/asf/commons-lang/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-lang/commit/3eddcccb
Tree: http://git-wip-us.apache.org/repos/asf/commons-lang/tree/3eddcccb
Diff: http://git-wip-us.apache.org/repos/asf/commons-lang/diff/3eddcccb

Branch: refs/heads/master
Commit: 3eddcccba7e0361d6e833407320908187b16ac8d
Parents: 5b22374
Author: pascalschumacher <pascalschumac...@gmx.net>
Authored: Sun May 22 18:13:50 2016 +0200
Committer: pascalschumacher <pascalschumac...@gmx.net>
Committed: Sun May 22 18:13:50 2016 +0200

----------------------------------------------------------------------
 .../org/apache/commons/lang3/reflect/ConstructorUtilsTest.java | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-lang/blob/3eddcccb/src/test/java/org/apache/commons/lang3/reflect/ConstructorUtilsTest.java
----------------------------------------------------------------------
diff --git 
a/src/test/java/org/apache/commons/lang3/reflect/ConstructorUtilsTest.java 
b/src/test/java/org/apache/commons/lang3/reflect/ConstructorUtilsTest.java
index 31d6d64..dff8a8d 100644
--- a/src/test/java/org/apache/commons/lang3/reflect/ConstructorUtilsTest.java
+++ b/src/test/java/org/apache/commons/lang3/reflect/ConstructorUtilsTest.java
@@ -16,6 +16,7 @@
  */
 package org.apache.commons.lang3.reflect;
 
+import static org.junit.Assert.assertArrayEquals;
 import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertNotNull;
 import static org.junit.Assert.assertNull;
@@ -30,7 +31,6 @@ import java.util.Map;
 import org.apache.commons.lang3.ArrayUtils;
 import org.apache.commons.lang3.math.NumberUtils;
 import org.apache.commons.lang3.mutable.MutableObject;
-import org.junit.Assert;
 import org.junit.Before;
 import org.junit.Test;
 
@@ -97,7 +97,7 @@ public class ConstructorUtilsTest {
 
         void verify(final String str, final String[] args) {
           assertEquals(str, toString);
-          assertEquals(args, varArgs);
+          assertArrayEquals(args, varArgs);
         }
     }
 
@@ -287,7 +287,7 @@ public class ConstructorUtilsTest {
         TestBean testBean = ConstructorUtils.invokeConstructor(
                 TestBean.class, Integer.valueOf(1), Integer.valueOf(2), 
Integer.valueOf(3));
 
-        Assert.assertArrayEquals(new String[]{"2", "3"}, testBean.varArgs);
+        assertArrayEquals(new String[]{"2", "3"}, testBean.varArgs);
     }
 
 }

Reply via email to