Author: dgolovin
Date: 2008-04-24 18:48:44 -0400 (Thu, 24 Apr 2008)
New Revision: 7785
Modified:
trunk/seam/tests/org.jboss.tools.seam.core.test/projects/TestScanner/WebContent/WEB-INF/components.xml
trunk/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/tools/seam/core/test/ScannerTest.java
Log:
Fix seam core test error in testLocation_JBIDE_2080 Failure XML declaration for component
org.jboss.seam.core.ejb is not found in components.xml.
Modified:
trunk/seam/tests/org.jboss.tools.seam.core.test/projects/TestScanner/WebContent/WEB-INF/components.xml
===================================================================
---
trunk/seam/tests/org.jboss.tools.seam.core.test/projects/TestScanner/WebContent/WEB-INF/components.xml 2008-04-24
21:46:27 UTC (rev 7784)
+++
trunk/seam/tests/org.jboss.tools.seam.core.test/projects/TestScanner/WebContent/WEB-INF/components.xml 2008-04-24
22:48:44 UTC (rev 7785)
@@ -28,6 +28,8 @@
concurrent-request-timeout="2"
conversation-timeout="3"
/>
+
+ <core:ejb installed="true"/>
<factory name="factory1" scope="conversation"/>
Modified:
trunk/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/tools/seam/core/test/ScannerTest.java
===================================================================
---
trunk/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/tools/seam/core/test/ScannerTest.java 2008-04-24
21:46:27 UTC (rev 7784)
+++
trunk/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/tools/seam/core/test/ScannerTest.java 2008-04-24
22:48:44 UTC (rev 7785)
@@ -508,9 +508,11 @@
break;
}
}
- assertNotNull("XML declaration for component " + EJB + " is not found in
components.xml.", xml);
+
+ String MY_COMPONENT = "myComponent";
+ assertNotNull("XML declaration for component " + MY_COMPONENT + " is not
found in components.xml.", xml);
ISeamTextSourceReference location =
xml.getLocationFor(ISeamXmlComponentDeclaration.NAME);
- assertNotNull("Location of declaration of component " + EJB + " in
components.xml is not found.", location);
+ assertNotNull("Location of declaration of component " + MY_COMPONENT + "
in components.xml is not found.", location);
assertTrue("Location should not point to 0", location.getStartPosition() >
0 && location.getLength() > 0);
}
Show replies by date