Author: scabanovich
Date: 2011-12-02 18:42:41 -0500 (Fri, 02 Dec 2011)
New Revision: 36905
Modified:
trunk/jst/tests/org.jboss.tools.jst.web.kb.test/src/org/jboss/tools/jst/web/kb/test/MyFacesKbModelTest.java
Log:
JBIDE-10324
https://issues.jboss.org/browse/JBIDE-10324
Test for reload of kb model, that emulates restart of Eclipse.
Modified:
trunk/jst/tests/org.jboss.tools.jst.web.kb.test/src/org/jboss/tools/jst/web/kb/test/MyFacesKbModelTest.java
===================================================================
---
trunk/jst/tests/org.jboss.tools.jst.web.kb.test/src/org/jboss/tools/jst/web/kb/test/MyFacesKbModelTest.java 2011-12-02
21:42:23 UTC (rev 36904)
+++
trunk/jst/tests/org.jboss.tools.jst.web.kb.test/src/org/jboss/tools/jst/web/kb/test/MyFacesKbModelTest.java 2011-12-02
23:42:41 UTC (rev 36905)
@@ -15,6 +15,7 @@
import org.eclipse.core.resources.IProject;
import org.eclipse.core.resources.ResourcesPlugin;
import org.jboss.tools.jst.web.kb.IKbProject;
+import org.jboss.tools.jst.web.kb.internal.KbProject;
import org.jboss.tools.jst.web.kb.internal.taglib.myfaces.MyFacesTagLibrary;
import org.jboss.tools.jst.web.kb.taglib.IComponent;
import org.jboss.tools.jst.web.kb.taglib.ITagLibrary;
@@ -81,4 +82,10 @@
}
+ public void testReload() {
+ IKbProject kbProject = getKbProject();
+ ((KbProject)kbProject).reload();
+ testKbProjectObjects();
+ }
+
}
\ No newline at end of file