jtulach@355: /* jtulach@355: * To change this template, choose Tools | Templates jtulach@355: * and open the template in the editor. jtulach@355: */ jtulach@355: jtulach@355: package org.apidesign.livedb.example; jtulach@355: jtulach@357: import java.sql.SQLException; jtulach@357: import java.util.List; jtulach@355: import junit.framework.TestCase; jtulach@355: jtulach@355: /** jtulach@355: * jtulach@355: * @author Jaroslav Tulach jtulach@355: */ jtulach@355: public class LiveDBTest extends TestCase { jtulach@355: jtulach@355: public LiveDBTest(String testName) { jtulach@355: super(testName); jtulach@355: } jtulach@355: jtulach@357: public void testSomeMethod() throws SQLException { jtulach@357: List ages = Age.query(); jtulach@359: assertEquals("One record", 1, ages.size()); jtulach@359: Age age = ages.get(0); jtulach@359: assertEquals("name is apidesign", "apidesign", age.NAME); jtulach@359: assertEquals("it is three years old", 3, age.AGE.intValue()); jtulach@355: } jtulach@355: jtulach@355: }