Author: mareshkau
Date: 2010-05-27 05:14:28 -0400 (Thu, 27 May 2010)
New Revision: 22363
Modified:
branches/3.2.helios/vpe/tests/org.jboss.tools.vpe.ui.test/src/org/jboss/tools/vpe/ui/test/VpeTest.java
Log:
fixing junit tests hangs up under eclipse 3.6
Modified:
branches/3.2.helios/vpe/tests/org.jboss.tools.vpe.ui.test/src/org/jboss/tools/vpe/ui/test/VpeTest.java
===================================================================
---
branches/3.2.helios/vpe/tests/org.jboss.tools.vpe.ui.test/src/org/jboss/tools/vpe/ui/test/VpeTest.java 2010-05-27
08:30:58 UTC (rev 22362)
+++
branches/3.2.helios/vpe/tests/org.jboss.tools.vpe.ui.test/src/org/jboss/tools/vpe/ui/test/VpeTest.java 2010-05-27
09:14:28 UTC (rev 22363)
@@ -121,20 +121,21 @@
*/
@Override
protected void tearDown() throws Exception {
+//Has been commented by Maksim Areshkau,
+//this lines was a fix for JBIDE-6197 and not needed under eclipse 3.6
+// boolean isJobsCheck = true;
+// while (isJobsCheck) {
+// isJobsCheck = false;
+// Job[] jobs = Job.getJobManager().find(null);
+// for (Job job : jobs) {
+// if (job instanceof StructuredRegionProcessor) {
+// TestUtil.delay(50);
+// isJobsCheck = true;
+// break;
+// }
+// }
+// }
- boolean isJobsCheck = true;
- while (isJobsCheck) {
- isJobsCheck = false;
- Job[] jobs = Job.getJobManager().find(null);
- for (Job job : jobs) {
- if (job instanceof StructuredRegionProcessor) {
- TestUtil.delay(50);
- isJobsCheck = true;
- break;
- }
- }
- }
-
closeEditors();
Platform.removeLogListener(this);
Show replies by date