use of org.apache.sis.xml.MarshallerPool in project sis by apache.
the class DefaultPrimeMeridianTest method testMarshallGML31.
/**
* Tests marshalling in the GML 3.1 namespace.
*
* @throws JAXBException if an error occurred during marshalling.
*/
@Test
@DependsOnMethod("testMarshall")
public void testMarshallGML31() throws JAXBException {
final DefaultPrimeMeridian pm = new DefaultPrimeMeridian(PrimeMeridianMock.GREENWICH);
final MarshallerPool pool = getMarshallerPool();
final Marshaller marshaller = pool.acquireMarshaller();
marshaller.setProperty(XML.GML_VERSION, LegacyNamespaces.VERSION_3_0);
final String xml = marshal(marshaller, pm);
pool.recycle(marshaller);
assertXmlEquals(getGreenwichXml(LegacyNamespaces.GML), xml, "xmlns:*", "xsi:schemaLocation");
}
Aggregations