You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sis.apache.org by de...@apache.org on 2018/02/26 11:28:20 UTC

svn commit: r1825355 [15/15] - in /sis/trunk: ./ application/sis-console/src/test/java/org/apache/sis/console/ core/sis-build-helper/src/main/resources/org/apache/sis/internal/book/ core/sis-metadata/ core/sis-metadata/src/main/java/org/apache/sis/inte...

Modified: sis/trunk/storage/sis-earth-observation/src/test/java/org/apache/sis/storage/earthobservation/LandsatReaderTest.java
URL: http://svn.apache.org/viewvc/sis/trunk/storage/sis-earth-observation/src/test/java/org/apache/sis/storage/earthobservation/LandsatReaderTest.java?rev=1825355&r1=1825354&r2=1825355&view=diff
==============================================================================
--- sis/trunk/storage/sis-earth-observation/src/test/java/org/apache/sis/storage/earthobservation/LandsatReaderTest.java [UTF-8] (original)
+++ sis/trunk/storage/sis-earth-observation/src/test/java/org/apache/sis/storage/earthobservation/LandsatReaderTest.java [UTF-8] Mon Feb 26 11:28:17 2018
@@ -39,7 +39,7 @@ import static org.apache.sis.storage.ear
  * Tests {@link LandsatReader}.
  *
  * @author  Thi Phuong Hao Nguyen (VNSC)
- * @version 0.8
+ * @version 1.0
  * @since   0.8
  * @module
  */
