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 53274

Summary: Refactoring tests do not work
Product: platform Reporter: Tomas Hurka <thurka>
Component: FilesystemsAssignee: rmatous <rmatous>
Status: CLOSED FIXED    
Severity: blocker Keywords: REGRESSION, TEST
Priority: P2    
Version: 4.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description Tomas Hurka 2005-01-12 09:06:06 UTC
Four refactoring tests (in refactoring/test) are failing. This is 
probably caused by recent changes in filesystems 
implementation. 

Refactoing renames folder using DataFolder.rename() method. 
Filesystems infrastructure correctly fires fileRenamed event. The 
problem is that FileObject returned by FileRenameEvent.getFile() 
has no children.
Comment 1 rmatous 2005-01-13 17:06:22 UTC
/cvs/openide/masterfs/src/org/netbeans/modules/masterfs/filebasedfs/children/ChildrenSupport.java,v
 new revision: 1.3; previous revision: 1.2

/cvs/openide/masterfs/src/org/netbeans/modules/masterfs/filebasedfs/fileobjects/BaseFileObj.java,v
 new revision: 1.5; previous revision: 1.4

/cvs/openide/masterfs/src/org/netbeans/modules/masterfs/filebasedfs/naming/FileName.java,v
 new revision: 1.3; previous revision: 1.2

/cvs/openide/masterfs/src/org/netbeans/modules/masterfs/filebasedfs/naming/NamingFactory.java,v
 new revision: 1.3; previous revision: 1.2
Comment 2 rmatous 2005-01-13 18:24:45 UTC
I have been seeing this this test failing whenever I start your tests,
please evaluate and if it has something to do with filesystems then
file new issue.

org.netbeans.test.refactoring.moveclass.MoveClassTest started
ideTestRunner] - passed: 0  failed: 1  errors: 0  total: 1
Comment 3 Tomas Hurka 2005-01-14 11:18:58 UTC
Refactoring tests are OK.