Package org.geoserver.wfs.web

Source Code of org.geoserver.wfs.web.CSWAdminPageTest

/* (c) 2014 Open Source Geospatial Foundation - all rights reserved
* (c) 2001 - 2013 OpenPlans
* This code is licensed under the GPL 2.0 license, available at the root
* application directory.
*/
package org.geoserver.wfs.web;

import org.geoserver.csw.CSWInfo;
import org.geoserver.csw.web.CSWAdminPage;
import org.geoserver.web.GeoServerWicketTestSupport;
import org.geoserver.web.wicket.KeywordsEditor;
import org.junit.Test;

public class CSWAdminPageTest extends GeoServerWicketTestSupport {
    @Test
    public void testValues() throws Exception {
        CSWInfo csw = getGeoServerApplication().getGeoServer().getService(CSWInfo.class);

        login();
        tester.startPage(CSWAdminPage.class);

        tester.assertRenderedPage(CSWAdminPage.class);
       
        // test that components have been filled as expected
        tester.assertComponent("form:keywords", KeywordsEditor.class);
        tester.assertModelValue("form:keywords", csw.getKeywords());
    }
}
TOP

Related Classes of org.geoserver.wfs.web.CSWAdminPageTest

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.