Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvladt2011-02-23 17:54:25 +0000
committervladt2011-02-23 17:54:25 +0000
commit02e8c75779abfc23c664f77d8e3e600ced9d5ba9 (patch)
treefbecafb88ca603fd9d702fd9a5df41e77ff7f937 /org.eclipse.m2e.tests.common
parenta7116cd190fd769264fb68c4a3fe58f8729f023f (diff)
downloadm2e-core-02e8c75779abfc23c664f77d8e3e600ced9d5ba9.tar.gz
m2e-core-02e8c75779abfc23c664f77d8e3e600ced9d5ba9.tar.xz
m2e-core-02e8c75779abfc23c664f77d8e3e600ced9d5ba9.zip
Assert that all m2e markers are of a type that is a subtype of IMarker.PROBLEM
Diffstat (limited to 'org.eclipse.m2e.tests.common')
-rw-r--r--org.eclipse.m2e.tests.common/src/org/eclipse/m2e/tests/common/WorkspaceHelpers.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/org.eclipse.m2e.tests.common/src/org/eclipse/m2e/tests/common/WorkspaceHelpers.java b/org.eclipse.m2e.tests.common/src/org/eclipse/m2e/tests/common/WorkspaceHelpers.java
index be069013..6bb96b5a 100644
--- a/org.eclipse.m2e.tests.common/src/org/eclipse/m2e/tests/common/WorkspaceHelpers.java
+++ b/org.eclipse.m2e.tests.common/src/org/eclipse/m2e/tests/common/WorkspaceHelpers.java
@@ -249,6 +249,8 @@ public class WorkspaceHelpers {
if(marker == null) {
Assert.fail("Marker not found. Found markers:" + toString(markers));
}
+ Assert.assertTrue("Marker type " + type + " is not a subtype of " + IMarker.PROBLEM,
+ marker.isSubtypeOf(IMarker.PROBLEM));
return marker;
}

Back to the top