diff --git a/pom.xml b/pom.xml
index 1795f8c..6ef6f52 100644
--- a/pom.xml
+++ b/pom.xml
@@ -235,6 +235,14 @@
+
+ org.apache.maven.plugins
+ maven-surefire-plugin
+ 3.0.0-M5
+
+ **/*.java
+
+
org.apache.maven.plugins
maven-gpg-plugin
@@ -286,6 +294,7 @@
-Djna.library.path=${bloscJnaLibraryPath}
${basedir}/blosc.properties
+ **/*.java
diff --git a/src/main/java/com/bc/zarr/ZarrArray.java b/src/main/java/com/bc/zarr/ZarrArray.java
index 569637c..ab113c7 100644
--- a/src/main/java/com/bc/zarr/ZarrArray.java
+++ b/src/main/java/com/bc/zarr/ZarrArray.java
@@ -210,6 +210,10 @@ public ByteOrder getByteOrder() {
return _byteOrder;
}
+ public DimensionSeparator getDimensionSeparator() {
+ return _separator;
+ }
+
public void write(Number value) throws IOException, InvalidRangeException {
final int[] shape = getShape();
final int[] offset = new int[shape.length];
diff --git a/src/test/java/com/bc/zarr/ZarrArrayTest_dimensionSeparator.java b/src/test/java/com/bc/zarr/ZarrArrayTest_dimensionSeparator.java
index d5c9526..f620c9b 100644
--- a/src/test/java/com/bc/zarr/ZarrArrayTest_dimensionSeparator.java
+++ b/src/test/java/com/bc/zarr/ZarrArrayTest_dimensionSeparator.java
@@ -91,11 +91,8 @@ public void tearDown() throws Exception {
@Test
public void openOldStyleZarrArrayAndDetectDimensionSeparator() throws IOException, NoSuchFieldException, IllegalAccessException {
final ZarrArray array = ZarrArray.open(arrayPath);
- final Object separator = TestUtils.getPrivateFieldObject(array, "_separator");
- assertThat(separator)
- .isNotNull()
- .isInstanceOf(DimensionSeparator.class);
- DimensionSeparator sep = (DimensionSeparator) separator;
+ DimensionSeparator sep = array.getDimensionSeparator();
+ assertThat(sep).isNotNull();
assertThat(sep.getSeparatorChar()).isEqualTo("/");
}
@@ -104,4 +101,4 @@ private void prepareOldStyleArrayHeaderFile(FileSystemStore store) throws IOExce
final OutputStream os = store.getOutputStream(".zarray");
TestUtils.deleteLineContaining("dimension_separator", is, os);
}
-}
\ No newline at end of file
+}