Hi folks,
I'm having a look at OJB and make my first steps using Oracle9i
junit-no-compile-no-prepare:
[junit] Running org.apache.ojb.broker.AllTests
[junit] Tests run: 247, Failures: 1, Errors: 0, Time elapsed: 61.781 sec
[junit] TEST org.apache.ojb.broker.AllTests FAILED
[junit] Running org.apache.ojb.odmg.AllTests
[junit] [BOOT] INFO: OJB.properties:
file:/C:/Programme/java/db-ojb-1.0.rc4/target/test/ojb/OJB.properties
[junit] Tests run: 160, Failures: 0, Errors: 12, Time elapsed: 21.953 sec
[junit] TEST org.apache.ojb.odmg.AllTests FAILED
[junit] Running org.apache.ojb.soda.AllTests
[junit] [BOOT] INFO: OJB.properties:
file:/C:/Programme/java/db-ojb-1.0.rc4/target/test/ojb/OJB.properties
[junit] Tests run: 3, Failures: 0, Errors: 0, Time elapsed: 2.75 sec
[junit] Running org.apache.ojb.otm.AllTests
[junit] Tests run: 73, Failures: 0, Errors: 0, Time elapsed: 14.563 sec
The offending test is
Testcase: testDeleteWithRemovalAwareCollection took 0.078 sec
FAILED
expected:<1> but was:<2>
junit.framework.AssertionFailedError: expected:<1> but was:<2>
at
org.apache.ojb.broker.OneToManyTest.testDeleteWithRemovalAwareCollection(OneToManyTest.java:74)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
The source code shows
...
pg.getAllArticles().remove(c);
pg.getAllArticles().remove(0);
...
assertEquals(1,pg.getAllArticles().size());
...
I.e. one of the two removals fails
I also get a couple of SQL Errors
java.sql.SQLException: ORA-00001: unique constraint (WEBSHOP.ARTIKEL_PK) violated
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]