Package org.javalite.activejdbc.test_models

Examples of org.javalite.activejdbc.test_models.Page.validate()


    @Test
    public void shouldConvertStringToNumber(){
        Page p = new Page();
        p.set("word_count", "123");
        a(p.get("word_count") instanceof Integer).shouldBeFalse();
        p.validate();
        a(p.get("word_count") instanceof Integer).shouldBeTrue();
    }
}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.