diff --git a/src/test/java/it/geosolutions/geoserver/decoder/ResourceDecoderTest.java b/src/test/java/it/geosolutions/geoserver/decoder/ResourceDecoderTest.java index e4046ee8..603f6f60 100644 --- a/src/test/java/it/geosolutions/geoserver/decoder/ResourceDecoderTest.java +++ b/src/test/java/it/geosolutions/geoserver/decoder/ResourceDecoderTest.java @@ -156,7 +156,8 @@ public void testCoverageDimension() throws IOException { coverageDimension1.getDescription()); Assert.assertEquals("-inf", coverageDimension1.getRangeMin()); Assert.assertEquals("inf", coverageDimension1.getRangeMax()); - Assert.assertEquals("dobson units³", coverageDimension1.getUnit()); + // Assert.assertEquals("dobson units", coverageDimension1.getUnit()); + Assert.assertTrue(coverageDimension1.getUnit().startsWith("dobson units")); Assert.assertEquals("REAL_32BITS", coverageDimension1.getDimensionTypeName()); } diff --git a/src/test/java/it/geosolutions/geoserver/rest/encoder/coverage/GSCoverageEncoderTest.java b/src/test/java/it/geosolutions/geoserver/rest/encoder/coverage/GSCoverageEncoderTest.java index 6a7374fb..894b5560 100644 --- a/src/test/java/it/geosolutions/geoserver/rest/encoder/coverage/GSCoverageEncoderTest.java +++ b/src/test/java/it/geosolutions/geoserver/rest/encoder/coverage/GSCoverageEncoderTest.java @@ -126,7 +126,7 @@ public void testAll() { // setting dimensions (since gs-2.4.x) GSCoverageDimensionEncoder gsCoverageDimensionEncoder = new GSCoverageDimensionEncoder( "GRAY_INDEX", "GridSampleDimension[-Infinity,Infinity]", "-inf", "inf", - "dobson units³", "REAL_32BITS"); + "dobson units", "REAL_32BITS"); encoder.addCoverageDimensionInfo(gsCoverageDimensionEncoder); encoder.setNativeCoverageName("Sample native name"); diff --git a/src/test/java/it/geosolutions/geoserver/rest/encoder/dimensions/GSCoverageDimensionEncoderTest.java b/src/test/java/it/geosolutions/geoserver/rest/encoder/dimensions/GSCoverageDimensionEncoderTest.java index a4402c15..729ed63b 100644 --- a/src/test/java/it/geosolutions/geoserver/rest/encoder/dimensions/GSCoverageDimensionEncoderTest.java +++ b/src/test/java/it/geosolutions/geoserver/rest/encoder/dimensions/GSCoverageDimensionEncoderTest.java @@ -33,14 +33,14 @@ public class GSCoverageDimensionEncoderTest { @Test public void coverageDimensionTest() { GSCoverageDimensionEncoder encoder = new GSCoverageDimensionEncoder("GRAY_INDEX", - "GridSampleDimension[-Infinity,Infinity]", "-inf", "inf", "dobson units³", + "GridSampleDimension[-Infinity,Infinity]", "-inf", "inf", "dobson units", "REAL_32BITS"); Assert.assertEquals("GRAY_INDEX", encoder.getName()); Assert.assertEquals("GridSampleDimension[-Infinity,Infinity]", encoder.getDescription()); Assert.assertEquals("-inf", encoder.getRangeMin()); Assert.assertEquals("inf", encoder.getRangeMax()); - Assert.assertEquals("dobson units³", encoder.getUnit()); + Assert.assertEquals("dobson units", encoder.getUnit()); Assert.assertEquals("REAL_32BITS", encoder.getDimensionTypeName()); Assert.assertTrue(encoder.delName()); @@ -59,15 +59,15 @@ public void coverageDimensionTest() { encoder.setName("GRAY_INDEX"); encoder.setDescription("GridSampleDimension[-Infinity,Infinity]"); encoder.setRange("-inf", "inf"); - encoder.setUnit("dobson units³"); + encoder.setUnit("dobson units"); encoder.setDimensionType("REAL_32BITS"); Assert.assertEquals("GRAY_INDEX", encoder.getName()); Assert.assertEquals("GridSampleDimension[-Infinity,Infinity]", encoder.getDescription()); Assert.assertEquals("-inf", encoder.getRangeMin()); Assert.assertEquals("inf", encoder.getRangeMax()); - Assert.assertEquals("dobson units³", encoder.getUnit()); + Assert.assertEquals("dobson units", encoder.getUnit()); Assert.assertEquals("REAL_32BITS", encoder.getDimensionTypeName()); } -} \ No newline at end of file +} diff --git a/src/test/java/it/geosolutions/geoserver/rest/publisher/GeoserverRESTImageMosaicTest.java b/src/test/java/it/geosolutions/geoserver/rest/publisher/GeoserverRESTImageMosaicTest.java index 7e8d33e6..8408af99 100644 --- a/src/test/java/it/geosolutions/geoserver/rest/publisher/GeoserverRESTImageMosaicTest.java +++ b/src/test/java/it/geosolutions/geoserver/rest/publisher/GeoserverRESTImageMosaicTest.java @@ -116,7 +116,7 @@ public void testCreateDeleteImageMosaicDatastore() throws MalformedURLException, if (v.compareTo(GSVersionDecoder.VERSION.v24)>=0){ GSCoverageDimensionEncoder gsCoverageDimensionEncoder = new GSCoverageDimensionEncoder( "GRAY_INDEX", "GridSampleDimension[-Infinity,Infinity]", "-inf", "inf", - "dobson units³", "REAL_32BITS"); + "dobson units", "REAL_32BITS"); coverageEncoder.addCoverageDimensionInfo(gsCoverageDimensionEncoder); }