Author: akazakov
Date: 2010-12-16 10:55:17 -0500 (Thu, 16 Dec 2010)
New Revision: 27553
Modified:
trunk/tests/plugins/org.jboss.tools.tests/src/org/jboss/tools/tests/AbstractResourceMarkerTest.java
Log:
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-12-16
15:33:45 UTC (rev 27552)
+++
trunk/tests/plugins/org.jboss.tools.tests/src/org/jboss/tools/tests/AbstractResourceMarkerTest.java 2010-12-16
15:55:17 UTC (rev 27553)
@@ -137,8 +137,8 @@
resource, type, errorMessage, pattern);
if(lines.isEmpty()) {
- IMarker[] allMarkers = findMarkers(resource, null, "*", true);
- StringBuffer sb = new StringBuffer("Marker matches the '");
//$NON-NLS-1$
+ IMarker[] allMarkers = findMarkers(resource, null, ".*", true);
+ StringBuffer sb = new StringBuffer("Marker matches the '");
//$NON-NLS-1$
sb.append(errorMessage).append("' pattern wasn't found. Here is a list of
found markers in ").append(resource.getFullPath().toOSString()).append(" :
[\r\n"); //$NON-NLS-1$ //$NON-NLS-2$
int i=0;
for (IMarker marker : allMarkers) {
@@ -146,10 +146,10 @@
marker.getAttribute(IMarker.MESSAGE, ""); //$NON-NLS-1$
int line = marker.getAttribute(IMarker.LINE_NUMBER, -1);
String mType = marker.getType();
- sb.append(i).append(") line: \"").append(line).append("\";
type: \"").append(mType).append("\"; message:
\"").append(message).append("\";\r\n"); //$NON-NLS-1$
//$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
+ sb.append(i).append(") line=\"").append(line).append("\";
type=\"").append(mType).append("\";
message=\"").append(message).append("\";\r\n"); //$NON-NLS-1$
//$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
i++;
}
- sb.append("\r\n]"); //$NON-NLS-1$
+ sb.append("]"); //$NON-NLS-1$
fail(sb.toString());
}