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

Summary: [tests] Unit tests for events API failing because they incorrectly rely on ordering of collections returned from JMI API
Product: java Reporter: Martin Matula <mmatula>
Component: UnsupportedAssignee: Milan Kubec <mkubec>
Status: RESOLVED FIXED    
Severity: blocker Keywords: TEST
Priority: P3    
Version: 3.x   
Hardware: PC   
OS: Windows ME/2000   
Issue Type: DEFECT Exception Reporter:

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