Re: DBUnit in Eclipse config question

2007-03-09 Thread Chuck Hill


On Mar 9, 2007, at 9:58 AM, Michael Warner wrote:

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");


com.frontbase.jdbc.FBJDriver works for me.

Also see my patched version at
http://www.gvcsitemaker.com/patched_dbunit


Chuck



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






 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/chill% 
40global-village.net


This email sent to [EMAIL PROTECTED]


--

Practical WebObjects - for developers who want to increase their  
overall knowledge of WebObjects or who are trying to solve specific  
problems.

http://www.global-village.net/products/practical_webobjects





___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to archive@mail-archive.com


DBUnit in Eclipse config question

2007-03-09 Thread Michael Warner
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






 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to archive@mail-archive.com