[jbosstools-commits] JBoss Tools SVN: r23947 - in trunk/jst/tests/org.jboss.tools.jst.web.kb.test: src/org/jboss/tools/jst/web/kb/test and 1 other directory.

jbosstools-commits at lists.jboss.org jbosstools-commits at lists.jboss.org
Thu Aug 5 13:12:41 EDT 2010


Author: dazarov
Date: 2010-08-05 13:12:40 -0400 (Thu, 05 Aug 2010)
New Revision: 23947

Added:
   trunk/jst/tests/org.jboss.tools.jst.web.kb.test/projects/TestKbModel/WebContent/WEB-INF/lib/jboss-seam-mail.jar
Modified:
   trunk/jst/tests/org.jboss.tools.jst.web.kb.test/src/org/jboss/tools/jst/web/kb/test/WebKbTest.java
Log:
https://jira.jboss.org/browse/JBIDE-5198

Added: trunk/jst/tests/org.jboss.tools.jst.web.kb.test/projects/TestKbModel/WebContent/WEB-INF/lib/jboss-seam-mail.jar
===================================================================
(Binary files differ)


Property changes on: trunk/jst/tests/org.jboss.tools.jst.web.kb.test/projects/TestKbModel/WebContent/WEB-INF/lib/jboss-seam-mail.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Modified: trunk/jst/tests/org.jboss.tools.jst.web.kb.test/src/org/jboss/tools/jst/web/kb/test/WebKbTest.java
===================================================================
--- trunk/jst/tests/org.jboss.tools.jst.web.kb.test/src/org/jboss/tools/jst/web/kb/test/WebKbTest.java	2010-08-05 17:08:43 UTC (rev 23946)
+++ trunk/jst/tests/org.jboss.tools.jst.web.kb.test/src/org/jboss/tools/jst/web/kb/test/WebKbTest.java	2010-08-05 17:12:40 UTC (rev 23947)
@@ -103,6 +103,30 @@
 		fail("Can't find <p:document orientation=\"\"> proposal.");
 	}
 
+	/**
+	 * https://jira.jboss.org/jira/browse/JBIDE-5198
+	 */
+	public void testSeamMail() {
+		IFile file = testProject.getFile("WebContent/pages/testSeamPdfAndMail.jsp");
+		ELContext context = PageContextFactory.createPageContext(file);
+		KbQuery query = new KbQuery();
+		query.setMask(true);
+		query.setOffset(315);
+		query.setType(Type.ATTRIBUTE_NAME);
+		query.setParentTags(new String[]{"m:message"});
+		query.setPrefix("m");
+		query.setUri("http://jboss.com/products/seam/mail");
+		query.setValue("pre");
+		
+		TextProposal[] proposals = PageProcessor.getInstance().getProposals(query, context);
+		for (TextProposal proposal : proposals) {
+			if("precedence".equals(proposal.getReplacementString())) {
+				return;
+			}
+		}
+		fail("Can't find <m:message precedence=\"\"> proposal.");
+	}
+
 	public void testCustomExtensions() {
 		CustomTagLibAttribute[] attributes = CustomTagLibManager.getInstance().getComponentExtensions();
 		assertNotNull("Can't load component extensions.", attributes);



More information about the jbosstools-commits mailing list