Author: britter
Date: Thu Jan  9 17:18:21 2014
New Revision: 1556886

URL: http://svn.apache.org/r1556886
Log:
Use Assert.assertArrayEquals instead of own implementation

Modified:
    
commons/proper/exec/trunk/src/test/java/org/apache/commons/exec/environment/EnvironmentUtilTest.java

Modified: 
commons/proper/exec/trunk/src/test/java/org/apache/commons/exec/environment/EnvironmentUtilTest.java
URL: 
http://svn.apache.org/viewvc/commons/proper/exec/trunk/src/test/java/org/apache/commons/exec/environment/EnvironmentUtilTest.java?rev=1556886&r1=1556885&r2=1556886&view=diff
==============================================================================
--- 
commons/proper/exec/trunk/src/test/java/org/apache/commons/exec/environment/EnvironmentUtilTest.java
 (original)
+++ 
commons/proper/exec/trunk/src/test/java/org/apache/commons/exec/environment/EnvironmentUtilTest.java
 Thu Jan  9 17:18:21 2014
@@ -29,6 +29,8 @@ import junit.framework.TestCase;
 import org.apache.commons.exec.OS;
 import org.apache.commons.exec.TestUtil;
 
+import static org.junit.Assert.assertArrayEquals;
+
 /**
  * @version $Id$
  */
@@ -43,12 +45,12 @@ public class EnvironmentUtilTest extends
         assertNull(EnvironmentUtils.toStrings(null));
         // check for an environment when filling in two variables
         final Map env = new HashMap();
-        TestUtil.assertEquals(new String[0], EnvironmentUtils.toStrings(env), 
false);
+        assertArrayEquals(new String[0], EnvironmentUtils.toStrings(env));
         env.put("foo2", "bar2");
         env.put("foo", "bar");
         final String[] envStrings = EnvironmentUtils.toStrings(env);
-        final String[] expected = new String[]{"foo=bar", "foo2=bar2"};
-        TestUtil.assertEquals(expected, envStrings, false);
+        final String[] expected = new String[]{"foo2=bar2", "foo=bar"};
+        assertArrayEquals(expected, envStrings);
     }
 
     /**


Reply via email to