Modified: sis/branches/JDK8/ide-project/NetBeans/build.xml
URL: 
http://svn.apache.org/viewvc/sis/branches/JDK8/ide-project/NetBeans/build.xml?rev=1825254&r1=1825253&r2=1825254&view=diff
==============================================================================
--- sis/branches/JDK8/ide-project/NetBeans/build.xml (original)
+++ sis/branches/JDK8/ide-project/NetBeans/build.xml Sat Feb 24 16:13:58 2018
@@ -69,6 +69,7 @@
       <!-- Other resources (properties files, SQL scripts, native libraries). 
-->
       <fileset dir="${project.root}/core/sis-utility/src/main/resources">
         <include name="**/*.properties"/>
+        <include name="**/*.lst"/>
       </fileset>
       <fileset dir="${project.root}/core/sis-metadata/src/main/resources">
         <include name="**/*.sql"/>

Modified: sis/branches/JDK8/pom.xml
URL: 
http://svn.apache.org/viewvc/sis/branches/JDK8/pom.xml?rev=1825254&r1=1825253&r2=1825254&view=diff
==============================================================================
--- sis/branches/JDK8/pom.xml (original)
+++ sis/branches/JDK8/pom.xml Sat Feb 24 16:13:58 2018
@@ -50,7 +50,7 @@ Apache SIS is a free software, Java lang
  SIS provides data structures for geographic data and associated metadata 
along with methods
  to manipulate those data structures. The SIS metadata module forms the base 
of the library
  and enables the creation of metadata objects which comply with the ISO 19115 
metadata model
- and which can be read from or written to ISO 19139 compliant XML documents.
+ and which can be read from or written to ISO 19115-3 compliant XML documents.
  The SIS referencing module will enable the construction of geodetic data 
structures for
  geospatial referencing based on the ISO 19111 model such as axis, projection 
and coordinate
  reference system definitions, along with the associated operations which 
enable the mathematical
@@ -326,6 +326,15 @@ Apache SIS is a free software, Java lang
       </roles>
     </contributor>
     <contributor>
+      <name>Cullen Rombach</name>
+      <organization>Image Matters</organization>
+      <organizationUrl>http://www.imagemattersllc.com</organizationUrl>
+      <timezone>-5</timezone>
+      <roles>
+        <role>developer</role>
+      </roles>
+    </contributor>
+    <contributor>
       <name>Guilhem Legal</name>
       <email>[email protected]</email>
       <organization>Geomatys</organization>

Modified: 
sis/branches/JDK8/profiles/sis-french-profile/src/main/java/org/apache/sis/internal/profile/fra/DataIdentification.java
URL: 
http://svn.apache.org/viewvc/sis/branches/JDK8/profiles/sis-french-profile/src/main/java/org/apache/sis/internal/profile/fra/DataIdentification.java?rev=1825254&r1=1825253&r2=1825254&view=diff
==============================================================================
--- 
sis/branches/JDK8/profiles/sis-french-profile/src/main/java/org/apache/sis/internal/profile/fra/DataIdentification.java
 [UTF-8] (original)
+++ 
sis/branches/JDK8/profiles/sis-french-profile/src/main/java/org/apache/sis/internal/profile/fra/DataIdentification.java
 [UTF-8] Sat Feb 24 16:13:58 2018
@@ -51,7 +51,7 @@ import org.apache.sis.metadata.iso.ident
  */
 @SuppressWarnings("CloneableClassWithoutClone")                 // 
ModifiableMetadata needs shallow clones.
 @XmlType(name = "FRA_DataIdentification_Type")
