Package com.alibaba.citrus.service.form.support

Examples of com.alibaba.citrus.service.form.support.AbstractNumberValidator


public abstract class AbstractNumberValidatorTests<V extends AbstractNumberValidator>
        extends AbstractValidatorTests<V> {
    @Test
    public void init_numberType() throws Exception {
        AbstractNumberValidator v = newValidatorFor_AbstractNumberValidatorTests();
        v.setMessage("message");

        // default value
        assertEquals(INT, v.getNumberType());

        // set null
        try {
            v.setNumberType(null);
            fail();
        } catch (IllegalArgumentException e) {
            assertThat(e, exception("numberType"));
        }

        // set numberType
        v.setNumberType(LONG);
        assertEquals(LONG, v.getNumberType());
    }
View Full Code Here

TOP

Related Classes of com.alibaba.citrus.service.form.support.AbstractNumberValidator

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.