| Summary: | [working sets] Clean up WorkingSetDropAdapterTest | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Dani Megert <daniel_megert> | ||||||
| Component: | UI | Assignee: | Raksha Vasisht <raksha.vasisht> | ||||||
| Status: | VERIFIED FIXED | QA Contact: | |||||||
| Severity: | normal | ||||||||
| Priority: | P4 | CC: | markus.kell.r | ||||||
| Version: | 3.7 | Keywords: | test | ||||||
| Target Milestone: | 3.7 RC1 | Flags: | daniel_megert:
review+
|
||||||
| Hardware: | All | ||||||||
| OS: | All | ||||||||
| Whiteboard: | |||||||||
| Attachments: |
|
||||||||
|
Description
Dani Megert
IMPORTANT: First fix bug 338531 and then this one. Created attachment 194790 [details]
Patch
Test cleaned up
creation of working sets and code removed from PackageExplorerPart.java to the test using Accessor.
Dani, could you pls review? Comment on attachment 194790 [details]
Patch
- 'packageExplorerPart' is not a valid field name.
- I don't see the need for the second argument in 'createJavaWorkingSets'.
- The code is still ugly: AFAICS we always only put one element into the
selection hence creating an array in all those test methods seems overkill.
In addition we then loop over the 1 element array in 'createSelection'.
Created attachment 194806 [details] Patch_2 (In reply to comment #4) > Comment on attachment 194790 [details] [diff] > Patch > - I don't see the need for the second argument in 'createJavaWorkingSets'. I added it so that you can pass other arguments as well if needed. As it is now, it is not required. > - The code is still ugly: AFAICS we always only put one element into the > selection hence creating an array in all those test methods seems overkill. > In addition we then loop over the 1 element array in 'createSelection'. Oh didn't notice it was like that for all methods, removed the list. Patch_2 committed to HEAD. . > Patch_2 committed to HEAD.
Take a look in HEAD for an improved version.
Verified in I20110512-2000 that the test is cleaned up and released into the map files. |