Bug 227962 - Allow to execute just a specific hint from a Hint class
Allow to execute just a specific hint from a Hint class
Status: RESOLVED FIXED
Product: java
Classification: Unclassified
Component: Hints
7.4
PC Linux
: P2 (vote)
: 7.4
Assigned To: Svata Dedic
issues@java
: API, API_REVIEW_FAST
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-03-26 17:07 UTC by Svata Dedic
Modified: 2013-04-03 22:09 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
:


Attachments
Proposed changes (2.67 KB, patch)
2013-03-26 17:07 UTC, Svata Dedic
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Svata Dedic 2013-03-26 17:07:22 UTC
Created attachment 133093 [details]
Proposed changes

The current HintTest.run() method runs the whole hint class, which is useful if the class contains alternative triggers for the same hint.

It's not that useful if a class contains a number of small hints; it may be difficult to provide a test data, which trigger exactly just the tested hint. run(Class hintClazz, String hintId) could solve that issue, running just hint(s) whose metadata id matches the argument.

See the attached diff for proposed changes.
Comment 1 Svata Dedic 2013-04-03 22:09:38 UTC
Implemented in http://hg.netbeans.org/jet-main/rev/68f9c98c8bc4


By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo