Package org.geoserver.gss.xml

Source Code of org.geoserver.gss.xml.PostDiffTypeResponseBindingTest

/* (c) 2014 Open Source Geospatial Foundation - all rights reserved
* (c) 2001 - 2013 OpenPlans
* This code is licensed under the GPL 2.0 license, available at the root
* application directory.
*/
package org.geoserver.gss.xml;

import static org.custommonkey.xmlunit.XMLAssert.*;

import org.geoserver.gss.PostDiffResponseType;
import org.w3c.dom.Document;


public class PostDiffTypeResponseBindingTest extends GSSXMLTestSupport {

   
    public void testEncode() throws Exception {
        PostDiffResponseType response = new PostDiffResponseType();
       
        Document doc = encode(response, GSS.PostDiffResponse);
        // print(doc);
       
        assertXpathEvaluatesTo("true", "/gss:PostDiffResponse/@success", doc);
    }
   
    public void testParse() throws Exception {
        document = dom("PostDiffResponse.xml");
        PostDiffResponseType pd = (PostDiffResponseType) parse(GSS.PostDiffResponse);
        // nothing else to do, the type is actually empty, just there so that we can tell apart
        // a service exception from a good result
    }

}
TOP

Related Classes of org.geoserver.gss.xml.PostDiffTypeResponseBindingTest

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.