Community
Participate
Working Groups
I20110301-0800. WorkingSetDropAdapterTest is ugly and does not correctly create the working sets. Besides that I'd like to remove PackageExplorerPart.internalTestShowWorkingSets(IWorkingSet[]). Use the Accessor to access non public stuff.
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.