Package org.javalite.activejdbc.test_models

Examples of org.javalite.activejdbc.test_models.Page


* @author igor on 7/6/14.
*/
public class CustomConverterTest extends ActiveJDBCTest {
    @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


    }

    @Test
    public void shouldFixDefect66() {

        Page page = new Page();
    a(page).shouldNotBe("valid");

        a(page.errors().size()).shouldBeEqual(1);
        a(page.errors().get("word_count")).shouldBeEqual("value is missing");
    }
View Full Code Here

TOP

Related Classes of org.javalite.activejdbc.test_models.Page

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.