Package org.geoserver.printing

Source Code of org.geoserver.printing.SmokeTest

package org.geoserver.printing;

import net.sf.json.JSON;
import net.sf.json.JSONObject;
import org.geoserver.test.GeoServerTestSupport;

public class SmokeTest extends GeoServerTestSupport {
    public void testServiceExists() throws Exception {
        JSON json = getAsJSON("/pdf/info.json");

        assertTrue(json instanceof JSONObject);
        JSONObject obj = (JSONObject) json;
        assertTrue(obj.containsKey("scales"));
        assertTrue(obj.containsKey("dpis"));
        assertTrue(obj.containsKey("layouts"));
        assertTrue(obj.containsKey("printURL"));
        assertTrue(obj.containsKey("createURL"));
    }
}
TOP

Related Classes of org.geoserver.printing.SmokeTest

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.