Author: scabanovich
Date: 2009-06-10 09:06:26 -0400 (Wed, 10 Jun 2009)
New Revision: 15857
Modified:
trunk/jsf/tests/org.jboss.tools.jsf.test/src/org/jboss/tools/jsf/model/pv/test/JSFPromptingProviderTest.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-4213
Modified:
trunk/jsf/tests/org.jboss.tools.jsf.test/src/org/jboss/tools/jsf/model/pv/test/JSFPromptingProviderTest.java
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.test/src/org/jboss/tools/jsf/model/pv/test/JSFPromptingProviderTest.java 2009-06-10
13:05:53 UTC (rev 15856)
+++
trunk/jsf/tests/org.jboss.tools.jsf.test/src/org/jboss/tools/jsf/model/pv/test/JSFPromptingProviderTest.java 2009-06-10
13:06:26 UTC (rev 15857)
@@ -3,6 +3,7 @@
import java.io.IOException;
import java.lang.reflect.InvocationTargetException;
import java.util.List;
+import java.util.Map;
import java.util.Properties;
import org.eclipse.core.resources.IProject;
@@ -11,10 +12,13 @@
import org.eclipse.ui.IEditorPart;
import org.eclipse.ui.PlatformUI;
import org.jboss.tools.common.model.XModel;
+import org.jboss.tools.common.model.XModelObject;
import org.jboss.tools.common.model.project.IModelNature;
import org.jboss.tools.common.model.util.EclipseResourceUtil;
import org.jboss.tools.jsf.model.pv.JSFPromptingProvider;
import org.jboss.tools.jsf.plugin.JsfTestPlugin;
+import org.jboss.tools.jst.web.model.helpers.WebAppHelper;
+import org.jboss.tools.jst.web.project.WebProject;
import org.jboss.tools.jst.web.project.list.IWebPromptingProvider;
import org.jboss.tools.jst.web.project.list.WebPromptingProvider;
import org.jboss.tools.test.util.JobUtils;
@@ -128,6 +132,19 @@
assertEquals("/a.jsp", s);
}
+ public void testGetTaglibs() {
+ WebProject p = WebProject.getInstance(model);
+ try {
+ Thread.sleep(5000);
+ } catch (InterruptedException e) {}
+ p.getTaglibMapping().invalidate();
+ Map<String,XModelObject> map = p.getTaglibMapping().getTaglibObjects();
+ XModelObject o1 = map.get("facelet_taglib");
+ assertNotNull(o1);
+ XModelObject o2 = map.get("facelet_taglib2");
+ assertNotNull(o2);
+ }
+
public void testOpenBean() {
List<Object> list = provider.getBeans(model);
for (Object object : list) {