Author: akazakov
Date: 2012-01-17 20:44:29 -0500 (Tue, 17 Jan 2012)
New Revision: 37928
Modified:
trunk/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/tools/seam/core/test/SeamValidatorsTest.java
Log:
https://issues.jboss.org/browse/JBIDE-10660 JSF EL validation is not scoped correctly
Modified:
trunk/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/tools/seam/core/test/SeamValidatorsTest.java
===================================================================
---
trunk/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/tools/seam/core/test/SeamValidatorsTest.java 2012-01-18
01:38:46 UTC (rev 37927)
+++
trunk/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/tools/seam/core/test/SeamValidatorsTest.java 2012-01-18
01:44:29 UTC (rev 37928)
@@ -43,7 +43,6 @@
import org.jboss.tools.seam.internal.core.SeamProject;
import org.jboss.tools.seam.internal.core.validation.SeamValidationErrorManager;
import org.jboss.tools.seam.internal.core.validation.SeamValidationMessages;
-import org.jboss.tools.test.util.JUnitUtils;
import org.jboss.tools.test.util.JobUtils;
import org.jboss.tools.test.util.ProjectImportTestSetup;
import org.jboss.tools.tests.AbstractResourceMarkerTest;
@@ -157,18 +156,14 @@
assertEquals(sb.toString(), 2, markers.size());
}
- private List<IMarker> getMarkersByGroupName(IResource resource, String
messageGroup) {
+ private List<IMarker> getMarkersByGroupName(IResource resource, String
messageGroup) throws CoreException {
List<IMarker> ms = new ArrayList<IMarker>();
- try {
- IMarker[] markers = resource.findMarkers(MARKER_TYPE, true,
IResource.DEPTH_INFINITE);
- for (int i = 0; i < markers.length; i++) {
- String groupName = markers[i].getAttribute("groupName", null);
- if(groupName==null || (!groupName.equals(messageGroup) &&
!groupName.equals("markedKbResource"))) {
- ms.add(markers[i]);
- }
+ IMarker[] markers = resource.findMarkers(MARKER_TYPE, true, IResource.DEPTH_INFINITE);
+ for (int i = 0; i < markers.length; i++) {
+ String groupName = markers[i].getAttribute("groupName", null);
+ if(groupName!=null && (groupName.equals(messageGroup) ||
groupName.equals("markedKbResource"))) {
+ ms.add(markers[i]);
}
- }catch(CoreException ex){
- JUnitUtils.fail("Can'r get problem markers", ex);
}
return ms;
}