## Basic scenarios

Since:
Last Modified: $Date: 2007/05/18 13:54:37 $

To setup, goto the CVS preference page and enable watch edit for all projects checked out from CVS. And then set the prompt option to always prompt.

1. Check out a project from CVS and verify that the files are marked as read-only.
2. Open a file and edit it. You should be prompted to edit it. Say yes. There should be a brief pause, then you can edit the file.
3. Open another file and start editing it. You should be prompted to edit it. Say no. The file will remain read-only and you won't be allowed to edit it.
4. Open a file and edit it. Say yes to the prompt. commit the file and edit again. You should be prompted a second time.
5. Open a file and edit it. Say yes to the prompt. Replace the file from the repository and edit again. You should be prompted to edit again.
6. Open a file and edit it. Un-plug your network connection. Say yes to the prompt to send a notification. There should be a pause, then the file should be editable.
7. Checkout another copy of the project. Edit a file, then try to edit the same file in the another project copy. You should be notified that the file is currently being edited by someone else.

Saving files - setup is the same as previous

1. Check out a project from CVS and verify that the files are marked as read-only.
2. Open a file and edit it. You should be prompted to edit it. Say yes. There should be a brief pause, then you can edit the file.
3. Edit the file but don't save it.
4. Edit the file in a system editor outside of Eclipse, then in the resource navigator, commit the file. The resource's decorator will change. Ignore all the prompts about saving the un-saved file.
5. Return to the unsaved editor and try typing. You should be prompted to call validate edit again.

validateEdit fails

1. Check out a project from CVS and verify that the files are marked as read-only.
2. Disconnect from network so that the validateEdit would fail.
3. Open a file and edit it. You should be prompted to edit it. Say yes. There should be a pause then the error should be reported in the editor pane showing the exception that occurred.

Refactoring

1. Check out a project from CVS and verify that the files are marked as read-only.