예제 #1
0
 @After
 public void tearDown() {
   if (unmarshaller != null) {
     pool.recycle(unmarshaller);
   }
   if (marshaller != null) {
     pool.recycle(marshaller);
   }
 }
예제 #2
0
 @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();
 }