commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From l..@apache.org
Subject [1/3] [math] Fixed test incompatibility with Java5.
Date Tue, 14 Apr 2015 12:02:05 GMT
Repository: commons-math
Updated Branches:
  refs/heads/release 7efda3f0a -> b3c5dae8f


Fixed test incompatibility with Java5.

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

Branch: refs/heads/release
Commit: e30d37c71b1e0106446073d66e16932b9927d90a
Parents: 7efda3f
Author: Luc Maisonobe <luc@apache.org>
Authored: Tue Apr 14 13:28:02 2015 +0200
Committer: Luc Maisonobe <luc@apache.org>
Committed: Tue Apr 14 13:28:02 2015 +0200

----------------------------------------------------------------------
 src/changes/changes.xml                                 |  2 +-
 .../geometry/euclidean/threed/PolyhedronsSetTest.java   | 12 +++++++++---
 2 files changed, 10 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-math/blob/e30d37c7/src/changes/changes.xml
----------------------------------------------------------------------
diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index 2be9918..26940bf 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -50,7 +50,7 @@ If the output is not quite correct, check for invisible trailing spaces!
     <title>Commons Math Release Notes</title>
   </properties>
   <body>
-    <release version="3.5" date="2015-04-16" description="
+    <release version="3.5" date="2015-04-17" description="
 This is a minor release: It combines bug fixes and new features.
  Changes to existing features were made in a backwards-compatible
  way such as to allow drop-in replacement of the v3.4.1 JAR file.

http://git-wip-us.apache.org/repos/asf/commons-math/blob/e30d37c7/src/test/java/org/apache/commons/math3/geometry/euclidean/threed/PolyhedronsSetTest.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/commons/math3/geometry/euclidean/threed/PolyhedronsSetTest.java
b/src/test/java/org/apache/commons/math3/geometry/euclidean/threed/PolyhedronsSetTest.java
index b4be154..10ae3d5 100644
--- a/src/test/java/org/apache/commons/math3/geometry/euclidean/threed/PolyhedronsSetTest.java
+++ b/src/test/java/org/apache/commons/math3/geometry/euclidean/threed/PolyhedronsSetTest.java
@@ -394,9 +394,15 @@ public class PolyhedronsSetTest {
 
     @Test
     public void testFacet2Vertices() throws IOException, ParseException {
-        checkError(Arrays.asList(Vector3D.ZERO, Vector3D.PLUS_I, Vector3D.PLUS_J, Vector3D.PLUS_K),
-                   Arrays.asList(new int[] { 0, 1, 2 }, new int[] {2, 3}),
-                   LocalizedFormats.WRONG_NUMBER_OF_POINTS);
+        List<Vector3D> vertices = new ArrayList<Vector3D>();
+        vertices.add(Vector3D.ZERO);
+        vertices.add(Vector3D.PLUS_I);
+        vertices.add(Vector3D.PLUS_J);
+        vertices.add(Vector3D.PLUS_K);
+        List<int[]> facets = new ArrayList<int[]>();
+        facets.add(new int[] { 0, 1, 2 });
+        facets.add(new int[] {2, 3});
+        checkError(vertices, facets, LocalizedFormats.WRONG_NUMBER_OF_POINTS);
     }
 
     private void checkError(final String resourceName, final LocalizedFormats expected) {


Mime
View raw message