-@XmlRootElement(name ="FRA_DataIdentification")
+@XmlRootElement(name = "FRA_DataIdentification")
 public class DataIdentification extends DefaultDataIdentification {
     /**
      * For serialization purpose.

Modified: 
sis/branches/JDK8/profiles/sis-french-profile/src/test/java/org/apache/sis/internal/profile/fra/DataIdentificationTest.java
URL: 
http://svn.apache.org/viewvc/sis/branches/JDK8/profiles/sis-french-profile/src/test/java/org/apache/sis/internal/profile/fra/DataIdentificationTest.java?rev=1825254&r1=1825253&r2=1825254&view=diff
==============================================================================
--- 
sis/branches/JDK8/profiles/sis-french-profile/src/test/java/org/apache/sis/internal/profile/fra/DataIdentificationTest.java
 [UTF-8] (original)
+++ 
sis/branches/JDK8/profiles/sis-french-profile/src/test/java/org/apache/sis/internal/profile/fra/DataIdentificationTest.java
 [UTF-8] Sat Feb 24 16:13:58 2018
@@ -17,8 +17,8 @@
 package org.apache.sis.internal.profile.fra;
 
 import javax.xml.bind.JAXBException;
-import org.apache.sis.xml.XML;
-import org.apache.sis.test.TestCase;
+import org.apache.sis.test.XMLTestCase;
+import org.junit.Ignore;
 import org.junit.Test;
 
 import static org.apache.sis.test.MetadataAssert.*;
@@ -29,17 +29,20 @@ import static org.apache.sis.test.TestUt
  * Tests (un)marshalling of French profile of data identification.
  *
  * @author  Martin Desruisseaux (Geomatys)
- * @version 0.4
+ * @version 1.0
  * @since   0.4
  * @module
  */
-public final strictfp class DataIdentificationTest extends TestCase {
+public final strictfp class DataIdentificationTest extends XMLTestCase {
     /**
      * Tests marshalling and unmarshalling of a XML fragment.
      *
      * @throws JAXBException if an error occurred during (un)marshalling.
+     *
+     * @see <a href="https://issues.apache.org/jira/browse/SIS-404";>SIS-404</a>
      */
     @Test
+    @Ignore("Verify if we should discontinue this profile.")
     public void testMarshalling() throws JAXBException {
         final String xml =
                 "<fra:FRA_DataIdentification 
xmlns:gmd=\"http://www.isotc211.org/2005/gmd\""; +
@@ -61,12 +64,11 @@ public final strictfp class DataIdentifi
                 "  </fra:relatedCitation>\n" +
                 "</fra:FRA_DataIdentification>";
 
-        final Object id = XML.unmarshal(xml);
-        assertInstanceOf("Expected an AFNOR instance.", 
DataIdentification.class, id);
-        assertTitleEquals("citation", "Main documentation.", 
((DataIdentification) id).getCitation());
-        assertTitleEquals("relatedCitations", "Related documentation.", 
getSingleton(((DataIdentification) id).getRelatedCitations()));
+        final DataIdentification id = unmarshal(DataIdentification.class, xml);
+        assertTitleEquals("citation", "Main documentation.", id.getCitation());
+        assertTitleEquals("relatedCitations", "Related documentation.", 
getSingleton(id.getRelatedCitations()));
 
-        final String actual = XML.marshal(id);
+        final String actual = marshal(id, VERSION_2007);
         assertXmlEquals(xml, actual, "xmlns:*");
     }
 }

Modified: 
sis/branches/JDK8/profiles/sis-french-profile/src/test/java/org/apache/sis/internal/profile/fra/DirectReferenceSystemTest.java
URL: 
http://svn.apache.org/viewvc/sis/branches/JDK8/profiles/sis-french-profile/src/test/java/org/apache/sis/internal/profile/fra/DirectReferenceSystemTest.java?rev=1825254&r1=1825253&r2=1825254&view=diff
==============================================================================
--- 
sis/branches/JDK8/profiles/sis-french-profile/src/test/java/org/apache/sis/internal/profile/fra/DirectReferenceSystemTest.java
 [UTF-8] (original)
+++ 
sis/branches/JDK8/profiles/sis-french-profile/src/test/java/org/apache/sis/internal/profile/fra/DirectReferenceSystemTest.java
 [UTF-8] Sat Feb 24 16:13:58 2018
@@ -38,7 +38,7 @@ import static org.apache.sis.test.Assert
  *
  * @author  Cédric Briançon (Geomatys)
  * @author  Guilhem Legal (Geomatys)
- * @version 0.4
+ * @version 1.0
  * @since   0.5
  * @module
  */
@@ -76,7 +76,7 @@ public final strictfp class DirectRefere
      */
     @Test
     public void marshallingTest() throws JAXBException {
-        assertMarshalEqualsFile(XML_FILE, createMetadata(false), "xmlns:*", 
"xsi:schemaLocation");
+        assertMarshalEqualsFile(XML_FILE, createMetadata(false), VERSION_2007, 
"xmlns:*", "xsi:schemaLocation");
     }
 
     /**

Modified: 
sis/branches/JDK8/storage/sis-earth-observation/src/test/java/org/apache/sis/storage/earthobservation/LandsatReaderTest.java
URL: 
http://svn.apache.org/viewvc/sis/branches/JDK8/storage/sis-earth-observation/src/test/java/org/apache/sis/storage/earthobservation/LandsatReaderTest.java?rev=1825254&r1=1825253&r2=1825254&view=diff
==============================================================================
--- 
sis/branches/JDK8/storage/sis-earth-observation/src/test/java/org/apache/sis/storage/earthobservation/LandsatReaderTest.java
 [UTF-8] (original)
+++ 
sis/branches/JDK8/storage/sis-earth-observation/src/test/java/org/apache/sis/storage/earthobservation/LandsatReaderTest.java
 [UTF-8] Sat Feb 24 16:13:58 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,7 +94,26 @@ public class LandsatReaderTest extends T
         final String text = 
formatNameAndValue(DefaultMetadata.castOrCopy(actual).asTreeTable());
         assertMultilinesEquals(
                 "Metadata\n"
+                + "  ├─Metadata identifier……………………………………………………………… 
LandsatTest\n"
                 + "  ├─Language…………………………………………………………………………………………… en\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"
+                + "  │   │   ├─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 (1 of 2)\n"
                 + "  │   ├─Number of dimensions………………………………………………… 2\n"
                 + "  │   ├─Axis dimension properties (1 of 2)…………… Sample\n"
@@ -117,140 +136,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"
@@ -264,28 +285,7 @@ public class LandsatReaderTest extends T
                 + "  │       ├─Identifier………………………………………………………………… Pseudo 
LANDSAT\n"
                 + "  │       └─Instrument\n"
                 + "  │           └─Identifier……………………………………………………… Pseudo 
TIRS\n"
-                + "  ├─Date info………………………………………………………………………………………… 2016-06-27 
16:48:12\n"
-                + "  │   └─Date type……………………………………………………………………………… Creation\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"
-                + "  │   │   ├─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);
+                + "  └─Date info………………………………………………………………………………………… 2016-06-27 
16:48:12\n"
+                + "      └─Date type……………………………………………………………………………… 
Creation\n", text);
     }
 }

Modified: 
sis/branches/JDK8/storage/sis-netcdf/src/test/java/org/apache/sis/storage/netcdf/MetadataReaderTest.java
URL: 
http://svn.apache.org/viewvc/sis/branches/JDK8/storage/sis-netcdf/src/test/java/org/apache/sis/storage/netcdf/MetadataReaderTest.java?rev=1825254&r1=1825253&r2=1825254&view=diff
==============================================================================
--- 
sis/branches/JDK8/storage/sis-netcdf/src/test/java/org/apache/sis/storage/netcdf/MetadataReaderTest.java
 [UTF-8] (original)
+++ 
sis/branches/JDK8/storage/sis-netcdf/src/test/java/org/apache/sis/storage/netcdf/MetadataReaderTest.java
 [UTF-8] Sat Feb 24 16:13:58 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/branches/JDK8/storage/sis-storage/src/test/java/org/apache/sis/internal/storage/xml/MimeTypeDetectorTest.java
URL: 
http://svn.apache.org/viewvc/sis/branches/JDK8/storage/sis-storage/src/test/java/org/apache/sis/internal/storage/xml/MimeTypeDetectorTest.java?rev=1825254&r1=1825253&r2=1825254&view=diff
==============================================================================
--- 
sis/branches/JDK8/storage/sis-storage/src/test/java/org/apache/sis/internal/storage/xml/MimeTypeDetectorTest.java
 [UTF-8] (original)
+++ 
sis/branches/JDK8/storage/sis-storage/src/test/java/org/apache/sis/internal/storage/xml/MimeTypeDetectorTest.java
 [UTF-8] Sat Feb 24 16:13:58 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/branches/JDK8/storage/sis-storage/src/test/java/org/apache/sis/internal/storage/xml/StoreTest.java
URL: 
http://svn.apache.org/viewvc/sis/branches/JDK8/storage/sis-storage/src/test/java/org/apache/sis/internal/storage/xml/StoreTest.java?rev=1825254&r1=1825253&r2=1825254&view=diff
==============================================================================
--- 
sis/branches/JDK8/storage/sis-storage/src/test/java/org/apache/sis/internal/storage/xml/StoreTest.java
 [UTF-8] (original)
+++ 
sis/branches/JDK8/storage/sis-storage/src/test/java/org/apache/sis/internal/storage/xml/StoreTest.java
 [UTF-8] Sat Feb 24 16:13:58 2018
@@ -30,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
  */
@@ -102,7 +103,8 @@ public final strictfp class StoreTest ex
 
         assertInstanceOf("party", Organisation.class, party);
         assertEquals(Locale.ENGLISH,              
getSingleton(metadata.getLanguages()));
-        assertEquals(StandardCharsets.UTF_8,      
getSingleton(metadata.getCharacterSets()));
+        if (!REGRESSION)
+            assertEquals(StandardCharsets.UTF_8,  
getSingleton(metadata.getCharacterSets()));
         assertEquals(Role.PRINCIPAL_INVESTIGATOR, resp.getRole());
         assertEquals("Apache SIS",                
String.valueOf(party.getName()));
         assertEquals("http://sis.apache.org";,     
String.valueOf(resource.getLinkage()));


Reply via email to