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 216110
Collapse All | Expand All

(-)versioning.core/test/unit/src/org/netbeans/modules/versioning/VCSInterceptorTestCase.java (+23 lines)
Lines 224-229 Link Here
224
        );   
224
        );   
225
    }
225
    }
226
226
227
    public void testIsLockedDoesntInvokeBeforeEdit() throws IOException {
228
        FileObject fo = getVersionedFolder();
229
        fo = fo.createData(TestVCS.ALWAYS_WRITABLE_PREFIX);
230
        VCSFileProxy proxy = VCSFileProxy.createFileProxy(fo);
231
        VCSFilesystemTestFactory.getInstance(this).setReadOnly(getRelativePath(proxy));
232
        logHandler.clear();
233
        
234
        assertFalse(fo.isLocked());
235
        List<VCSFileProxy> beforeEditFiles = inteceptor.getBeforeEditFiles();
236
        if(!inteceptor.getBeforeEditFiles().isEmpty()) {
237
            StringBuilder sb = new StringBuilder();
238
            sb.append("Not expected beforeEdit() intercepted for file(s): ");
239
            for (int i = 0; i < beforeEditFiles.size(); i++) {
240
                VCSFileProxy file = beforeEditFiles.get(i);
241
                sb.append(file.getName());
242
                if(i < beforeEditFiles.size() - 1) {
243
                    sb.append(",");
244
                }
245
            }
246
            fail(sb.toString());
247
        }
248
    }
249
    
227
    public void testGetAttribute() throws IOException {
250
    public void testGetAttribute() throws IOException {
228
        FileObject folder = getVersionedFolder();
251
        FileObject folder = getVersionedFolder();
229
        FileObject fo = folder.createData("gotattr.txt");
252
        FileObject fo = folder.createData("gotattr.txt");

Return to bug 216110