Updating to NBMs from NetBeans 8.0.1 as some of them are required to run on JDK8
1 package org.apidesign.livedb.example;
3 import java.sql.SQLException;
5 import junit.framework.TestCase;
9 * @author Jaroslav Tulach <jtulach@netbeans.org>
11 public class LiveDBTest extends TestCase {
13 public LiveDBTest(String testName) {
17 public void testSomeMethod() throws SQLException {
19 List<Age> ages = Age.query();
20 assertEquals("One record", 1, ages.size());
21 Age age = ages.get(0);
22 assertEquals("name is apidesign", "apidesign", age.NAME);
23 assertEquals("it is three years old", 3, age.AGE.intValue());