JUnit test with Eclipse UI
For SWT only UI test:
- Junit test
For Workbench UI test:
- Junit plug-in test
For SWT UI test, You can create event and post event throught the Display.post(Event).
For Workbench UI test, you create and operate the Parts with the
API of the Part, then verify by comparing the result with the expectation.
The Part window can be created by PlatformUI.getWorkbench().
You can:
- register a property change listener to the workbench window.
- find action by path when you test the action.
- use reflection to find the method and invoke.
- add the fixed bug to the testcase.
