Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » SWTBot » Exception if the workbench has been already closed(Exception on close)
Exception if the workbench has been already closed [message #666629] Thu, 21 April 2011 07:51
No real name is currently offline No real name
Messages: 4
Registered: May 2010
Junior Member
Hello,
we want to test our product with swtbot but it needs a special close handling. I wrote a own test runner with a run listener. On testRunFinished() I want to close the workbench but in the testingFinished method in the class org.eclipse.ui.internal.testing.WorkbenchTestable there is no check if the display is null and the workbench has been already closed.

The Assert.isTrue(workbench.close()); prevents me from forcing the close of the workbench because of the special handling which is needed I got often an assertion here.

Would it be possible to change this code so that the display will be checked if it is not null or the assertion will be changed to a try { } catch(..)?

Thank you in advance.

Regards,
Marc
Previous Topic:Using JAWS with Table widget
Next Topic:SWTBot in Eclipse dropins
Goto Forum:
  


Current Time: Fri Aug 01 06:05:38 EDT 2014

Powered by FUDForum. Page generated in 0.02231 seconds