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.

Bug 24032 - [tests] Unit tests for events API failing because they incorrectly rely on ordering of collections returned from JMI API
Summary: [tests] Unit tests for events API failing because they incorrectly rely on or...
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 3.x
Hardware: PC Windows ME/2000
: P3 blocker (vote)
Assignee: Milan Kubec
URL:
Keywords: TEST
Depends on:
Blocks:
 
Reported: 2002-05-24 14:56 UTC by Martin Matula
Modified: 2003-07-23 18:31 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Matula 2002-05-24 14:56:37 UTC
Unit tests for Events API rely on ordering of collection 
returned from JMI methods like 
RefPackage.refAllAssociations. As these methods return 
java.lang.Collection rather than java.lang.List, ordering 
of returned elements is not guaranteed and it really 
varies which causes the tests to fail incorrectly.
Comment 1 Milan Kubec 2002-06-20 14:59:03 UTC
Fixed by generating golden files on fly. 

cfg-unit.xml
org/netbeans/mdr/test/EventsDataGenerator.java
org/netbeans/mdr/test/MDRTestAssociationEvents.java
org/netbeans/mdr/test/MDRTestAssociationPreEvents.java
org/netbeans/mdr/test/MDRTestAttributeEvents.java
org/netbeans/mdr/test/MDRTestAttributePreEvents.java
org/netbeans/mdr/test/MDRTestInstanceEvents.java
org/netbeans/mdr/test/MDRTestInstancePreEvents.java