Author: scabanovich
Date: 2010-10-18 06:23:20 -0400 (Mon, 18 Oct 2010)
New Revision: 25895
Modified:
trunk/seam/tests/org.jboss.tools.seam.ui.test/src/org/jboss/tools/seam/ui/test/view/SeamComponentsViewTest.java
Log:
JBIDE-7348
https://jira.jboss.org/browse/JBIDE-7348
Modified:
trunk/seam/tests/org.jboss.tools.seam.ui.test/src/org/jboss/tools/seam/ui/test/view/SeamComponentsViewTest.java
===================================================================
---
trunk/seam/tests/org.jboss.tools.seam.ui.test/src/org/jboss/tools/seam/ui/test/view/SeamComponentsViewTest.java 2010-10-18
10:22:09 UTC (rev 25894)
+++
trunk/seam/tests/org.jboss.tools.seam.ui.test/src/org/jboss/tools/seam/ui/test/view/SeamComponentsViewTest.java 2010-10-18
10:23:20 UTC (rev 25895)
@@ -377,19 +377,10 @@
}catch(Exception ex){
JUnitUtils.fail("Cannot delete file JavaSource/demo/Person.java", ex);
}
-// refreshProject(project);
+
+ refreshProject(project);
+
component = sp.getComponent("beatles.Pall");
- for (int i = 0; i < 100; i++) {
- if(component == null) break;
- System.out.println("beatles.Pall not removed yet " + i + " " +
classFile.exists() + " " + component.getAllDeclarations().size() + " "
+ component.getJavaDeclaration());
- try {
- project.build(IncrementalProjectBuilder.INCREMENTAL_BUILD, new
NullProgressMonitor());
- JobUtils.waitForIdle();
- } catch (CoreException e) {}
- try {
- Thread.sleep(1000);
- } catch (InterruptedException e) {}
- }
assertNull(component);
Collection<ISeamPackage> ps = sp.getPackages();