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 213886 - Generated test classes have import layout different than default setting, resulting in warning
Summary: Generated test classes have import layout different than default setting, res...
Status: RESOLVED DUPLICATE of bug 211931
Alias: None
Product: java
Classification: Unclassified
Component: JUnit (show other bugs)
Version: 7.2
Hardware: PC Linux
: P3 normal (vote)
Assignee: Theofanis Oikonomou
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-09 19:24 UTC by everflux
Modified: 2012-06-13 15:03 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description everflux 2012-06-09 19:24:20 UTC
[ BUILD # : 201206080001 ]
[ JDK VERSION : 1.7.4 ]

When generating a test class (JUnit) the layout of the imports diverges from
the default settings for the import layout. This result in a warning on the
freshly generated class.
My suggestion would be not to change the generated code but to change the
default import layout to have the statics at the end of the imports. (As is the
generated test class code)
Comment 1 Theofanis Oikonomou 2012-06-13 15:03:17 UTC

*** This bug has been marked as a duplicate of bug 211931 ***