Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 420121 - SWTBotTree.select(String...) does not fail if item does not exist
Summary: SWTBotTree.select(String...) does not fail if item does not exist
Status: RESOLVED FIXED
Alias: None
Product: SWTBot
Classification: Technology
Component: SWTBot (show other bugs)
Version: 2.1.1   Edit
Hardware: PC Windows 8
: P3 normal (vote)
Target Milestone: 2.2.0   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-22 17:19 EDT by Kristine Jetzke CLA
Modified: 2013-12-20 07:02 EST (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 Kristine Jetzke CLA 2013-10-22 17:19:55 EDT
SWTBotTree.select(String...) does not fail if item does not exist. If it is used in a unit test, the unit test either needs to assert that all items were selected or retrieve and select each item separately. It would be better if an exception were thrown if an item does not exist.
Comment 1 Kristine Jetzke CLA 2013-10-22 17:45:28 EDT
Pushed fix to gerrit: https://git.eclipse.org/r/17667/
Comment 2 Mickael Istria CLA 2013-10-23 05:04:25 EDT
Thanks. Please see comments on the Gerrit review.
Comment 3 Mickael Istria CLA 2013-10-25 05:22:42 EDT
Thanks Kristine for this fix.