[jbosstools-commits] JBoss Tools SVN: r22067 - trunk/tests/plugins/org.jboss.tools.tests/src/org/jboss/tools/tests.

jbosstools-commits at lists.jboss.org jbosstools-commits at lists.jboss.org
Thu May 13 11:03:21 EDT 2010


Author: akazakov
Date: 2010-05-13 11:03:19 -0400 (Thu, 13 May 2010)
New Revision: 22067

Modified:
   trunk/tests/plugins/org.jboss.tools.tests/src/org/jboss/tools/tests/AbstractResourceMarkerTest.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-2708

Modified: trunk/tests/plugins/org.jboss.tools.tests/src/org/jboss/tools/tests/AbstractResourceMarkerTest.java
===================================================================
--- trunk/tests/plugins/org.jboss.tools.tests/src/org/jboss/tools/tests/AbstractResourceMarkerTest.java	2010-05-13 14:55:29 UTC (rev 22066)
+++ trunk/tests/plugins/org.jboss.tools.tests/src/org/jboss/tools/tests/AbstractResourceMarkerTest.java	2010-05-13 15:03:19 UTC (rev 22067)
@@ -65,9 +65,10 @@
 	public static IMarker[] findMarkers(IResource resource, String type, String pattern) throws CoreException {
 		List<IMarker> result = new ArrayList<IMarker>();
 		IMarker[] markers = resource.findMarkers(type, true, IResource.DEPTH_INFINITE);
+		System.out.println("");
 		for (int i = 0; i < markers.length; i++) {
 			String message = markers[i].getAttribute(IMarker.MESSAGE, ""); //$NON-NLS-1$
-			if (message.matches(pattern) && markers[i].exists()) {
+			if ((message.matches(pattern)||message.equals(pattern)) && markers[i].exists()) {
 				result.add(markers[i]);
 			}
 		}



More information about the jbosstools-commits mailing list