Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 320778

Summary: AbstractSWTBotFormsTestCase cannot handle more than one test method
Product: [Technology] SWTBot Reporter: Elias Volanakis <elias>
Component: SWTBotAssignee: 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    

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