| Summary: | AbstractSWTBotFormsTestCase cannot handle more than one test method | ||
|---|---|---|---|
| Product: | [Technology] SWTBot | Reporter: | Elias Volanakis <elias> |
| Component: | SWTBot | Assignee: | Project Inbox <swtbot-inbox> |
| Status: | NEW --- | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | mistria |
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows Vista | ||
| Whiteboard: | |||
| Bug Depends on: | |||
| Bug Blocks: | 320777 | ||
Hi Elias, Maybe you could contribute this fix via Gerrit: https://wiki.eclipse.org/SWTBot/Contributing#Provide_a_contribution_using_Gerrit |
The setUp() method in this class is just plain wrong. It will fail as soon as a subclass contains two or more test methods. This was previously never the case. @Before public void setUp() { display = new Display(); // <--- this will fail the 2nd time bot = new SWTFormsBot(); thread = new Thread("UI Thread") { public void run() { Patch will follow.