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 72620

Summary: ModuleLogicalViewTest.testImportantFilesListening fails
Product: apisupport Reporter: Jesse Glick <jglick>
Component: ProjectAssignee: Martin Krauskopf <mkrauskopf>
Status: RESOLVED FIXED    
Severity: blocker Keywords: REGRESSION, TEST
Priority: P2    
Version: 5.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description Jesse Glick 2006-02-13 16:04:51 UTC
junit.framework.AssertionFailedError: nbproject/project.properties noticed
expected:<5> but was:<0>
        at
org.netbeans.modules.apisupport.project.ui.ModuleLogicalViewTest.testImportantFilesListening(ModuleLogicalViewTest.java:61)
Comment 1 Jesse Glick 2006-02-13 16:06:49 UTC
Recent. Related to deadlock fixes you made, perhaps?

BTW for getNodes() use getNodes(true) and for getNodesCount() (a useless method
if I ever saw one) use getNodes(true).length.
Comment 2 Jesse Glick 2006-02-13 16:07:58 UTC
Quick fix, review and maybe refine, and check for status in 5.0u1 branch:

Checking in ModuleLogicalViewTest.java;
/shared/data/ccvs/repository/apisupport/project/test/unit/src/org/netbeans/modules/apisupport/project/ui/ModuleLogicalViewTest.java,v
 <--  ModuleLogicalViewTest.java
new revision: 1.8; previous revision: 1.7
done
Comment 3 Martin Krauskopf 2006-02-13 16:35:26 UTC
Thanks. I'll eventually backport.

> BTW for getNodes() use getNodes(true)...

Yup, I'm still little confused by all that happening in the Nodes and Children
and when and how it really works. I'll try to remember those hints.
Comment 4 Martin Krauskopf 2006-02-14 08:51:23 UTC
Also the 'ping' is needed which enqueue refreshing into RP so the second time
the fork is prevented. (refresh, flush, no_forked_get)

test/unit/ui/ModuleLogicalViewTest.java; 1.8 -> 1.9;
Comment 5 Martin Krauskopf 2006-02-14 10:56:09 UTC
test/unit/ui/ModuleLogicalViewTest.java; 1.6.2.1 -> 1.6.2.2;