Author: dgolovin
Date: 2008-01-09 02:55:02 -0500 (Wed, 09 Jan 2008)
New Revision: 5536
Modified:
trunk/jst/tests/org.jboss.tools.jst.web.test/src/org/jboss/tools/jst/web/test/WebContentAssistProviderTest.java
Log:
Test error was fixed
Modified:
trunk/jst/tests/org.jboss.tools.jst.web.test/src/org/jboss/tools/jst/web/test/WebContentAssistProviderTest.java
===================================================================
---
trunk/jst/tests/org.jboss.tools.jst.web.test/src/org/jboss/tools/jst/web/test/WebContentAssistProviderTest.java 2008-01-09
07:52:38 UTC (rev 5535)
+++
trunk/jst/tests/org.jboss.tools.jst.web.test/src/org/jboss/tools/jst/web/test/WebContentAssistProviderTest.java 2008-01-09
07:55:02 UTC (rev 5536)
@@ -19,6 +19,7 @@
import org.eclipse.core.resources.IProject;
import org.eclipse.core.resources.IResource;
+import org.eclipse.core.resources.IncrementalProjectBuilder;
import org.eclipse.core.resources.ResourcesPlugin;
import org.eclipse.core.runtime.NullProgressMonitor;
import org.eclipse.core.runtime.Platform;
@@ -46,6 +47,7 @@
}
public void testJsfBeanPropertyList() {
+ waitForJobs();
// seam beans list
List beanList = webPromptingProvider.getList(projectModel,
WebPromptingProvider.JSF_BEAN_PROPERTIES, "facesManagedBean", new
Properties());
assertTrue("Bean property list does not contain Managed bean property in
XModel.", beanList.contains("property1"));
@@ -77,11 +79,9 @@
public void setUp() throws Exception {
provider = new TestProjectProvider("org.jboss.tools.jst.web.test", null,
"TestsWebArtefacts", makeCopy);
project = provider.getProject();
- try {
- project.refreshLocal(IResource.DEPTH_INFINITE, null);
- } catch (Exception e) {
- ModelPlugin.getPluginLog().logError(e);
- }
+ project.refreshLocal(IResource.DEPTH_INFINITE, null);
+ project.build(IncrementalProjectBuilder.FULL_BUILD,null);
+ waitForJobs();
XModelObject xmo = EclipseResourceUtil.getObjectByResource(project);
assertNotNull("Can't get XModel Object for test project.", xmo);
projectModel = xmo.getModel();
Show replies by date