/* * Geotoolkit - An Open Source Java GIS Toolkit * http://www.geotoolkit.org * * (C) 2008 - 2009, Geomatys * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. */ package org.geotoolkit.xsd.xml.v2001; import java.util.logging.Logger; import javax.xml.bind.JAXBContext; import javax.xml.bind.Marshaller; import javax.xml.bind.Unmarshaller; //Junit dependencies import org.apache.sis.util.logging.Logging; import org.apache.sis.xml.MarshallerPool; import org.junit.*; import static org.junit.Assert.*; /** * * @author Guilhem Legal (Geomatys) * @module */ public class XsdXMLBindingTest extends org.geotoolkit.test.TestBase { private Logger logger = Logging.getLogger("org.geotoolkit.wfs.xml"); private static MarshallerPool pool; private Unmarshaller unmarshaller; private Marshaller marshaller; @BeforeClass public static void setUpClass() throws Exception { pool = new MarshallerPool(JAXBContext.newInstance("org.geotoolkit.xsd.xml.v2001"), null); } @AfterClass public static void tearDownClass() throws Exception { } @Before public void setUp() throws Exception { unmarshaller = pool.acquireUnmarshaller(); marshaller = pool.acquireMarshaller(); marshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true); } @After public void tearDown() throws Exception { } @Test public void unmarshallingTest() throws Exception { } }