Package org.pirkaengine.form.annotation

Examples of org.pirkaengine.form.annotation.UriUsableImpl


        assertThat(target.validators.get(0), is((Validator<String>) new RegexValidator(".*\\.html", "custom_key")));
    }

    @Test
    public void apply_UriUsable() throws Exception {
        target.apply("name", formMessage, new UriUsableImpl());
        assertThat(target.name, is("name"));
        assertThat(target.label, is("name"));
        assertThat(target.validators.size(), is(1));
        assertThat(target.validators.get(0), is((Validator<String>) new UriUsableValidator()));
    }
View Full Code Here


        assertThat(target.validators.get(0), is((Validator<String>) new UriUsableValidator()));
    }

    @Test
    public void apply_UriUsable_messageKey() throws Exception {
        target.apply("name", formMessage, new UriUsableImpl("custom_key"));
        assertThat(target.name, is("name"));
        assertThat(target.label, is("name"));
        assertThat(target.validators.size(), is(1));
        assertThat(target.validators.get(0), is((Validator<String>) new UriUsableValidator("custom_key")));
    }
View Full Code Here

TOP

Related Classes of org.pirkaengine.form.annotation.UriUsableImpl

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.