Package org.geoserver.web

Examples of org.geoserver.web.FormTestPage


    @Test
    public void testDecimalsPreserved() throws Exception {
        final ReferencedEnvelope e = new ReferencedEnvelope(-0.1E-10, 1.0E-9, -9E-11, 9E-11,
                DefaultGeographicCRS.WGS84);
        tester.startPage(new FormTestPage(new ComponentBuilder() {

            public Component buildComponent(String id) {
                return new EnvelopePanel(id, e);
            }
        }));
View Full Code Here


        initResourceSettings(tester);
        keywords = new ArrayList<KeywordInfo>();
        keywords.add(new Keyword("one"));
        keywords.add(new Keyword("two"));
        keywords.add(new Keyword("three"));
        tester.startPage(new FormTestPage(new ComponentBuilder() {
            public Component buildComponent(String id) {
                return new KeywordsEditor(id, new Model(keywords));
            }
        }));
    }
View Full Code Here

        tester = new WicketTester();
    }
   
    @Test
    public void testBasicTable() throws Exception {
        tester.startPage(new FormTestPage(new ComponentBuilder() {
       
            public Component buildComponent(String id) {
                return new IntegerTable(id, false);
            }
        }));
View Full Code Here

        assertEquals(10, dv.size());
    }
   
    @Test
    public void testFullSelection() throws Exception {
        tester.startPage(new FormTestPage(new ComponentBuilder() {
           
            public Component buildComponent(String id) {
                return new IntegerTable(id, true);
            }
        }));
View Full Code Here

        assertEquals(0, table.getSelection().size());
    }
   
    @Test
    public void testSingleSelection() throws Exception {
        tester.startPage(new FormTestPage(new ComponentBuilder() {
           
            public Component buildComponent(String id) {
                return new IntegerTable(id, true);
            }
        }));
View Full Code Here

        assertEquals(new Integer(6), table.getSelection().get(1));
    }

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

        getSecurityManager().saveSecurityConfig(config);
    }
   
    protected void setupPanel(JDBCSecurityServiceConfig theConfig) {
        this.config = theConfig;
        tester.startPage(new FormTestPage(new ComponentBuilder() {
            private static final long serialVersionUID = 1L;

            public Component buildComponent(String id) {
                return current = new JDBCConnectionPanel(id, new Model(config));
            };
View Full Code Here

        getSecurityManager().saveSecurityConfig(config);
    }
   
    protected void setupPanel(LDAPSecurityServiceConfig theConfig) {
        this.config = theConfig;
        tester.startPage(new FormTestPage(new ComponentBuilder() {
            private static final long serialVersionUID = 1L;
   
            public Component buildComponent(String id) {
               
                return current = new LDAPAuthProviderPanel(id, new Model(config));
View Full Code Here

        getSecurityManager().saveSecurityConfig(config);
    }
   
    protected void setupPanel(LDAPRoleServiceConfig theConfig) {
        this.config = theConfig;
        tester.startPage(new FormTestPage(new ComponentBuilder() {
            private static final long serialVersionUID = 1L;
   
            public Component buildComponent(String id) {
               
                return current = new LDAPRoleServicePanel(id, new Model(config));
View Full Code Here

public class WCSLayerConfigTest extends GeoServerWicketCoverageTestSupport{

    @Test
    public void testValues() {
        login();
        FormTestPage page = new FormTestPage(new ComponentBuilder() {
       
            public Component buildComponent(String id) {
                CoverageInfo info = getCatalog().getResources(CoverageInfo.class).get(0);
                LayerInfo layer = getCatalog().getLayerByName(info.getName());
                return new WCSLayerConfig(id, new Model(layer));
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.