samples/livedb/test/org/apidesign/livedb/example/LiveDBTest.java
branchlivedb
changeset 357 837370f791ba
parent 355 d1e7424dc988
child 359 9d430d9bc4b1
     1.1 --- a/samples/livedb/test/org/apidesign/livedb/example/LiveDBTest.java	Tue Jun 01 12:08:47 2010 +0200
     1.2 +++ b/samples/livedb/test/org/apidesign/livedb/example/LiveDBTest.java	Wed Jul 14 20:56:33 2010 +0200
     1.3 @@ -5,6 +5,8 @@
     1.4  
     1.5  package org.apidesign.livedb.example;
     1.6  
     1.7 +import java.sql.SQLException;
     1.8 +import java.util.List;
     1.9  import junit.framework.TestCase;
    1.10  
    1.11  /**
    1.12 @@ -17,10 +19,11 @@
    1.13          super(testName);
    1.14      }
    1.15  
    1.16 -    public void testSomeMethod() {
    1.17 -        DBAccess db = new DBAccess();
    1.18 -        db.jarda = "Ahoj";
    1.19 -        assertEquals("Ahoj", db.jarda);
    1.20 +    public void testSomeMethod() throws SQLException {
    1.21 +        List<Age> ages = Age.query();
    1.22 +        for (Age age : ages) {
    1.23 +            System.out.printf("%s is %s years old\n", age.NAME, age.AGE);
    1.24 +        }
    1.25      }
    1.26  
    1.27  }