Examples of ReprocessStatsRequest


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

    @Test
    public void testReprocessStatsMarshalling() {

        // printout a sample request
        ReprocessStatsRequest rsReq = new ReprocessStatsRequest();
        rsReq.add("testStats1");
        rsReq.add("testStats2");
        JAXB.marshal(rsReq, System.out);

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

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

        assertTrue(req instanceof ReprocessStatsRequest);
        ReprocessStatsRequest sreq = (ReprocessStatsRequest)req;
        assertEquals(2, sreq.getStatsNames().size());
    }
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.