@After public void tearDown() { if (unmarshaller != null) { pool.recycle(unmarshaller); } if (marshaller != null) { pool.recycle(marshaller); } }
@Before public void setUp() throws JAXBException { final Map<String, Object> properties = new HashMap<>(); properties.put(LegacyNamespaces.APPLY_NAMESPACE_REPLACEMENTS, Boolean.TRUE); pool = new MarshallerPool( JAXBContext.newInstance( "org.geotoolkit.wms.xml.v111:" + "org.geotoolkit.wms.xml.v130:" + "org.geotoolkit.inspire.xml.vs:" + "org.apache.sis.internal.jaxb.geometry"), properties); unmarshaller = pool.acquireUnmarshaller(); marshaller = pool.acquireMarshaller(); }