@@ -94,6 +94,21 @@ public class LandsatReaderTest extends T
         final String text = formatNameAndValue(DefaultMetadata.castOrCopy(actual).asTreeTable());
         assertMultilinesEquals(
                 "Metadata\n"
+                + "  ├─Metadata identifier……………………………………………………………… LandsatTest\n"
+                + "  ├─Metadata standard (1 of 2)…………………………………………… Geographic Information — Metadata Part 1: Fundamentals\n"
+                + "  │   ├─Edition…………………………………………………………………………………… ISO 19115-1:2014(E)\n"
+                + "  │   ├─Identifier…………………………………………………………………………… 19115-1\n"
+                + "  │   ├─Cited responsible party\n"
+                + "  │   │   ├─Role………………………………………………………………………………… Principal investigator\n"
+                + "  │   │   └─Party……………………………………………………………………………… International Organization for Standardization\n"
+                + "  │   └─Presentation form………………………………………………………… Document digital\n"
+                + "  ├─Metadata standard (2 of 2)…………………………………………… Geographic Information — Metadata Part 2: Extensions for imagery and gridded data\n"
+                + "  │   ├─Edition…………………………………………………………………………………… ISO 19115-2:2009(E)\n"
+                + "  │   ├─Identifier…………………………………………………………………………… 19115-2\n"
+                + "  │   ├─Cited responsible party\n"
+                + "  │   │   ├─Role………………………………………………………………………………… Principal investigator\n"
+                + "  │   │   └─Party……………………………………………………………………………… International Organization for Standardization\n"
+                + "  │   └─Presentation form………………………………………………………… Document digital\n"
                 + "  ├─Spatial representation info (1 of 2)\n"
                 + "  │   ├─Number of dimensions………………………………………………… 2\n"
                 + "  │   ├─Axis dimension properties (1 of 2)…………… Sample\n"
@@ -116,140 +131,142 @@ public class LandsatReaderTest extends T
                 + "  │   │   └─Date………………………………………………………………………………… 2016-06-27 16:48:12\n"
                 + "  │   │       └─Date type………………………………………………………… Creation\n"
                 + "  │   ├─Credit……………………………………………………………………………………… Derived from U.S. Geological Survey data\n"
-                + "  │   ├─Resource format\n"
-                + "  │   │   └─Format specification citation……………… GeoTIFF Coverage Encoding Profile\n"
-                + "  │   │       └─Alternate title………………………………………… GeoTIFF\n"
                 + "  │   ├─Spatial resolution (1 of 2)\n"
                 + "  │   │   └─Distance……………………………………………………………………… 15.0\n"
                 + "  │   ├─Spatial resolution (2 of 2)\n"
                 + "  │   │   └─Distance……………………………………………………………………… 30.0\n"
-                + "  │   └─Extent\n"
-                + "  │       └─Geographic element\n"
-                + "  │           ├─West bound longitude…………………………… 108°20′24″E\n"
-                + "  │           ├─East bound longitude…………………………… 110°26′24″E\n"
-                + "  │           ├─South bound latitude…………………………… 10°30′N\n"
-                + "  │           ├─North bound latitude…………………………… 12°37′12″N\n"
-                + "  │           └─Extent type code……………………………………… true\n"
+                + "  │   ├─Extent\n"
+                + "  │   │   └─Geographic element\n"
+                + "  │   │       ├─West bound longitude…………………………… 108°20′24″E\n"
+                + "  │   │       ├─East bound longitude…………………………… 110°26′24″E\n"
+                + "  │   │       ├─South bound latitude…………………………… 10°30′N\n"
+                + "  │   │       ├─North bound latitude…………………………… 12°37′12″N\n"
+                + "  │   │       └─Extent type code……………………………………… true\n"
+                + "  │   └─Resource format\n"
+                + "  │       └─Format specification citation……………… GeoTIFF Coverage Encoding Profile\n"
+                + "  │           └─Alternate title………………………………………… GeoTIFF\n"
                 + "  ├─Content info\n"
-                + "  │   ├─Illumination elevation angle…………………………… 58.8\n"
-                + "  │   ├─Illumination azimuth angle………………………………… 116.9\n"
-                + "  │   ├─Cloud cover percentage…………………………………………… 8.3\n"
                 + "  │   ├─Attribute group (1 of 3)\n"
                 + "  │   │   ├─Content type…………………………………………………………… Physical measurement\n"
                 + "  │   │   ├─Attribute (1 of 8)\n"
+                + "  │   │   │   ├─Description…………………………………………………… Coastal Aerosol\n"
+                + "  │   │   │   ├─Name……………………………………………………………………… TestImage_B1.TIF\n"
                 + "  │   │   │   ├─Max value………………………………………………………… 65535.0\n"
                 + "  │   │   │   ├─Min value………………………………………………………… 1.0\n"
-                + "  │   │   │   ├─Peak response……………………………………………… 433.0\n"
                 + "  │   │   │   ├─Scale factor………………………………………………… 0.0127\n"
                 + "  │   │   │   ├─Offset………………………………………………………………… -63.6\n"
-                + "  │   │   │   ├─Transfer function type……………………… Linear\n"
                 + "  │   │   │   ├─Bound units…………………………………………………… nm\n"
-                + "  │   │   │   ├─Description…………………………………………………… Coastal Aerosol\n"
-                + "  │   │   │   └─Name……………………………………………………………………… TestImage_B1.TIF\n"
+                + "  │   │   │   ├─Peak response……………………………………………… 433.0\n"
+                + "  │   │   │   └─Transfer function type……………………… Linear\n"
                 + "  │   │   ├─Attribute (2 of 8)\n"
+                + "  │   │   │   ├─Description…………………………………………………… Blue\n"
+                + "  │   │   │   ├─Name……………………………………………………………………… TestImage_B2.TIF\n"
                 + "  │   │   │   ├─Max value………………………………………………………… 65535.0\n"
                 + "  │   │   │   ├─Min value………………………………………………………… 1.0\n"
-                + "  │   │   │   ├─Peak response……………………………………………… 482.0\n"
                 + "  │   │   │   ├─Scale factor………………………………………………… 0.013\n"
                 + "  │   │   │   ├─Offset………………………………………………………………… -65.1\n"
-                + "  │   │   │   ├─Transfer function type……………………… Linear\n"
                 + "  │   │   │   ├─Bound units…………………………………………………… nm\n"
-                + "  │   │   │   ├─Description…………………………………………………… Blue\n"
-                + "  │   │   │   └─Name……………………………………………………………………… TestImage_B2.TIF\n"
+                + "  │   │   │   ├─Peak response……………………………………………… 482.0\n"
+                + "  │   │   │   └─Transfer function type……………………… Linear\n"
                 + "  │   │   ├─Attribute (3 of 8)\n"
+                + "  │   │   │   ├─Description…………………………………………………… Green\n"
+                + "  │   │   │   ├─Name……………………………………………………………………… TestImage_B3.TIF\n"
                 + "  │   │   │   ├─Max value………………………………………………………… 65535.0\n"
                 + "  │   │   │   ├─Min value………………………………………………………… 1.0\n"
-                + "  │   │   │   ├─Peak response……………………………………………… 562.0\n"
                 + "  │   │   │   ├─Scale factor………………………………………………… 0.012\n"
                 + "  │   │   │   ├─Offset………………………………………………………………… -60.0\n"
-                + "  │   │   │   ├─Transfer function type……………………… Linear\n"
                 + "  │   │   │   ├─Bound units…………………………………………………… nm\n"
-                + "  │   │   │   ├─Description…………………………………………………… Green\n"
-                + "  │   │   │   └─Name……………………………………………………………………… TestImage_B3.TIF\n"
+                + "  │   │   │   ├─Peak response……………………………………………… 562.0\n"
+                + "  │   │   │   └─Transfer function type……………………… Linear\n"
                 + "  │   │   ├─Attribute (4 of 8)\n"
+                + "  │   │   │   ├─Description…………………………………………………… Red\n"
+                + "  │   │   │   ├─Name……………………………………………………………………… TestImage_B4.TIF\n"
                 + "  │   │   │   ├─Max value………………………………………………………… 65535.0\n"
                 + "  │   │   │   ├─Min value………………………………………………………… 1.0\n"
-                + "  │   │   │   ├─Peak response……………………………………………… 655.0\n"
                 + "  │   │   │   ├─Scale factor………………………………………………… 0.0101\n"
                 + "  │   │   │   ├─Offset………………………………………………………………… -50.6\n"
-                + "  │   │   │   ├─Transfer function type……………………… Linear\n"
                 + "  │   │   │   ├─Bound units…………………………………………………… nm\n"
-                + "  │   │   │   ├─Description…………………………………………………… Red\n"
-                + "  │   │   │   └─Name……………………………………………………………………… TestImage_B4.TIF\n"
+                + "  │   │   │   ├─Peak response……………………………………………… 655.0\n"
+                + "  │   │   │   └─Transfer function type……………………… Linear\n"
                 + "  │   │   ├─Attribute (5 of 8)\n"
+                + "  │   │   │   ├─Description…………………………………………………… Near-Infrared\n"
+                + "  │   │   │   ├─Name……………………………………………………………………… TestImage_B5.TIF\n"
                 + "  │   │   │   ├─Max value………………………………………………………… 65535.0\n"
                 + "  │   │   │   ├─Min value………………………………………………………… 1.0\n"
-                + "  │   │   │   ├─Peak response……………………………………………… 865.0\n"
                 + "  │   │   │   ├─Scale factor………………………………………………… 0.00619\n"
                 + "  │   │   │   ├─Offset………………………………………………………………… -31.0\n"
-                + "  │   │   │   ├─Transfer function type……………………… Linear\n"
                 + "  │   │   │   ├─Bound units…………………………………………………… nm\n"
-                + "  │   │   │   ├─Description…………………………………………………… Near-Infrared\n"
-                + "  │   │   │   └─Name……………………………………………………………………… TestImage_B5.TIF\n"
+                + "  │   │   │   ├─Peak response……………………………………………… 865.0\n"
+                + "  │   │   │   └─Transfer function type……………………… Linear\n"
                 + "  │   │   ├─Attribute (6 of 8)\n"
+                + "  │   │   │   ├─Description…………………………………………………… Short Wavelength Infrared (SWIR) 1\n"
+                + "  │   │   │   ├─Name……………………………………………………………………… TestImage_B6.TIF\n"
                 + "  │   │   │   ├─Max value………………………………………………………… 65535.0\n"
                 + "  │   │   │   ├─Min value………………………………………………………… 1.0\n"
-                + "  │   │   │   ├─Peak response……………………………………………… 1610.0\n"
                 + "  │   │   │   ├─Scale factor………………………………………………… 0.00154\n"
                 + "  │   │   │   ├─Offset………………………………………………………………… -7.7\n"
-                + "  │   │   │   ├─Transfer function type……………………… Linear\n"
                 + "  │   │   │   ├─Bound units…………………………………………………… nm\n"
-                + "  │   │   │   ├─Description…………………………………………………… Short Wavelength Infrared (SWIR) 1\n"
-                + "  │   │   │   └─Name……………………………………………………………………… TestImage_B6.TIF\n"
+                + "  │   │   │   ├─Peak response……………………………………………… 1610.0\n"
+                + "  │   │   │   └─Transfer function type……………………… Linear\n"
                 + "  │   │   ├─Attribute (7 of 8)\n"
+                + "  │   │   │   ├─Description…………………………………………………… Short Wavelength Infrared (SWIR) 2\n"
+                + "  │   │   │   ├─Name……………………………………………………………………… TestImage_B7.TIF\n"
                 + "  │   │   │   ├─Max value………………………………………………………… 65535.0\n"
                 + "  │   │   │   ├─Min value………………………………………………………… 1.0\n"
-                + "  │   │   │   ├─Peak response……………………………………………… 2200.0\n"
                 + "  │   │   │   ├─Scale factor………………………………………………… 5.19E-4\n"
                 + "  │   │   │   ├─Offset………………………………………………………………… -2.6\n"
-                + "  │   │   │   ├─Transfer function type……………………… Linear\n"
                 + "  │   │   │   ├─Bound units…………………………………………………… nm\n"
-                + "  │   │   │   ├─Description…………………………………………………… Short Wavelength Infrared (SWIR) 2\n"
-                + "  │   │   │   └─Name……………………………………………………………………… TestImage_B7.TIF\n"
+                + "  │   │   │   ├─Peak response……………………………………………… 2200.0\n"
+                + "  │   │   │   └─Transfer function type……………………… Linear\n"
                 + "  │   │   └─Attribute (8 of 8)\n"
+                + "  │   │       ├─Description…………………………………………………… Cirrus\n"
+                + "  │   │       ├─Name……………………………………………………………………… TestImage_B9.TIF\n"
                 + "  │   │       ├─Max value………………………………………………………… 65535.0\n"
                 + "  │   │       ├─Min value………………………………………………………… 1.0\n"
-                + "  │   │       ├─Peak response……………………………………………… 1375.0\n"
                 + "  │   │       ├─Scale factor………………………………………………… 0.00242\n"
                 + "  │   │       ├─Offset………………………………………………………………… -12.1\n"
-                + "  │   │       ├─Transfer function type……………………… Linear\n"
                 + "  │   │       ├─Bound units…………………………………………………… nm\n"
-                + "  │   │       ├─Description…………………………………………………… Cirrus\n"
-                + "  │   │       └─Name……………………………………………………………………… TestImage_B9.TIF\n"
+                + "  │   │       ├─Peak response……………………………………………… 1375.0\n"
+                + "  │   │       └─Transfer function type……………………… Linear\n"
                 + "  │   ├─Attribute group (2 of 3)\n"
                 + "  │   │   ├─Content type…………………………………………………………… Physical measurement\n"
                 + "  │   │   └─Attribute\n"
+                + "  │   │       ├─Description…………………………………………………… Panchromatic\n"
+                + "  │   │       ├─Name……………………………………………………………………… TestImage_B8.TIF\n"
                 + "  │   │       ├─Max value………………………………………………………… 65535.0\n"
                 + "  │   │       ├─Min value………………………………………………………… 1.0\n"
-                + "  │   │       ├─Peak response……………………………………………… 590.0\n"
                 + "  │   │       ├─Scale factor………………………………………………… 0.0115\n"
                 + "  │   │       ├─Offset………………………………………………………………… -57.3\n"
-                + "  │   │       ├─Transfer function type……………………… Linear\n"
                 + "  │   │       ├─Bound units…………………………………………………… nm\n"
-                + "  │   │       ├─Description…………………………………………………… Panchromatic\n"
-                + "  │   │       └─Name……………………………………………………………………… TestImage_B8.TIF\n"
-                + "  │   └─Attribute group (3 of 3)\n"
-                + "  │       ├─Content type…………………………………………………………… Physical measurement\n"
-                + "  │       ├─Attribute (1 of 2)\n"
-                + "  │       │   ├─Max value………………………………………………………… 65535.0\n"
-                + "  │       │   ├─Min value………………………………………………………… 1.0\n"
-                + "  │       │   ├─Peak response……………………………………………… 10800.0\n"
-                + "  │       │   ├─Scale factor………………………………………………… 3.34E-4\n"
-                + "  │       │   ├─Offset………………………………………………………………… 0.1\n"
-                + "  │       │   ├─Transfer function type……………………… Linear\n"
-                + "  │       │   ├─Bound units…………………………………………………… nm\n"
-                + "  │       │   ├─Description…………………………………………………… Thermal Infrared Sensor (TIRS) 1\n"
-                + "  │       │   └─Name……………………………………………………………………… TestImage_B10.TIF\n"
-                + "  │       └─Attribute (2 of 2)\n"
-                + "  │           ├─Max value………………………………………………………… 65535.0\n"
-                + "  │           ├─Min value………………………………………………………… 1.0\n"
-                + "  │           ├─Peak response……………………………………………… 12000.0\n"
-                + "  │           ├─Scale factor………………………………………………… 3.34E-4\n"
-                + "  │           ├─Offset………………………………………………………………… 0.1\n"
-                + "  │           ├─Transfer function type……………………… Linear\n"
-                + "  │           ├─Bound units…………………………………………………… nm\n"
-                + "  │           ├─Description…………………………………………………… Thermal Infrared Sensor (TIRS) 2\n"
-                + "  │           └─Name……………………………………………………………………… TestImage_B11.TIF\n"
+                + "  │   │       ├─Peak response……………………………………………… 590.0\n"
+                + "  │   │       └─Transfer function type……………………… Linear\n"
+                + "  │   ├─Attribute group (3 of 3)\n"
+                + "  │   │   ├─Content type…………………………………………………………… Physical measurement\n"
+                + "  │   │   ├─Attribute (1 of 2)\n"
+                + "  │   │   │   ├─Description…………………………………………………… Thermal Infrared Sensor (TIRS) 1\n"
+                + "  │   │   │   ├─Name……………………………………………………………………… TestImage_B10.TIF\n"
+                + "  │   │   │   ├─Max value………………………………………………………… 65535.0\n"
+                + "  │   │   │   ├─Min value………………………………………………………… 1.0\n"
+                + "  │   │   │   ├─Scale factor………………………………………………… 3.34E-4\n"
+                + "  │   │   │   ├─Offset………………………………………………………………… 0.1\n"
+                + "  │   │   │   ├─Bound units…………………………………………………… nm\n"
+                + "  │   │   │   ├─Peak response……………………………………………… 10800.0\n"
+                + "  │   │   │   └─Transfer function type……………………… Linear\n"
+                + "  │   │   └─Attribute (2 of 2)\n"
+                + "  │   │       ├─Description…………………………………………………… Thermal Infrared Sensor (TIRS) 2\n"
+                + "  │   │       ├─Name……………………………………………………………………… TestImage_B11.TIF\n"
+                + "  │   │       ├─Max value………………………………………………………… 65535.0\n"
+                + "  │   │       ├─Min value………………………………………………………… 1.0\n"
+                + "  │   │       ├─Scale factor………………………………………………… 3.34E-4\n"
+                + "  │   │       ├─Offset………………………………………………………………… 0.1\n"
+                + "  │   │       ├─Bound units…………………………………………………… nm\n"
+                + "  │   │       ├─Peak response……………………………………………… 12000.0\n"
+                + "  │   │       └─Transfer function type……………………… Linear\n"
+                + "  │   ├─Illumination elevation angle…………………………… 58.8\n"
+                + "  │   ├─Illumination azimuth angle………………………………… 116.9\n"
+                + "  │   └─Cloud cover percentage…………………………………………… 8.3\n"
+                + "  ├─Metadata scope\n"
+                + "  │   └─Resource scope………………………………………………………………… COVERAGE\n"
                 + "  ├─Acquisition information\n"
                 + "  │   ├─Acquisition requirement\n"
                 + "  │   │   └─Identifier………………………………………………………………… Software unit tests\n"
@@ -265,23 +282,6 @@ public class LandsatReaderTest extends T
                 + "  │           └─Identifier……………………………………………………… Pseudo TIRS\n"
                 + "  ├─Date info………………………………………………………………………………………… 2016-06-27 16:48:12\n"
                 + "  │   └─Date type……………………………………………………………………………… Creation\n"
-                + "  ├─Default locale+other locale………………………………………… en\n"
-                + "  ├─Metadata scope\n"
-                + "  │   └─Resource scope………………………………………………………………… COVERAGE\n"
-                + "  ├─Metadata identifier……………………………………………………………… LandsatTest\n"
-                + "  ├─Metadata standard (1 of 2)…………………………………………… Geographic Information — Metadata Part 1: Fundamentals\n"
-                + "  │   ├─Edition…………………………………………………………………………………… ISO 19115-1:2014(E)\n"
-                + "  │   ├─Identifier…………………………………………………………………………… 19115-1\n"
-                + "  │   ├─Cited responsible party\n"
-                + "  │   │   ├─Role………………………………………………………………………………… Principal investigator\n"
-                + "  │   │   └─Party……………………………………………………………………………… International Organization for Standardization\n"
-                + "  │   └─Presentation form………………………………………………………… Document digital\n"
-                + "  └─Metadata standard (2 of 2)…………………………………………… Geographic Information — Metadata Part 2: Extensions for imagery and gridded data\n"
-                + "      ├─Edition…………………………………………………………………………………… ISO 19115-2:2009(E)\n"
-                + "      ├─Identifier…………………………………………………………………………… 19115-2\n"
-                + "      ├─Cited responsible party\n"
-                + "      │   ├─Role………………………………………………………………………………… Principal investigator\n"
-                + "      │   └─Party……………………………………………………………………………… International Organization for Standardization\n"
-                + "      └─Presentation form………………………………………………………… Document digital\n", text);
+                + "  └─Default locale+other locale………………………………………… en\n", text);
     }
 }

