Package it.geosolutions.geobatch.unredd.script.reprocess.model

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


    @Test
    public void testReprocessChartMarshalling() {

        // printout a sample request
        ReprocessChartRequest rsReq = new ReprocessChartRequest();
        rsReq.add("testChart1");
        rsReq.add("testChart2");
        JAXB.marshal(rsReq, System.out);

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

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

        assertTrue(req instanceof ReprocessChartRequest);
        ReprocessChartRequest sreq = (ReprocessChartRequest)req;
        assertEquals(2, sreq.getChartNames().size());
    }
View Full Code Here

TOP

Related Classes of it.geosolutions.geobatch.unredd.script.reprocess.model.ReprocessChartRequest

Copyright © 2018 www.massapicom. 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.