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.

View | Details | Raw Unified | Return to bug 199616
Collapse All | Expand All

(-)a/masterfs/test/unit/src/org/netbeans/modules/masterfs/filebasedfs/BaseFileObjectTestHid.java (+14 lines)
Lines 244-249 Link Here
244
        List<FileObject> now = Arrays.asList(parent.getChildren());
244
        List<FileObject> now = Arrays.asList(parent.getChildren());
245
        assertEquals("Same children: ", arr, now);
245
        assertEquals("Same children: ", arr, now);
246
    }
246
    }
247
248
    public void testCaseSensitiveRenameEvent() throws Exception {
249
        FileObject parent = root.getFileObject("testdir").createFolder("parent");
250
        FileObject file = parent.createData("origi.nal");
251
        file.addFileChangeListener(new FileChangeAdapter(){
252
            @Override public void fileRenamed(FileRenameEvent fe) {
253
                assertEquals("origi", fe.getName());
254
                assertEquals("nal", fe.getExt());
255
            }
256
        });
257
        FileLock lock = file.lock();
258
        file.rename(lock, "Origi", "nal");
259
        lock.releaseLock();
260
    }
247
    
261
    
248
    public void testRootToFileObject() throws Exception {
262
    public void testRootToFileObject() throws Exception {
249
        FileObjectFactory fs = FileObjectFactory.getInstance(getWorkDir());
263
        FileObjectFactory fs = FileObjectFactory.getInstance(getWorkDir());

Return to bug 199616