Package org.javalite.activejdbc.test_models

Examples of org.javalite.activejdbc.test_models.Account.errors()


    public void shouldAcceptCorrectValueForTotal(){
        deleteAndPopulateTable("accounts");
        Account account = new Account();
        account.set("amount", 1);
        account.set("total", 1);
        System.out.println(account.errors());
        a(account).shouldBe("valid");
    }

    @Test
    public void shouldRejectValueBelowMin(){
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.