Package org.geoserver.web

Examples of org.geoserver.web.StringValidatable


        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

public class ResourceNameValidatorTest {

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

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

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

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

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

    }

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

    }

    @Test
    public void testAbsoluteURI() throws Exception {
        File tazbm = new File(root, "wcs/BlueMarble.tiff");
        StringValidatable validatable = new StringValidatable(tazbm.toURI().toString());
       
        validator.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.