I am trying for the first time to set up DBUnit in the context of WOLips / Eclipse. I am using FrontBase as my database. Under JRE System Library I have included frontbasejdbc.jar. With a database, 'SampleDB', running, I am getting two errors on the following method:
protected IDatabaseConnection getConnection() throws Exception { Class driverClass = Class.forName("jdbc.FrontBase.FBJDriver"); Connection jdbcConnection = DriverManager.getConnection( "jdbc:FrontBase://localhost/SampleDB", "mmw", "mmw"); return new DatabaseConnection(jdbcConnection);
"Connection cannot be resolved to a type" "DriverManager cannot be resolved"
my import statements include the following:
import junit.framework.TestCase; import org.dbunit.*;
import org.dbunit.database.DatabaseConnection; import org.dbunit.database.IDatabaseConnection;
I assume this is a configuration problem of some kind. Any specific thoughts on what I have left out?
Thanks,
Mike Warner
|