1.1 --- a/samples/livedb/test/org/apidesign/livedb/example/LiveDBTest.java Mon Nov 11 13:17:34 2019 +0100
1.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
1.3 @@ -1,27 +0,0 @@
1.4 -package org.apidesign.livedb.example;
1.5 -
1.6 -import java.sql.SQLException;
1.7 -import java.util.List;
1.8 -import junit.framework.TestCase;
1.9 -
1.10 -/**
1.11 - *
1.12 - * @author Jaroslav Tulach <jtulach@netbeans.org>
1.13 - */
1.14 -public class LiveDBTest extends TestCase {
1.15 -
1.16 - public LiveDBTest(String testName) {
1.17 - super(testName);
1.18 - }
1.19 -
1.20 - public void testSomeMethod() throws SQLException {
1.21 - // BEGIN: livedb.test
1.22 - List<Age> ages = Age.query();
1.23 - assertEquals("One record", 1, ages.size());
1.24 - Age age = ages.get(0);
1.25 - assertEquals("name is apidesign", "apidesign", age.NAME);
1.26 - assertEquals("it is three years old", 3, age.AGE.intValue());
1.27 - // END: livedb.test
1.28 - }
1.29 -
1.30 -}