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.
);
}
public void testIsLockedDoesntInvokeBeforeEdit() throws IOException {
FileObject fo = getVersionedFolder();
fo = fo.createData(TestVCS.ALWAYS_WRITABLE_PREFIX);
VCSFileProxy proxy = VCSFileProxy.createFileProxy(fo);
VCSFilesystemTestFactory.getInstance(this).setReadOnly(getRelativePath(proxy));
logHandler.clear();
assertFalse(fo.isLocked());
List<VCSFileProxy> beforeEditFiles = inteceptor.getBeforeEditFiles();
if(!inteceptor.getBeforeEditFiles().isEmpty()) {
StringBuilder sb = new StringBuilder();
sb.append("Not expected beforeEdit() intercepted for file(s): ");
for (int i = 0; i < beforeEditFiles.size(); i++) {
VCSFileProxy file = beforeEditFiles.get(i);
sb.append(file.getName());
if(i < beforeEditFiles.size() - 1) {
sb.append(",");
fail(sb.toString());
public void testGetAttribute() throws IOException {
FileObject folder = getVersionedFolder();
FileObject fo = folder.createData("gotattr.txt");