sis-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From desruisse...@apache.org
Subject svn commit: r1529262 [3/3] - in /sis/trunk: ./ application/sis-console/src/main/java/org/apache/sis/console/ core/sis-metadata/src/main/java/org/apache/sis/internal/jaxb/gml/ core/sis-metadata/src/test/java/org/apache/sis/xml/ core/sis-referencing/src/...
Date Fri, 04 Oct 2013 19:08:19 GMT
Modified: sis/trunk/core/sis-utility/src/test/java/org/apache/sis/util/ArraysExtTest.java
URL: http://svn.apache.org/viewvc/sis/trunk/core/sis-utility/src/test/java/org/apache/sis/util/ArraysExtTest.java?rev=1529262&r1=1529261&r2=1529262&view=diff
==============================================================================
--- sis/trunk/core/sis-utility/src/test/java/org/apache/sis/util/ArraysExtTest.java [UTF-8]
(original)
+++ sis/trunk/core/sis-utility/src/test/java/org/apache/sis/util/ArraysExtTest.java [UTF-8]
Fri Oct  4 19:08:18 2013
@@ -181,6 +181,16 @@ public final strictfp class ArraysExtTes
     }
 
     /**
+     * Tests the {@link ArraysExt#swap(Object[], int, int)} method.
+     */
+    @Test
+    public void testSwapObject() {
+        final Integer[] array = new Integer[] {4, 8, 12, 15, 18};
+        ArraysExt.swap(array, 1, 3);
+        assertArrayEquals(new Integer[] {4, 15, 12, 8, 18}, array);
+    }
+
+    /**
      * Tests the {@link ArraysExt#swap(double[], int, int)} method.
      */
     @Test



Mime
View raw message