Package org.pirkaengine.form.annotation

Examples of org.pirkaengine.form.annotation.RangeFloatImpl


        assertThat(target.requiredMessageKey, is("custom_message"));
    }

    @Test
    public void apply_RangeFloat() throws Exception {
        target.apply("name", formMessage, new RangeFloatImpl(1f, 10f));
        assertThat(target.name, is("name"));
        assertThat(target.label, is("name"));
        assertThat(target.isRequired(), is(false));
        assertThat(target.validators.size(), is(1));
        assertThat(target.validators.get(0), is((Validator<Float>) new RangeFloatValidator(1, 10)));
View Full Code Here


        assertThat(target.validators.get(0), is((Validator<Float>) new RangeFloatValidator(1, 10)));
    }

    @Test
    public void apply_RangeFloat_messageKey() throws Exception {
        target.apply("name", formMessage, new RangeFloatImpl(0f, 100f, "custom_message"));
        assertThat(target.name, is("name"));
        assertThat(target.label, is("name"));
        assertThat(target.isRequired(), is(false));
        assertThat(target.validators.size(), is(1));
        assertThat(target.validators.get(0),
View Full Code Here

TOP

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

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.