This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | JavaPersistenceGeneratorTest failures | ||
---|---|---|---|
Product: | javaee | Reporter: | Erno Mononen <emononen> |
Component: | Persistence | Assignee: | Erno Mononen <emononen> |
Status: | RESOLVED FIXED | ||
Severity: | blocker | Keywords: | TEST |
Priority: | P2 | ||
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
Erno Mononen
2007-04-24 11:36:45 UTC
The described issue has been fixed (needed the org.netbeans.core.startup module, see http://wiki.netbeans.org/wiki/view/ UsingFileSystemsMasterfs), but the tests still fail due to differences in formatting. Likely an issue in the formatting engine, the failures are caused by the following badly formatted equals methods: @Override public boolean equals(Object object) { // TODO: Warning - this method won't work in the case the id fields are not set if (!(object instanceof Product)) { .. Fixed in trunk. In addition to the formatting differences there was yet another (new) cause for the failures, namely a problem with the class path used in the test. Checking in data/goldenfiles/org/netbeans/modules/j2ee/persistence/wizard/fromdb/JavaPersistenceGeneratorTest/ testGenerateTwoUnrelated/User.pass; /cvs/j2ee/persistence/test/unit/data/goldenfiles/org/netbeans/modules/j2ee/persistence/wizard/fromdb/ JavaPersistenceGeneratorTest/testGenerateTwoUnrelated/User.pass,v <-- User.pass new revision: 1.5; previous revision: 1.4 done Checking in data/goldenfiles/org/netbeans/modules/j2ee/persistence/wizard/fromdb/JavaPersistenceGeneratorTest/ testGenerateTwoUnrelated/Product.pass; /cvs/j2ee/persistence/test/unit/data/goldenfiles/org/netbeans/modules/j2ee/persistence/wizard/fromdb/ JavaPersistenceGeneratorTest/testGenerateTwoUnrelated/Product.pass,v <-- Product.pass new revision: 1.5; previous revision: 1.4 done Checking in data/goldenfiles/org/netbeans/modules/j2ee/persistence/wizard/fromdb/JavaPersistenceGeneratorTest/ testGenerateOneEntity/User.pass; /cvs/j2ee/persistence/test/unit/data/goldenfiles/org/netbeans/modules/j2ee/persistence/wizard/fromdb/ JavaPersistenceGeneratorTest/testGenerateOneEntity/User.pass,v <-- User.pass new revision: 1.3; previous revision: 1.2 done Checking in data/goldenfiles/org/netbeans/modules/j2ee/persistence/wizard/fromdb/JavaPersistenceGeneratorTest/ testGenerateEntityFromSampleSchema/Customer.pass; /cvs/j2ee/persistence/test/unit/data/goldenfiles/org/netbeans/modules/j2ee/persistence/wizard/fromdb/ JavaPersistenceGeneratorTest/testGenerateEntityFromSampleSchema/Customer.pass,v <-- Customer.pass new revision: 1.3; previous revision: 1.2 done Checking in data/goldenfiles/org/netbeans/modules/j2ee/persistence/wizard/fromdb/JavaPersistenceGeneratorTest/ testGenerateRelatedEntitiesFromSampleSchema/ProductCode.pass; /cvs/j2ee/persistence/test/unit/data/goldenfiles/org/netbeans/modules/j2ee/persistence/wizard/fromdb/ JavaPersistenceGeneratorTest/testGenerateRelatedEntitiesFromSampleSchema/ProductCode.pass,v <-- ProductCode.pass new revision: 1.3; previous revision: 1.2 done Checking in data/goldenfiles/org/netbeans/modules/j2ee/persistence/wizard/fromdb/JavaPersistenceGeneratorTest/ testGenerateRelatedEntitiesFromSampleSchema/Manufacturer.pass; /cvs/j2ee/persistence/test/unit/data/goldenfiles/org/netbeans/modules/j2ee/persistence/wizard/fromdb/ JavaPersistenceGeneratorTest/testGenerateRelatedEntitiesFromSampleSchema/Manufacturer.pass,v <-- Manufacturer.pass new revision: 1.3; previous revision: 1.2 done Checking in data/goldenfiles/org/netbeans/modules/j2ee/persistence/wizard/fromdb/JavaPersistenceGeneratorTest/ testGenerateRelatedEntitiesFromSampleSchema/Product.pass; /cvs/j2ee/persistence/test/unit/data/goldenfiles/org/netbeans/modules/j2ee/persistence/wizard/fromdb/ JavaPersistenceGeneratorTest/testGenerateRelatedEntitiesFromSampleSchema/Product.pass,v <-- Product.pass new revision: 1.3; previous revision: 1.2 done Checking in src/org/netbeans/modules/j2ee/persistence/sourcetestsupport/ClassPathProviderImpl.java; /cvs/j2ee/persistence/test/unit/src/org/netbeans/modules/j2ee/persistence/sourcetestsupport/ ClassPathProviderImpl.java,v <-- ClassPathProviderImpl.java new revision: 1.5; previous revision: 1.4 done |