Exception if the workbench has been already closed [message #666629] |
Thu, 21 April 2011 11:51 |
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
|
|
|
Powered by
FUDForum. Page generated in 0.03025 seconds