1 package org.wamblee.support.persistence;
3 import java.sql.Connection;
5 import javax.sql.DataSource;
7 import org.junit.After;
8 import org.junit.Before;
10 import org.wamblee.support.persistence.Database;
11 import org.wamblee.support.persistence.DatabaseBuilder;
14 public class DerbyDatabaseTest {
17 private DataSource ds;
21 db = DatabaseBuilder.getDatabase();
26 public void tearDown() {
31 public void testConnect() throws Exception {
32 Connection conn = ds.getConnection();
34 System.out.println("Database name: " + conn.getMetaData().getDatabaseProductName());
41 public void testUseASecondTimeInTheSameTestCase() throws Exception {