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 51933

Summary: PackageViewTest.testCopyPaste failure in automated tests
Product: java Reporter: Milan Kubec <mkubec>
Component: ProjectAssignee: Tomas Zezula <tzezula>
Status: CLOSED FIXED    
Severity: blocker Keywords: TEST
Priority: P3    
Version: 4.x   
Hardware: Sun   
OS: Solaris   
Issue Type: DEFECT Exception Reporter:
Attachments: exc stack trace

Description Milan Kubec 2004-11-30 09:39:49 UTC
[200411281900, 1.4.2_06]

Error message:
Wrong number of nodes. expected:<2> but was:<1>
Stack trace attached.
Comment 1 Milan Kubec 2004-11-30 09:40:27 UTC
Created attachment 19079 [details]
exc stack trace
Comment 2 Milan Kubec 2004-11-30 10:52:24 UTC
*** Issue 51932 has been marked as a duplicate of this issue. ***
Comment 3 Jesse Glick 2004-12-01 17:45:51 UTC
You're forgetting the TEST keyword again.
Comment 4 Milan Kubec 2004-12-02 10:18:01 UTC
Yes, sorry for that, I will keep it on mind.
Comment 5 Tomas Zezula 2004-12-03 13:33:00 UTC
Does it fail deterministically?
It works fine on my linux. The test does the clipboard copy of
ExTransferable.Multi containing 2 JavaDataObject nodes. The used
PasteType is DataFolder's PasteType. The assertNodes calls
children.getNodes(true) to refresh nodes. It should work fine.
I've added some more assertions to be sure that the FileObjects are
really created.

Checking in
project/test/unit/src/org/netbeans/spi/java/project/support/ui/PackageViewTest.java;
/cvs/java/project/test/unit/src/org/netbeans/spi/java/project/support/ui/PackageViewTest.java,v
 <--  PackageViewTest.java
new revision: 1.23; previous revision: 1.22
done
Comment 6 David Konecny 2005-01-24 16:01:06 UTC
Reopen if it still fails.
Comment 7 Milan Kubec 2005-02-09 13:35:29 UTC
Haven't seen for long time, verified.