Modified: sis/trunk/storage/sis-netcdf/src/test/java/org/apache/sis/storage/netcdf/MetadataReaderTest.java
URL: http://svn.apache.org/viewvc/sis/trunk/storage/sis-netcdf/src/test/java/org/apache/sis/storage/netcdf/MetadataReaderTest.java?rev=1825355&r1=1825354&r2=1825355&view=diff
==============================================================================
--- sis/trunk/storage/sis-netcdf/src/test/java/org/apache/sis/storage/netcdf/MetadataReaderTest.java [UTF-8] (original)
+++ sis/trunk/storage/sis-netcdf/src/test/java/org/apache/sis/storage/netcdf/MetadataReaderTest.java [UTF-8] Mon Feb 26 11:28:17 2018
@@ -39,7 +39,7 @@ import static org.apache.sis.test.TestUt
  * for reading netCDF attributes.
  *
  * @author  Martin Desruisseaux (Geomatys)
- * @version 0.8
+ * @version 1.0
  * @since   0.3
  * @module
  */
@@ -97,9 +97,29 @@ public final strictfp class MetadataRead
         final String text = formatNameAndValue(DefaultMetadata.castOrCopy(actual).asTreeTable());
         assertMultilinesEquals(
             "Metadata\n" +
+            "  ├─Metadata identifier……………………………………………………………… NCEP/SST/Global_5x2p5deg/SST_Global_5x2p5deg_20050922_0000.nc\n" +
+            "  │   └─Authority……………………………………………………………………………… edu.ucar.unidata\n" +
             "  ├─Contact\n" +
-            "  │   ├─Individual…………………………………………………………………………… NOAA/NWS/NCEP\n" +     // TODO: actually we can not distinguish individual from organization.
-            "  │   └─Role…………………………………………………………………………………………… Point of contact\n" +
+            "  │   ├─Role…………………………………………………………………………………………… Point of contact\n" +
+            "  │   └─Individual…………………………………………………………………………… NOAA/NWS/NCEP\n" +     // TODO: actually we can not distinguish individual from organization.
+            "  ├─Metadata standard (1 of 2)…………………………………………… Geographic Information — Metadata Part 1: Fundamentals\n" +
+            "  │   ├─Edition…………………………………………………………………………………… ISO 19115-1:2014(E)\n" +
+            "  │   ├─Identifier…………………………………………………………………………… 19115-1\n" +
+            "  │   │   ├─Code space………………………………………………………………… ISO\n" +
+            "  │   │   └─Version………………………………………………………………………… 2014(E)\n" +
+            "  │   ├─Cited responsible party\n" +
+            "  │   │   ├─Role………………………………………………………………………………… Principal investigator\n" +
+            "  │   │   └─Organisation…………………………………………………………… International Organization for Standardization\n" +
+            "  │   └─Presentation form………………………………………………………… Document digital\n" +
+            "  ├─Metadata standard (2 of 2)…………………………………………… Geographic Information — Metadata Part 2: Extensions for imagery and gridded data\n" +
+            "  │   ├─Edition…………………………………………………………………………………… ISO 19115-2:2009(E)\n" +
+            "  │   ├─Identifier…………………………………………………………………………… 19115-2\n" +
+            "  │   │   ├─Code space………………………………………………………………… ISO\n" +
+            "  │   │   └─Version………………………………………………………………………… 2009(E)\n" +
+            "  │   ├─Cited responsible party\n" +
+            "  │   │   ├─Role………………………………………………………………………………… Principal investigator\n" +
+            "  │   │   └─Organisation…………………………………………………………… International Organization for Standardization\n" +
+            "  │   └─Presentation form………………………………………………………… Document digital\n" +
             "  ├─Spatial representation info\n" +
             "  │   ├─Number of dimensions………………………………………………… 3\n" +
             "  │   ├─Axis dimension properties (1 of 3)…………… Column\n" +
@@ -117,62 +137,42 @@ public final strictfp class MetadataRead
             "  │   │   ├─Identifier………………………………………………………………… NCEP/SST/Global_5x2p5deg/SST_Global_5x2p5deg_20050922_0000.nc\n" +
             "  │   │   │   └─Authority………………………………………………………… edu.ucar.unidata\n" +
             "  │   │   └─Cited responsible party\n" +
-            "  │   │       ├─Individual……………………………………………………… NOAA/NWS/NCEP\n" +  // TODO: actually we can not distinguish individual from organization.
-            "  │   │       └─Role……………………………………………………………………… Originator\n" +
+            "  │   │       ├─Role……………………………………………………………………… Originator\n" +
+            "  │   │       └─Individual……………………………………………………… NOAA/NWS/NCEP\n" +  // TODO: actually we can not distinguish individual from organization.
             "  │   ├─Abstract………………………………………………………………………………… NCEP SST Global 5.0 x 2.5 degree model data\n" +
             "  │   ├─Point of contact\n" +
-            "  │   │   ├─Individual………………………………………………………………… NOAA/NWS/NCEP\n" +
-            "  │   │   └─Role………………………………………………………………………………… Point of contact\n" +
+            "  │   │   ├─Role………………………………………………………………………………… Point of contact\n" +
+            "  │   │   └─Individual………………………………………………………………… NOAA/NWS/NCEP\n" +
+            "  │   ├─Spatial representation type……………………………… Grid\n" +
+            "  │   ├─Extent\n" +
+            "  │   │   ├─Geographic element\n" +
+            "  │   │   │   ├─West bound longitude…………………………… 180°W\n" +
+            "  │   │   │   ├─East bound longitude…………………………… 180°E\n" +
+            "  │   │   │   ├─South bound latitude…………………………… 90°S\n" +
+            "  │   │   │   ├─North bound latitude…………………………… 90°N\n" +
+            "  │   │   │   └─Extent type code……………………………………… true\n" +
+            "  │   │   └─Vertical element\n" +
+            "  │   │       ├─Minimum value……………………………………………… 0.0\n" +
+            "  │   │       └─Maximum value……………………………………………… 0.0\n" +
             "  │   ├─Descriptive keywords\n" +
             "  │   │   ├─Keyword………………………………………………………………………… EARTH SCIENCE > Oceans > Ocean Temperature > Sea Surface Temperature\n" +
             "  │   │   ├─Type………………………………………………………………………………… Theme\n" +
             "  │   │   └─Thesaurus name……………………………………………………… GCMD Science Keywords\n" +
-            "  │   ├─Resource constraints\n" +
-            "  │   │   └─Use limitation……………………………………………………… Freely available\n" +
-            "  │   ├─Spatial representation type……………………………… Grid\n" +
-            "  │   └─Extent\n" +
-            "  │       ├─Geographic element\n" +
-            "  │       │   ├─West bound longitude…………………………… 180°W\n" +
-            "  │       │   ├─East bound longitude…………………………… 180°E\n" +
-            "  │       │   ├─South bound latitude…………………………… 90°S\n" +
-            "  │       │   ├─North bound latitude…………………………… 90°N\n" +
-            "  │       │   └─Extent type code……………………………………… true\n" +
-            "  │       └─Vertical element\n" +
-            "  │           ├─Minimum value……………………………………………… 0.0\n" +
-            "  │           └─Maximum value……………………………………………… 0.0\n" +
+            "  │   └─Resource constraints\n" +
+            "  │       └─Use limitation……………………………………………………… Freely available\n" +
             "  ├─Content info\n" +
             "  │   └─Attribute group\n" +
             "  │       └─Attribute…………………………………………………………………… SST\n" +
-            "  │           ├─Units…………………………………………………………………… K\n" +
             "  │           ├─Description…………………………………………………… Sea temperature\n" +
-            "  │           └─Name……………………………………………………………………… sea_water_temperature\n" +
+            "  │           ├─Name……………………………………………………………………… sea_water_temperature\n" +
+            "  │           └─Units…………………………………………………………………… K\n" +
             "  ├─Data quality info\n" +
             "  │   ├─Scope\n" +
             "  │   │   └─Level……………………………………………………………………………… Dataset\n" +
             "  │   └─Lineage\n" +
             "  │       └─Statement…………………………………………………………………… 2003-04-07 12:12:50 - created by gribtocdl" +
             "              2005-09-26T21:50:00 - edavis - add attributes for dataset discovery\n" +
-            "  ├─Metadata scope\n" +
-            "  │   └─Resource scope………………………………………………………………… Dataset\n" +
-            "  ├─Metadata identifier……………………………………………………………… NCEP/SST/Global_5x2p5deg/SST_Global_5x2p5deg_20050922_0000.nc\n" +
-            "  │   └─Authority……………………………………………………………………………… edu.ucar.unidata\n" +
-            "  ├─Metadata standard (1 of 2)…………………………………………… Geographic Information — Metadata Part 1: Fundamentals\n" +
-            "  │   ├─Edition…………………………………………………………………………………… ISO 19115-1:2014(E)\n" +
-            "  │   ├─Identifier…………………………………………………………………………… 19115-1\n" +
-            "  │   │   ├─Code space………………………………………………………………… ISO\n" +
-            "  │   │   └─Version………………………………………………………………………… 2014(E)\n" +
-            "  │   ├─Cited responsible party\n" +
-            "  │   │   ├─Organisation…………………………………………………………… International Organization for Standardization\n" +
-            "  │   │   └─Role………………………………………………………………………………… Principal investigator\n" +
-            "  │   └─Presentation form………………………………………………………… Document digital\n" +
-            "  └─Metadata standard (2 of 2)…………………………………………… Geographic Information — Metadata Part 2: Extensions for imagery and gridded data\n" +
-            "      ├─Edition…………………………………………………………………………………… ISO 19115-2:2009(E)\n" +
-            "      ├─Identifier…………………………………………………………………………… 19115-2\n" +
-            "      │   ├─Code space………………………………………………………………… ISO\n" +
-            "      │   └─Version………………………………………………………………………… 2009(E)\n" +
-            "      ├─Cited responsible party\n" +
-            "      │   ├─Organisation…………………………………………………………… International Organization for Standardization\n" +
-            "      │   └─Role………………………………………………………………………………… Principal investigator\n" +
-            "      └─Presentation form………………………………………………………… Document digital\n", text);
+            "  └─Metadata scope\n" +
+            "      └─Resource scope………………………………………………………………… Dataset\n", text);
     }
 }

