01: package net.sourceforge.jaxor.db.tests;
02:
03: import junit.framework.TestCase;
04: import net.sourceforge.jaxor.db.DataSourceConnectionFactory;
05: import net.sourceforge.jaxor.util.SystemException;
06:
07: /**
08: * Created By: Mike
09: * Date: Jan 12, 2004
10: * Time: 8:13:47 PM
11: *
12: * Last Checkin: $Author: mrettig $
13: * Date: $Date: 2004/01/21 03:55:06 $
14: * Revision: $Revision: 1.2 $
15: */
16: public class DataSourceConnectionFactoryTest extends TestCase {
17:
18: public void testBogusDatasource() {
19: DataSourceConnectionFactory fact = new DataSourceConnectionFactory(
20: "bad data source");
21: try {
22: fact.getConnection();
23: fail();
24: } catch (SystemException expected) {
25:
26: }
27: }
28: }
|