Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 320778 - AbstractSWTBotFormsTestCase cannot handle more than one test method
Summary: AbstractSWTBotFormsTestCase cannot handle more than one test method
Status: NEW
Alias: None
Product: SWTBot
Classification: Technology
Component: SWTBot (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows Vista
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 320777
  Show dependency tree
 
Reported: 2010-07-23 19:13 EDT by Elias Volanakis CLA
Modified: 2014-06-23 05:37 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Elias Volanakis CLA 2010-07-23 19:13:24 EDT
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.
Comment 2 Mickael Istria CLA 2014-06-23 05:37:28 EDT
Hi Elias,
Maybe you could contribute this fix via Gerrit: https://wiki.eclipse.org/SWTBot/Contributing#Provide_a_contribution_using_Gerrit