Package org.geoserver.web

Examples of org.geoserver.web.StringValidatable


        dataDirectory.addWellKnownCoverageTypes();
    }
   
    public void testAbsoluteRaw() throws Exception {
        File tazbm = new File(getTestData().getDataDirectoryRoot(), "wcs/BlueMarble.tiff");
        StringValidatable validatable = new StringValidatable(tazbm.getAbsolutePath());
       
        validator.validate(validatable);
        assertTrue(validatable.isValid());
    }
View Full Code Here


        assertTrue(validatable.isValid());
    }
   
    public void testAbsoluteURI() throws Exception {
        File tazbm = new File(getTestData().getDataDirectoryRoot(), "wcs/BlueMarble.tiff");
        StringValidatable validatable = new StringValidatable(tazbm.toURI().toString());
       
        validator.validate(validatable);
        assertTrue(validatable.isValid());
    }
View Full Code Here

        validator.validate(validatable);
        assertTrue(validatable.isValid());
    }
   
    public void testRelative() throws Exception {
        StringValidatable validatable = new StringValidatable("file:wcs/BlueMarble.tiff");
       
        validator.validate(validatable);
        assertTrue(validatable.isValid());
    }
View Full Code Here

import junit.framework.TestCase;

public class ResourceNameValidatorTest extends TestCase {

    public void testValidUnderscoreMiddle() {
        StringValidatable validatable = new StringValidatable("abc_def");
        new ResourceNameValidator().validate(validatable);
        assertTrue(validatable.isValid());
    }
View Full Code Here

        new ResourceNameValidator().validate(validatable);
        assertTrue(validatable.isValid());
    }
   
    public void testValidUnderscoreStart() {
        StringValidatable validatable = new StringValidatable("_def");
        new ResourceNameValidator().validate(validatable);
        assertTrue(validatable.isValid());
    }
View Full Code Here

        new ResourceNameValidator().validate(validatable);
        assertTrue(validatable.isValid());
    }
   
    public void testValidPoint() {
        StringValidatable validatable = new StringValidatable("abc.def");
        new ResourceNameValidator().validate(validatable);
        assertTrue(validatable.isValid());
    }
View Full Code Here

        new ResourceNameValidator().validate(validatable);
        assertTrue(validatable.isValid());
    }
   
    public void testEmpty() {
        StringValidatable validatable = new StringValidatable("");
        new ResourceNameValidator().validate(validatable);
        assertFalse(validatable.isValid());
    }
View Full Code Here

        new ResourceNameValidator().validate(validatable);
        assertFalse(validatable.isValid());
    }
   
    public void testSpace() {
        StringValidatable validatable = new StringValidatable("abc def");
        new ResourceNameValidator().validate(validatable);
        assertFalse(validatable.isValid());
    }
View Full Code Here

import org.geoserver.web.data.resource.BasicResourceConfig.ResourceNameValidator;

public class ResourceNameValidatorTest extends TestCase {

    public void testValidUnderscoreMiddle() {
        StringValidatable validatable = new StringValidatable("abc_def");
        new ResourceNameValidator().validate(validatable);
        assertTrue(validatable.isValid());
    }
View Full Code Here

        new ResourceNameValidator().validate(validatable);
        assertTrue(validatable.isValid());
    }
   
    public void testValidUnderscoreStart() {
        StringValidatable validatable = new StringValidatable("_def");
        new ResourceNameValidator().validate(validatable);
        assertTrue(validatable.isValid());
    }
View Full Code Here

TOP

Related Classes of org.geoserver.web.StringValidatable

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.