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@357: for (Age age : ages) { jtulach@357: System.out.printf("%s is %s years old\n", age.NAME, age.AGE); jtulach@357: } jtulach@355: } jtulach@355: jtulach@355: }