Examples of ReprocessLayerRequest


Examples of it.geosolutions.geobatch.unredd.script.reprocess.model.ReprocessLayerRequest

    @Test
    public void testReprocessLayerMarshalling() {

        // printout a sample request
        ReprocessLayerRequest rsReq = new ReprocessLayerRequest();
        rsReq.setLayerName("testLayerName");
        rsReq.setYear("1492");
        rsReq.setMonth("10");
        JAXB.marshal(rsReq, System.out);

        // test loading / unmarshalling request
        File reproFile = loadFile("reprocess/reprocessLayer.xml");
        assertNotNull("Error finding file", reproFile);

        ReprocessRequest req = RequestReader.load(reproFile);
        assertNotNull("Error unmarshalling file", req);

        assertTrue(req instanceof ReprocessLayerRequest);
        ReprocessLayerRequest sreq = (ReprocessLayerRequest)req;
        assertEquals("1492", sreq.getYear());
    }
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.