|
|
Create a test case for bug 1785 (JDO DataSource configuration using a Properties collection) |
Query page
Enter new bug
[Martin]
Well, this is a bit difficult. The JDO-CTF internally configures the database
connection, so I can't use it to test JdoConfFactory.
In bug 1785 there is attached a JUnit test case:
http://bugzilla.exolab.org/attachment.cgi?id=766&action=view
The test class is configured to use an Oracle Database, but can be changed
ithout problems to use other drivers. (see the string constants at the top)
[Werner]
Additional Comment #4 From Werner Guttmann 2004-11-12 00:53 -------
No problem, Martin, as you can add 'independent' JUnit test cases to src/tests,
i.e. test cases that are not part of the test suite. There's already some at
src/tests/org/exolab/castor/jdo.**.
Patch (code only) applied as provided. Martin, I decided not to include the test
case as it stands, for the reasons described above. And I didn't want to include
it as a simple JUnit test case either, as this would imply creating new config
files, which I don't think is ideal.
[Martin]
OK - is there anyone with a superb idea how to intergrate this test case in the
other tests without having to extend the test framework too much? ;-)
------- Additional Comment
#1 From
Werner Guttmann
2004-12-14 06:49 -------
Bruce ?
------- Additional Comment
#2 From
Werner Guttmann
2005-03-08 08:08 -------
Martin, I think by specifying a new category, this should do the trick. Once
you've done that, you'll be able to specify a separate JDO config file.
------- Additional Comment
#3 From
Werner Guttmann
2005-03-31 01:04 -------
Martin, just reading through this again, and it just occured to me that we ship
by definition the postgreSQL JDBC driver as part of the complete distribution
JAR. What woukld you thin of converting your test case to use a postgreSQL
instance with default port numnbers and database names ?
Query page
Enter new bug
This is Bugzilla: the Mozilla bug system. For more
information about what Bugzilla is and what it can do, see
bugzilla.org.
|
|