I am having some trouble getting junit testing to work for release 0.9.5
for an MS/SQL DB using the Sun jdbc-odbc bridge.
The build for hsql went great, but when I switched to mssql I got lots of
failures in tests-odmg.txt.
To switch to mssql:
1) Edited the build.properties file and set profile=mssqldb.
2) Edited mssqldb.profile as follows:
===============================================
dbmsName = MsSQLServer
databaseHost = NLC4AHYLDB
jdbcLevel = 1.0
urlProtocol = jdbc
urlSubprotocol = odbc
...
urlDbalias = NLC4AHYLDB;DatabaseName=GMI;SelectMethod=cursor;User
=${databaseUser};Password=${databasePassword};
...
databaseDriver = sun.jdbc.odbc.JdbcOdbcDriver
===============================================
3) "build prepare-testdb" creates all required/test/tutorial tables on the
MS/SQL database without compliant.
4) "build junit" hangs (one of the java.exe processes stops running, but
stays in memory). If I do an "end task" from task manager (MS Windows) on
the offending process it continues to completion, but has errors and
failures. The test-odmg.txt file is too large to post, but if someone
would like to see it I will send it to them. Here is the bottom of the
console output:
===========================================================
junit-no-compile-no-prepare:
[junit] Running org.apache.ojb.broker.AllTests
[junit] [BOOT] INFO: OJB.properties:
file:/C:/jakarta-ojb-0.9.5/target/test/
ojb/OJB.properties
<<<<< had to terminate process here. >>>>>
[junit] TEST org.apache.ojb.broker.AllTests FAILED
[junit] Running org.apache.ojb.odmg.AllTests
[junit] [BOOT] INFO: OJB.properties:
file:/C:/jakarta-ojb-0.9.5/target/test/
ojb/OJB.properties
[junit] Tests run: 122, Failures: 1, Errors: 19, Time elapsed: 29.463
sec
[junit] TEST org.apache.ojb.odmg.AllTests FAILED
[junit] Running org.apache.ojb.soda.AllTests
[junit] [BOOT] INFO: OJB.properties:
file:/C:/jakarta-ojb-0.9.5/target/test/
ojb/OJB.properties
[junit] Tests run: 3, Failures: 0, Errors: 0, Time elapsed: 2.253 sec
junit-no-compile:
junit:
BUILD SUCCESSFUL
Total time: 3 minutes 46 seconds
==============================================================
Thanks to anyone who knows whats up with this.
Don Wende
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>