Package org.geoserver.web

Examples of org.geoserver.web.ComponentBuilder


        tester = new WicketTester();
        root = new File("target/test-breadcrumbs");
        leaf = new File("target/test-breadcrumbs/one/two/three");
        if(!leaf.exists())
            leaf.mkdirs();
        tester.startPage(new FormTestPage(new ComponentBuilder() {
           
            public Component buildComponent(String id) {
                return new FileBreadcrumbs(id, new Model(root), new Model(leaf)) {

                    @Override
View Full Code Here


        two = new File(child, "two.sld");
        two.createNewFile();
    }
   
    public void setupChooser(final File file) {
        tester.startPage(new FormTestPage(new ComponentBuilder() {
           
            public Component buildComponent(String id) {
                return new GeoServerFileChooser(id, new Model(file));
            }
        }));
View Full Code Here

        tester.assertLabel("form:panel:breadcrumbs:path:0:pathItemLink:pathItem", getTestData().getDataDirectoryRoot().getName() + "/");
    }
   
    @Test
    public void testInDialog() throws Exception {
        tester.startPage(new FormTestPage(new ComponentBuilder() {
           
            public Component buildComponent(String id) {
                return new GeoServerDialog(id);
            }
        }));
View Full Code Here

        dialog.submit(new AjaxRequestTarget(tester.getLastRenderedPage()));
    }

    @Test
    public void testHideFileSystem() throws Exception {
        tester.startPage(new FormTestPage(new ComponentBuilder() {
            public Component buildComponent(String id) {
                return new GeoServerFileChooser(id, new Model(), true);
            }
        }));
       
View Full Code Here

        two = new File(root, "two.sld");
        two.createNewFile();
       
        fileProvider = new FileProvider(root);
       
        tester.startPage(new FormTestPage(new ComponentBuilder() {

            public Component buildComponent(String id) {
               
                return new FileDataView(id, fileProvider) {
View Full Code Here

@SuppressWarnings("serial")
public class AttributionLayerConfigTest extends GeoServerWicketTestSupport {
   
    public void testExisting() {
        final LayerInfo layer = getCatalog().getLayerByName(MockData.PONDS.getLocalPart());
        FormTestPage page = new FormTestPage(new ComponentBuilder() {

            public Component buildComponent(String id) {
                return new AttributionLayerConfigPanel(id, new Model(layer));
            }
        }
View Full Code Here

import org.junit.Test;

public class ConfirmRemovalPanelTest extends GeoServerWicketTestSupport {

    void setupPanel(final CatalogInfo... roots) {
        tester.startPage(new FormTestPage(new ComponentBuilder() {
           
            public Component buildComponent(String id) {
                return new ConfirmRemovalPanel(id, roots);
            }
        }));
View Full Code Here

public class SRSPanelTest extends GeoServerWicketTestSupport implements Serializable {

    @Test
    public void testLoad() {
        tester.startPage(new FormTestPage(new ComponentBuilder() {
           
            public Component buildComponent(String id) {
                return new SRSListPanel(id) {
                   
                    private String codeClicked;
View Full Code Here

public class EnvelopePanelTest extends GeoServerWicketTestSupport {

    @Test
    public void testEditPlain() throws Exception {
        final ReferencedEnvelope e = new ReferencedEnvelope(-180,180,-90,90, DefaultGeographicCRS.WGS84);
        tester.startPage(new FormTestPage(new ComponentBuilder() {
       
            public Component buildComponent(String id) {
                return new EnvelopePanel(id, e);
            }
        }));
View Full Code Here

    @Test
    public void testEditCRS() throws Exception {
        CoordinateReferenceSystem epsg4326 = CRS.decode("EPSG:4326", true);
        CoordinateReferenceSystem epsg4140 = CRS.decode("EPSG:4140", true);
        final ReferencedEnvelope e = new ReferencedEnvelope(-180,180,-90,90, epsg4326);
        tester.startPage(new FormTestPage(new ComponentBuilder() {
       
            public Component buildComponent(String id) {
                EnvelopePanel panel = new EnvelopePanel(id, e);
                panel.setCRSFieldVisible(true);
                return panel;
View Full Code Here

TOP

Related Classes of org.geoserver.web.ComponentBuilder

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.