Package org.geoserver.web

Examples of org.geoserver.web.FormTestPage


        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


    @Before
    public void setupPanel() {
        identifiers = Converters.convert(
                "one,http://www.geoserver.org/one;two,http://www.geoserver.org/two",
                UniqueResourceIdentifiers.class);
        tester.startPage(new FormTestPage(new ComponentBuilder() {

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

        wfs.getMetadata().put(InspireMetadata.SERVICE_METADATA_TYPE.key, "application/vnd.iso.19139+xml");
        wfs.getMetadata().put(InspireMetadata.SPATIAL_DATASET_IDENTIFIER_TYPE.key,
                "one,http://www.geoserver.org/one;two,http://www.geoserver.org/two");
        getGeoServer().save(wfs);
       
        tester.startPage(new FormTestPage(new ComponentBuilder() {

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

    }
   
    @Test
    public void testEditPlainTiff() {
        final LayerInfo layer = getCatalog().getLayerByName(getLayerId(MockData.TASMANIA_DEM));
        tester.startPage(new FormTestPage(new ComponentBuilder() {

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

   
    @Test
    public void testEditMosaic() {
        // setup the panel with a mosaic
        final LayerInfo layer = getCatalog().getLayerByName(getLayerId(WATTEMP));
        tester.startPage(new FormTestPage(new ComponentBuilder() {

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

        // prepare read only metadata
        wcs = getGeoServer().getService(WCSInfo.class);
        getGeoServer().save(wcs);

        tester.startPage(new FormTestPage(new ComponentBuilder() {

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

    private static final long serialVersionUID = 1L;

    protected boolean disassociateRoles = false;
   
    protected void setupPanel(final List<GeoServerUserGroup> roots) {
        tester.startPage(new FormTestPage(new ComponentBuilder() {
            private static final long serialVersionUID = 1L;

            public Component buildComponent(String id) {
                Model<Boolean> model = new Model<Boolean>(disassociateRoles);
                return new ConfirmRemovalGroupPanel(id, model,roots.toArray(new GeoServerUserGroup[roots.size()])) {
View Full Code Here

    private static final long serialVersionUID = 1L;

    protected boolean disassociateRoles = false;
   
    protected void setupPanel(final List<GeoServerUser> roots) {
        tester.startPage(new FormTestPage(new ComponentBuilder() {
            private static final long serialVersionUID = 1L;

            public Component buildComponent(String id) {
                Model<Boolean> model = new Model<Boolean>(disassociateRoles);
                return new ConfirmRemovalUserPanel(id, model,roots.toArray(new GeoServerUser[roots.size()])) {
View Full Code Here

        tileLayerModel = new GeoServerTileLayerInfoModel(tileLayer.getInfo(), false);
    }

    @Test
    public void testPageLoad() {
        tester.startPage(new FormTestPage(new ComponentBuilder() {
            private static final long serialVersionUID = -5907648151984337786L;

            public Component buildComponent(final String id) {
                return new LayerCacheOptionsTabPanel(id, layerModel, tileLayerModel);
            }
View Full Code Here

        final GWCConfig saneDefaults = GWC.get().getConfig().saneConfig();
        GeoServerTileLayerInfoImpl tileLayerInfo = TileLayerInfoUtil.loadOrCreate(geometryless,
                saneDefaults);
        tileLayerModel = new GeoServerTileLayerInfoModel(tileLayerInfo, false);

        tester.startPage(new FormTestPage(new ComponentBuilder() {
            private static final long serialVersionUID = -5907648151984337786L;

            public Component buildComponent(final String id) {
                return new LayerCacheOptionsTabPanel(id, layerModel, tileLayerModel);
            }
View Full Code Here

TOP

Related Classes of org.geoserver.web.FormTestPage

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.