You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by ma...@apache.org on 2020/12/08 04:32:06 UTC
[commons-geometry] branch master updated: fixing test and
checkstyle failures in examples-io
This is an automated email from the ASF dual-hosted git repository.
mattjuntunen pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-geometry.git
The following commit(s) were added to refs/heads/master by this push:
new eab4a9b fixing test and checkstyle failures in examples-io
eab4a9b is described below
commit eab4a9b3471dc54f770147f537978b4ce73f7c85
Author: Matt Juntunen <ma...@apache.org>
AuthorDate: Mon Dec 7 23:30:18 2020 -0500
fixing test and checkstyle failures in examples-io
---
.../org/apache/commons/geometry/examples/io/threed/ModelIOTest.java | 2 +-
.../geometry/examples/io/threed/obj/OBJModelIOHandlerTest.java | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/commons-geometry-examples/examples-io/src/test/java/org/apache/commons/geometry/examples/io/threed/ModelIOTest.java b/commons-geometry-examples/examples-io/src/test/java/org/apache/commons/geometry/examples/io/threed/ModelIOTest.java
index 02493de..5cc0ffc 100644
--- a/commons-geometry-examples/examples-io/src/test/java/org/apache/commons/geometry/examples/io/threed/ModelIOTest.java
+++ b/commons-geometry-examples/examples-io/src/test/java/org/apache/commons/geometry/examples/io/threed/ModelIOTest.java
@@ -43,7 +43,7 @@ public class ModelIOTest {
new EpsilonDoublePrecisionContext(TEST_EPS);
@TempDir
- File anotherTempDir;
+ protected File anotherTempDir;
@Test
public void testGetHandler() {
diff --git a/commons-geometry-examples/examples-io/src/test/java/org/apache/commons/geometry/examples/io/threed/obj/OBJModelIOHandlerTest.java b/commons-geometry-examples/examples-io/src/test/java/org/apache/commons/geometry/examples/io/threed/obj/OBJModelIOHandlerTest.java
index 32db393..5c83f04 100644
--- a/commons-geometry-examples/examples-io/src/test/java/org/apache/commons/geometry/examples/io/threed/obj/OBJModelIOHandlerTest.java
+++ b/commons-geometry-examples/examples-io/src/test/java/org/apache/commons/geometry/examples/io/threed/obj/OBJModelIOHandlerTest.java
@@ -51,7 +51,7 @@ public class OBJModelIOHandlerTest {
private static final int CUBE_MINUS_SPHERE_FACES = 728;
@TempDir
- File anotherTempDir;
+ protected File anotherTempDir;
private OBJModelIOHandler handler = new OBJModelIOHandler();
@@ -172,7 +172,7 @@ public class OBJModelIOHandlerTest {
@Test
public void testWrite_toFile_ioException() throws Exception {
// arrange
- File out = new File(anotherTempDir, "notafile");
+ File out = new File(anotherTempDir, "notafolder/notafile");
BoundarySource3D src = BoundarySource3D.from(
Planes.triangleFromVertices(Vector3D.ZERO, Vector3D.of(1, 0, 0), Vector3D.of(0, 1, 0), TEST_PRECISION)
);