samples/livedb/test/org/apidesign/livedb/example/LiveDBTest.java
author Jaroslav Tulach <jtulach@netbeans.org>
Wed, 14 Jul 2010 20:56:33 +0200
branchlivedb
changeset 357 837370f791ba
parent 355 d1e7424dc988
child 359 9d430d9bc4b1
permissions -rw-r--r--
Rewritting the processor to really connect to a database and read metadata from a real select statement
jtulach@355
     1
/*
jtulach@355
     2
 * To change this template, choose Tools | Templates
jtulach@355
     3
 * and open the template in the editor.
jtulach@355
     4
 */
jtulach@355
     5
jtulach@355
     6
package org.apidesign.livedb.example;
jtulach@355
     7
jtulach@357
     8
import java.sql.SQLException;
jtulach@357
     9
import java.util.List;
jtulach@355
    10
import junit.framework.TestCase;
jtulach@355
    11
jtulach@355
    12
/**
jtulach@355
    13
 *
jtulach@355
    14
 * @author Jaroslav Tulach <jtulach@netbeans.org>
jtulach@355
    15
 */
jtulach@355
    16
public class LiveDBTest extends TestCase {
jtulach@355
    17
    
jtulach@355
    18
    public LiveDBTest(String testName) {
jtulach@355
    19
        super(testName);
jtulach@355
    20
    }
jtulach@355
    21
jtulach@357
    22
    public void testSomeMethod() throws SQLException {
jtulach@357
    23
        List<Age> ages = Age.query();
jtulach@357
    24
        for (Age age : ages) {
jtulach@357
    25
            System.out.printf("%s is %s years old\n", age.NAME, age.AGE);
jtulach@357
    26
        }
jtulach@355
    27
    }
jtulach@355
    28
jtulach@355
    29
}