Bug 433608 - Clean JFace Unit tests in preparation for GSoc
Summary: Clean JFace Unit tests in preparation for GSoc
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.4   Edit
Hardware: PC Windows NT
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Jeanderson Candido CLA
QA Contact:
URL:
Whiteboard:
Keywords: test
Depends on:
Blocks:
 
Reported: 2014-04-27 21:39 EDT by Jeanderson Candido CLA
Modified: 2014-09-10 21:38 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 Jeanderson Candido CLA 2014-04-27 21:39:22 EDT
Before start any work related to the proposal for JFace, it would be beneficial to clean up tests from JFace.
Comment 1 Jeanderson Candido CLA 2014-04-27 21:43:12 EDT
I'm working on this issue with Lars Vogel.

We are continue the work from #430873.
We decided to create this issue to keep it separated from clean up from JFace code.
Comment 2 Jeanderson Candido CLA 2014-04-28 12:50:27 EDT
Refactored tests from FieldAssistAPITests: https://git.eclipse.org/r/25678
Comment 3 Jeanderson Candido CLA 2014-04-28 13:18:35 EDT
Removed warnings from WizardTest: https://git.eclipse.org/r/25679

This class deserve a deeper look later. Large methods with long statements doesn't seems proper and there must be a better way to improve it. By now, just removing annoying warnings from JFace tests.
Comment 4 Jeanderson Candido CLA 2014-04-29 15:00:25 EDT
Removed another warning.
Subclass was making an unnecessary override of super-class: https://git.eclipse.org/r/25751
Comment 5 Jeanderson Candido CLA 2014-04-29 15:14:48 EDT
Removed warning related to the use of raw types: https://git.eclipse.org/r/25752
Comment 6 Jeanderson Candido CLA 2014-04-30 13:50:26 EDT
general clean up: https://git.eclipse.org/r/25812
Comment 7 Lars Vogel CLA 2014-05-08 16:00:54 EDT
(In reply to Jeanderson Candido from comment #4)
> Removed another warning.
> Subclass was making an unnecessary override of super-class:
> https://git.eclipse.org/r/25751

Thanks. Merged with https://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=f22406ccafdbf9109579c65a8496f46a39906b51
Comment 8 Jeanderson Candido CLA 2014-05-09 12:36:08 EDT
(In reply to Lars Vogel from comment #7)
> (In reply to Jeanderson Candido from comment #4)
> > Removed another warning.
> > Subclass was making an unnecessary override of super-class:
> > https://git.eclipse.org/r/25751
> 
> Thanks. Merged with
> https://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/
> ?id=f22406ccafdbf9109579c65a8496f46a39906b51

TestTableTree is testing deprecated API and TestTree it's just a version of TestTableTree with TreeViewer. I would say that we should believe but in fact it is really testing something that apparently should not exist (it is deprecated).

What would be the best option to get rid of the warning caused by this TestTableTree?
Comment 9 Jeanderson Candido CLA 2014-05-09 13:03:51 EDT
Removed warning from fieldassist test: https://git.eclipse.org/r/26307
Comment 10 Lars Vogel CLA 2014-05-09 15:07:54 EDT
(In reply to Jeanderson Candido from comment #8)
> I would say that we should believe but in
> fact it is really testing something that apparently should not exist (it is
> deprecated).

Deprecated does not mean it is not used anymore, it simply say it should not be used. Please open a bug suggesting to mark TableTree for deletion. If approved, the policy of platform will allow us to delete it in two years.

> What would be the best option to get rid of the warning caused by this
> TestTableTree?

Use Suppress Warning("deprecated")
Comment 11 Lars Vogel CLA 2014-05-23 06:36:48 EDT
(In reply to Jeanderson Candido from comment #2)
> Refactored tests from FieldAssistAPITests: https://git.eclipse.org/r/25678

Merged with https://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=7cc6bbf25e39de29089d87e8f8f6ed44f70104e6
Comment 12 Lars Vogel CLA 2014-05-23 06:41:25 EDT
(In reply to Jeanderson Candido from comment #3)
> Removed warnings from WizardTest: https://git.eclipse.org/r/25679
> 

Merged with https://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=89b764abca5c5d988ed28723d5ed08890bf55470
Comment 13 Lars Vogel CLA 2014-05-23 06:53:28 EDT
(In reply to Jeanderson Candido from comment #6)
> general clean up: https://git.eclipse.org/r/25812

Merged with https://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=d1c5d26867bd9a7f7099e4b66479f83885779eb7
Comment 14 Lars Vogel CLA 2014-09-10 17:40:18 EDT
GSoC is finished so per definition this bug is closed. Thanks Jeanderson.
Comment 15 Jeanderson Candido CLA 2014-09-10 21:38:06 EDT
(In reply to Lars Vogel from comment #14)
> GSoC is finished so per definition this bug is closed. Thanks Jeanderson.

Thank you too Lars. There's patch remaining (https://git.eclipse.org/r/#/c/26307/). Just wondering, will it be reviewed? I need to rebase it first.