Buildfile: build.xml init: prepare: main: prepare-tests: [copy] Copying 1 file to /home/scop/cvs/ojb-1-0/src/test/setup tests: [echo] using switches: -HSQLDB, -ORACLE, -MS_ACCESS, -INSTANTDB, -DB2, +POSTGRESQL, -MYSQL, -INFORMIX, -MSSQLSERVER2000, -SOLID [java] . [move] Moving 1 files to /home/scop/cvs/ojb-1-0/src/test/setup [copy] Copying 1 file to /home/scop/cvs/ojb-1-0/build/test/setup [delete] Deleting: /home/scop/cvs/ojb-1-0/src/test/setup/database-setup.sql [java] [BOOT] INFO: process db-setup.sql [java] [BOOT] INFO: DB url: jdbc:postgresql:ojbdemodb [java] [BOOT] INFO: Driver: PostgreSQL Native Driver [java] [BOOT] INFO: Version: PostgreSQL 7.2b5 JDBC2 junit: [junit] .[BOOT] INFO: OJB.properties: file:/home/scop/cvs/ojb-1-0/build/test/ojb/OJB.properties [junit] [BOOT] INFO: OJB.properties: file:/home/scop/cvs/ojb-1-0/build/test/ojb/OJB.properties [junit] .......................................No results were returned by the query. [junit] F. [junit] No results were returned by the query. [junit] at ojb.broker.singlevm.PersistenceBrokerImpl.storeCollections(PersistenceBrokerImpl.java:443) [junit] at ojb.broker.singlevm.PersistenceBrokerImpl.store(PersistenceBrokerImpl.java:1301) [junit] at ojb.broker.singlevm.PersistenceBrokerImpl.store(PersistenceBrokerImpl.java:314) [junit] at test.ojb.broker.MtoNMapping.testInsertion(MtoNMapping.java:154) [junit] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [junit] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [junit] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [junit] at java.lang.reflect.Method.invoke(Method.java:324) [junit] at junit.framework.TestCase.runTest(TestCase.java:166) [junit] at junit.framework.TestCase.runBare(TestCase.java:140) [junit] at junit.framework.TestResult$1.protect(TestResult.java:106) [junit] at junit.framework.TestResult.runProtected(TestResult.java:124) [junit] at junit.framework.TestResult.run(TestResult.java:109) [junit] at junit.framework.TestCase.run(TestCase.java:131) [junit] at junit.framework.TestSuite.runTest(TestSuite.java:173) [junit] at junit.framework.TestSuite.run(TestSuite.java:168) [junit] at junit.framework.TestSuite.runTest(TestSuite.java:173) [junit] at junit.framework.TestSuite.run(TestSuite.java:168) [junit] at junit.textui.TestRunner.doRun(TestRunner.java:74) [junit] at junit.textui.TestRunner.start(TestRunner.java:234) [junit] at junit.textui.TestRunner.main(TestRunner.java:112) [junit] ...[DEFAULT] ERROR: OJB ERROR: Dont know how to autoincrement field class test.ojb.broker.LockedByVersion.id [junit] java.lang.RuntimeException: OJB ERROR: Dont know how to autoincrement field class test.ojb.broker.LockedByVersion.id [junit] at ojb.broker.metadata.ClassDescriptor.getAutoIncrementValue(ClassDescriptor.java:818) [junit] [DEFAULT] ERROR: OJB ERROR: Dont know how to autoincrement field class test.ojb.broker.LockedByVersion.id [junit] at ojb.broker.metadata.ClassDescriptor.getKeyValues(ClassDescriptor.java:648) [junit] at ojb.broker.Identity.(Identity.java:111) [junit] F.[DEFAULT] ERROR: OJB ERROR: Dont know how to autoincrement field class test.ojb.broker.LockedByVersion.id [junit] at test.ojb.broker.OptimisticLockingTest.testVersionLock(OptimisticLockingTest.java:77) [junit] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [junit] [DEFAULT] ERROR: OJB ERROR: Dont know how to autoincrement field class test.ojb.broker.LockedByVersion.id [junit] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [junit] F.[DEFAULT] ERROR: OJB ERROR: Dont know how to autoincrement field class test.ojb.broker.LockedByTimestamp.id [junit] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [junit] at java.lang.reflect.Method.invoke(Method.java:324) [junit] [DEFAULT] ERROR: OJB ERROR: Dont know how to autoincrement field class test.ojb.broker.LockedByTimestamp.id [junit] F [junit] Time: 6.323 [junit] There were 4 failures: [junit] at junit.framework.TestCase.runTest(TestCase.java:166) [junit] at junit.framework.TestCase.runBare(TestCase.java:140) [junit] 1) testInsertion(test.ojb.broker.MtoNMapping)junit.framework.AssertionFailedError: No results were returned by the query. [junit] at test.ojb.broker.MtoNMapping.testInsertion(MtoNMapping.java:167) [junit] at junit.framework.TestResult$1.protect(TestResult.java:106) [junit] at junit.framework.TestResult.runProtected(TestResult.java:124) [junit] at junit.framework.TestResult.run(TestResult.java:109) [junit] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [junit] at junit.framework.TestCase.run(TestCase.java:131) [junit] at junit.framework.TestSuite.runTest(TestSuite.java:173) [junit] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [junit] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [junit] at junit.framework.TestSuite.run(TestSuite.java:168) [junit] at junit.framework.TestSuite.runTest(TestSuite.java:173) [junit] at junit.framework.TestSuite.run(TestSuite.java:168) [junit] at junit.textui.TestRunner.doRun(TestRunner.java:74) [junit] at junit.textui.TestRunner.start(TestRunner.java:234) [junit] 2) testVersionLock(test.ojb.broker.OptimisticLockingTest)junit.framework.AssertionFailedError: OJB ERROR: Dont know how to autoincrement field class test.ojb.broker.LockedByVersion.id [junit] at test.ojb.broker.OptimisticLockingTest.testVersionLock(OptimisticLockingTest.java:110) [junit] at junit.textui.TestRunner.main(TestRunner.java:112) [junit] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [junit] OJB ERROR: Dont know how to autoincrement field class test.ojb.broker.LockedByVersion.id [junit] at ojb.broker.metadata.ClassDescriptor.getKeyValues(ClassDescriptor.java:654) [junit] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [junit] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [junit] at ojb.broker.Identity.(Identity.java:111) [junit] at test.ojb.broker.OptimisticLockingTest.testVersionLock(OptimisticLockingTest.java:77) [junit] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [junit] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [junit] 3) testLockHandling(test.ojb.broker.OptimisticLockingTest)junit.framework.AssertionFailedError: OJB ERROR: Dont know how to autoincrement field class test.ojb.broker.LockedByVersion.id [junit] at test.ojb.broker.OptimisticLockingTest.testLockHandling(OptimisticLockingTest.java:164) [junit] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [junit] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [junit] at java.lang.reflect.Method.invoke(Method.java:324) [junit] at junit.framework.TestCase.runTest(TestCase.java:166) [junit] at junit.framework.TestCase.runBare(TestCase.java:140) [junit] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [junit] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [junit] at junit.framework.TestResult$1.protect(TestResult.java:106) [junit] at junit.framework.TestResult.runProtected(TestResult.java:124) [junit] at junit.framework.TestResult.run(TestResult.java:109) [junit] at junit.framework.TestCase.run(TestCase.java:131) [junit] 4) testTimestampLock(test.ojb.broker.OptimisticLockingTest)junit.framework.AssertionFailedError: OJB ERROR: Dont know how to autoincrement field class test.ojb.broker.LockedByTimestamp.id [junit] at test.ojb.broker.OptimisticLockingTest.testTimestampLock(OptimisticLockingTest.java:209) [junit] at junit.framework.TestSuite.runTest(TestSuite.java:173) [junit] at junit.framework.TestSuite.run(TestSuite.java:168) [junit] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [junit] at junit.framework.TestSuite.runTest(TestSuite.java:173) [junit] at junit.framework.TestSuite.run(TestSuite.java:168) [junit] at junit.textui.TestRunner.doRun(TestRunner.java:74) [junit] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [junit] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [junit] [junit] FAILURES!!! [junit] at junit.textui.TestRunner.start(TestRunner.java:234) [junit] at junit.textui.TestRunner.main(TestRunner.java:112) [junit] Tests run: 46, Failures: 4, Errors: 0 [junit] [junit] java.lang.RuntimeException: OJB ERROR: Dont know how to autoincrement field class test.ojb.broker.LockedByVersion.id [junit] at ojb.broker.metadata.ClassDescriptor.getAutoIncrementValue(ClassDescriptor.java:818) [junit] at ojb.broker.metadata.ClassDescriptor.getKeyValues(ClassDescriptor.java:648) [junit] at ojb.broker.Identity.(Identity.java:111) [junit] at test.ojb.broker.OptimisticLockingTest.testLockHandling(OptimisticLockingTest.java:124) [junit] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [junit] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [junit] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [junit] at java.lang.reflect.Method.invoke(Method.java:324) [junit] at junit.framework.TestCase.runTest(TestCase.java:166) [junit] at junit.framework.TestCase.runBare(TestCase.java:140) [junit] at junit.framework.TestResult$1.protect(TestResult.java:106) [junit] at junit.framework.TestResult.runProtected(TestResult.java:124) [junit] at junit.framework.TestResult.run(TestResult.java:109) [junit] at junit.framework.TestCase.run(TestCase.java:131) [junit] at junit.framework.TestSuite.runTest(TestSuite.java:173) [junit] at junit.framework.TestSuite.run(TestSuite.java:168) [junit] at junit.framework.TestSuite.runTest(TestSuite.java:173) [junit] at junit.framework.TestSuite.run(TestSuite.java:168) [junit] at junit.textui.TestRunner.doRun(TestRunner.java:74) [junit] at junit.textui.TestRunner.start(TestRunner.java:234) [junit] at junit.textui.TestRunner.main(TestRunner.java:112) [junit] OJB ERROR: Dont know how to autoincrement field class test.ojb.broker.LockedByVersion.id [junit] at ojb.broker.metadata.ClassDescriptor.getKeyValues(ClassDescriptor.java:654) [junit] at ojb.broker.Identity.(Identity.java:111) [junit] at test.ojb.broker.OptimisticLockingTest.testLockHandling(OptimisticLockingTest.java:124) [junit] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [junit] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [junit] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [junit] at java.lang.reflect.Method.invoke(Method.java:324) [junit] at junit.framework.TestCase.runTest(TestCase.java:166) [junit] at junit.framework.TestCase.runBare(TestCase.java:140) [junit] at junit.framework.TestResult$1.protect(TestResult.java:106) [junit] at junit.framework.TestResult.runProtected(TestResult.java:124) [junit] at junit.framework.TestResult.run(TestResult.java:109) [junit] at junit.framework.TestCase.run(TestCase.java:131) [junit] at junit.framework.TestSuite.runTest(TestSuite.java:173) [junit] at junit.framework.TestSuite.run(TestSuite.java:168) [junit] at junit.framework.TestSuite.runTest(TestSuite.java:173) [junit] at junit.framework.TestSuite.run(TestSuite.java:168) [junit] at junit.textui.TestRunner.doRun(TestRunner.java:74) [junit] at junit.textui.TestRunner.start(TestRunner.java:234) [junit] at junit.textui.TestRunner.main(TestRunner.java:112) [junit] java.lang.RuntimeException: OJB ERROR: Dont know how to autoincrement field class test.ojb.broker.LockedByTimestamp.id [junit] at ojb.broker.metadata.ClassDescriptor.getAutoIncrementValue(ClassDescriptor.java:818) [junit] at ojb.broker.metadata.ClassDescriptor.getKeyValues(ClassDescriptor.java:648) [junit] at ojb.broker.Identity.(Identity.java:111) [junit] at test.ojb.broker.OptimisticLockingTest.testTimestampLock(OptimisticLockingTest.java:176) [junit] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [junit] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [junit] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [junit] at java.lang.reflect.Method.invoke(Method.java:324) [junit] at junit.framework.TestCase.runTest(TestCase.java:166) [junit] at junit.framework.TestCase.runBare(TestCase.java:140) [junit] at junit.framework.TestResult$1.protect(TestResult.java:106) [junit] at junit.framework.TestResult.runProtected(TestResult.java:124) [junit] at junit.framework.TestResult.run(TestResult.java:109) [junit] at junit.framework.TestCase.run(TestCase.java:131) [junit] at junit.framework.TestSuite.runTest(TestSuite.java:173) [junit] at junit.framework.TestSuite.run(TestSuite.java:168) [junit] at junit.framework.TestSuite.runTest(TestSuite.java:173) [junit] at junit.framework.TestSuite.run(TestSuite.java:168) [junit] at junit.textui.TestRunner.doRun(TestRunner.java:74) [junit] at junit.textui.TestRunner.start(TestRunner.java:234) [junit] at junit.textui.TestRunner.main(TestRunner.java:112) [junit] OJB ERROR: Dont know how to autoincrement field class test.ojb.broker.LockedByTimestamp.id [junit] at ojb.broker.metadata.ClassDescriptor.getKeyValues(ClassDescriptor.java:654) [junit] at ojb.broker.Identity.(Identity.java:111) [junit] at test.ojb.broker.OptimisticLockingTest.testTimestampLock(OptimisticLockingTest.java:176) [junit] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [junit] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [junit] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [junit] at java.lang.reflect.Method.invoke(Method.java:324) [junit] at junit.framework.TestCase.runTest(TestCase.java:166) [junit] at junit.framework.TestCase.runBare(TestCase.java:140) [junit] at junit.framework.TestResult$1.protect(TestResult.java:106) [junit] at junit.framework.TestResult.runProtected(TestResult.java:124) [junit] at junit.framework.TestResult.run(TestResult.java:109) [junit] at junit.framework.TestCase.run(TestCase.java:131) [junit] at junit.framework.TestSuite.runTest(TestSuite.java:173) [junit] at junit.framework.TestSuite.run(TestSuite.java:168) [junit] at junit.framework.TestSuite.runTest(TestSuite.java:173) [junit] at junit.framework.TestSuite.run(TestSuite.java:168) [junit] at junit.textui.TestRunner.doRun(TestRunner.java:74) [junit] at junit.textui.TestRunner.start(TestRunner.java:234) [junit] at junit.textui.TestRunner.main(TestRunner.java:112) Total time: 15 seconds