Modified: sis/trunk/storage/sis-storage/src/test/java/org/apache/sis/internal/storage/xml/MimeTypeDetectorTest.java
URL: http://svn.apache.org/viewvc/sis/trunk/storage/sis-storage/src/test/java/org/apache/sis/internal/storage/xml/MimeTypeDetectorTest.java?rev=1825355&r1=1825354&r2=1825355&view=diff
==============================================================================
--- sis/trunk/storage/sis-storage/src/test/java/org/apache/sis/internal/storage/xml/MimeTypeDetectorTest.java [UTF-8] (original)
+++ sis/trunk/storage/sis-storage/src/test/java/org/apache/sis/internal/storage/xml/MimeTypeDetectorTest.java [UTF-8] Mon Feb 26 11:28:17 2018
@@ -87,7 +87,7 @@ public final strictfp class MimeTypeDete
     @DependsOnMethod("testGMDFromString")
     public void testGMDFromInputStream() throws IOException {
         final String type;
-        try (InputStream in = DefaultExtentTest.getResource("Extent.xml").openStream()) {
+        try (InputStream in = DefaultExtentTest.getTestFile(true).openStream()) {
             assertEquals('<', in.read());
             assertEquals('?', in.read());
             final MimeTypeDetector detector = new MimeTypeDetector(singletonMap(Namespaces.GMD, "application/vnd.iso.19139+xml")) {

Modified: sis/trunk/storage/sis-storage/src/test/java/org/apache/sis/internal/storage/xml/StoreTest.java
URL: http://svn.apache.org/viewvc/sis/trunk/storage/sis-storage/src/test/java/org/apache/sis/internal/storage/xml/StoreTest.java?rev=1825355&r1=1825354&r2=1825355&view=diff
==============================================================================
--- sis/trunk/storage/sis-storage/src/test/java/org/apache/sis/internal/storage/xml/StoreTest.java [UTF-8] (original)
+++ sis/trunk/storage/sis-storage/src/test/java/org/apache/sis/internal/storage/xml/StoreTest.java [UTF-8] Mon Feb 26 11:28:17 2018
@@ -18,7 +18,6 @@ package org.apache.sis.internal.storage.
 
 import java.util.Locale;
 import java.io.StringReader;
-import java.nio.charset.StandardCharsets;
 import org.opengis.metadata.Metadata;
 import org.opengis.metadata.citation.*;
 import org.opengis.metadata.identification.CharacterSet;
@@ -31,13 +30,14 @@ import org.junit.Test;
 
 import static org.opengis.test.Assert.*;
 import static org.apache.sis.test.TestUtilities.getSingleton;
+import static org.apache.sis.metadata.iso.DefaultMetadataTest.REGRESSION;
 
 
 /**
  * Tests {@link Store}.
  *
  * @author  Martin Desruisseaux (Geomatys)
- * @version 0.7
+ * @version 1.0
  * @since   0.4
  * @module
  */
@@ -101,7 +101,8 @@ public final strictfp class StoreTest ex
         final OnlineResource   resource = contact.getOnlineResource();
 
         assertEquals(Locale.ENGLISH,              metadata.getLanguage());
-        assertEquals(CharacterSet.UTF_8,          metadata.getCharacterSet());
+        if (!REGRESSION)
+            assertEquals(CharacterSet.UTF_8,      metadata.getCharacterSet());
         assertEquals(Role.PRINCIPAL_INVESTIGATOR, resp.getRole());
         assertEquals("Apache SIS",                String.valueOf(resp.getOrganisationName()));
         assertEquals("http://sis.apache.org",     String.valueOf(resource.getLinkage()));