Examples of GetDomainType


Examples of net.opengis.cat.csw20.GetDomainType

public class GetDomainTest {
    Parser parser = new Parser(new CSWConfiguration());
   
    @Test
    public void testParseGetDomainParameter() throws Exception {
        GetDomainType gd = (GetDomainType) parser.parse(getClass().getResourceAsStream(
                "GetDomainParameter.xml"));
        // check the attributes
        assertEquals("CSW", gd.getService());
        assertEquals("2.0.2", gd.getVersion());
       
        assertEquals("GetRecords.outputFormat", gd.getParameterName());
    }
View Full Code Here

Examples of net.opengis.cat.csw20.GetDomainType

        assertEquals("GetRecords.outputFormat", gd.getParameterName());
    }
   
    @Test
    public void testParseGetDomainProperty() throws Exception {
        GetDomainType gd = (GetDomainType) parser.parse(getClass().getResourceAsStream(
                "GetDomainProperty.xml"));
        // check the attributes
        assertEquals("CSW", gd.getService());
        assertEquals("2.0.2", gd.getVersion());
       
        assertEquals("foo", gd.getPropertyName());
    }
View Full Code Here

Examples of net.opengis.cat.csw20.GetDomainType

        raw.put("request", "GetDomain");
        raw.put("parameterName", "GetRecords.resultType");

        GetDomainKvpRequestReader reader = new GetDomainKvpRequestReader();
        Object request = reader.createRequest();
        GetDomainType gd = (GetDomainType) reader.read(request, parseKvp(raw), raw);

        assertEquals("CSW", gd.getService());
        assertEquals("2.0.2", gd.getVersion());
        assertEquals("GetRecords.resultType", gd.getParameterName());
    }
View Full Code Here

Examples of net.opengis.cat.csw20.GetDomainType

        raw.put("request", "GetDomain");
        raw.put("propertyName", "dc:title");

        GetDomainKvpRequestReader reader = new GetDomainKvpRequestReader();
        Object request = reader.createRequest();
        GetDomainType gd = (GetDomainType) reader.read(request, parseKvp(raw), raw);

        assertEquals("CSW", gd.getService());
        assertEquals("2.0.2", gd.getVersion());
        assertEquals("dc:title", gd.getPropertyName());
    }
View Full Code Here

Examples of net.opengis.cat.csw20.GetDomainType

    }

    @Test
    public void testXMLReaderParameter() throws Exception {
        CSWXmlReader reader = new CSWXmlReader("GetDomain", "2.0.2", new CSWConfiguration());
        GetDomainType gd = (GetDomainType) reader.read(null,
                getResourceAsReader("GetDomainParameter.xml"), (Map) null);
        assertEquals("CSW", gd.getService());
        assertEquals("2.0.2", gd.getVersion());
        assertEquals("GetRecords.resultType", gd.getParameterName());
    }
View Full Code Here

Examples of net.opengis.cat.csw20.GetDomainType

    }

    @Test
    public void testXMLReaderProperty() throws Exception {
        CSWXmlReader reader = new CSWXmlReader("GetDomain", "2.0.2", new CSWConfiguration());
        GetDomainType gd = (GetDomainType) reader.read(null,
                getResourceAsReader("GetDomainProperty.xml"), (Map) null);
        assertEquals("CSW", gd.getService());
        assertEquals("2.0.2", gd.getVersion());
        assertEquals("dc:title", gd.getPropertyName());
    }
View Full Code Here
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.