removed resourceModified listener requirements from IsModified tests.
diff --git a/tests/org.eclipse.team.tests.cvs.core/src/org/eclipse/team/tests/ccvs/core/provider/IsModifiedTests.java b/tests/org.eclipse.team.tests.cvs.core/src/org/eclipse/team/tests/ccvs/core/provider/IsModifiedTests.java
index 703e305..97bb263 100644
--- a/tests/org.eclipse.team.tests.cvs.core/src/org/eclipse/team/tests/ccvs/core/provider/IsModifiedTests.java
+++ b/tests/org.eclipse.team.tests.cvs.core/src/org/eclipse/team/tests/ccvs/core/provider/IsModifiedTests.java
@@ -180,24 +180,25 @@
+ (resourceModified ? " should not be modified but is" : " should be modified but isn't"),
(listedResourcesShouldBeModified && (resourceModified == resourceListed)) ||
(!listedResourcesShouldBeModified && (!resourceModified == resourceListed)));
-
- IResource iResource = resource.getIResource();
- if (resource.isModified()) {
- modifiedResources.add(iResource);
- if (!wasPreviouslyModified(iResource)) {
- // the state has changed, make sure we got a notification
- Boolean b = (Boolean)changedResources.get(iResource);
- assertTrue("No notification received for state change of " + iResource.getFullPath().toString(),
- b == Boolean.TRUE);
- }
- } else {
- if (wasPreviouslyModified(iResource)) {
- // the state has changed, make sure we got a notification
- Boolean b = (Boolean)changedResources.get(iResource);
- assertTrue("No notification received for state change of " + iResource.getFullPath().toString(),
- b == Boolean.FALSE);
- }
- }
+
+// Commented because the CVS core doesn't rely on resourceModify to be called.
+// IResource iResource = resource.getIResource();
+// if (resource.isModified()) {
+// modifiedResources.add(iResource);
+// if (!wasPreviouslyModified(iResource)) {
+// // the state has changed, make sure we got a notification
+// Boolean b = (Boolean)changedResources.get(iResource);
+// assertTrue("No notification received for state change of " + iResource.getFullPath().toString(),
+// b == Boolean.TRUE);
+// }
+// } else {
+// if (wasPreviouslyModified(iResource)) {
+// // the state has changed, make sure we got a notification
+// Boolean b = (Boolean)changedResources.get(iResource);
+// assertTrue("No notification received for state change of " + iResource.getFullPath().toString(),
+// b == Boolean.FALSE);
+// }
+// }
}
public boolean wasPreviouslyModified(IResource iResource) {
return previouslyModified.contains(iResource);