This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 197720 - NbModuleSuite.Configuration.suite()
Summary: NbModuleSuite.Configuration.suite()
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: NB JUnit (show other bugs)
Version: 7.0
Hardware: All All
: P3 normal (vote)
Assignee: Jesse Glick
URL:
Keywords: API, API_REVIEW_FAST
Depends on:
Blocks:
 
Reported: 2011-04-13 20:11 UTC by Jesse Glick
Modified: 2011-05-20 08:54 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
Proposed patch, minus apichanges (1.28 KB, patch)
2011-04-13 20:11 UTC, Jesse Glick
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2011-04-13 20:11:50 UTC
Created attachment 107735 [details]
Proposed patch, minus apichanges

It is awkward to type

NbModuleSuite.create(NbModuleSuite.createConfiguration(...).someParam().otherParam())

because you start out with the createConfiguration call but then code completion does not tell you where to continue. Nicer to be able to type

return NbModuleSuite.createConfiguration(...).someParam().otherParam().suite();
Comment 1 Jaroslav Tulach 2011-04-14 14:14:38 UTC
OK + eat your own food: use config.suite() instead of new S(config);
Comment 2 Jesse Glick 2011-05-19 20:34:02 UTC
core-main #11992e3b2187 (and also some usages in core-main #c21c679af7a5).
Comment 3 Quality Engineering 2011-05-20 08:54:53 UTC
Integrated into 'main-golden', will be available in build *201105200400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/11992e3b2187
User: Jesse Glick <jglick@netbeans.org>
Log: #197720: Add NbModuleSuite.Configuration.suite() method as a convenience.