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 66553 - Created TestSuite copies all not necessary imports
Summary: Created TestSuite copies all not necessary imports
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: JUnit (show other bugs)
Version: 5.x
Hardware: All All
: P4 blocker (vote)
Assignee: Marian Petras
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-12 07:45 UTC by Milan Kubec
Modified: 2007-01-08 00:05 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 Milan Kubec 2005-10-12 07:45:11 UTC
[dev-200510111800, JDK 1.5.0_05]

Steps to reproduce:
1) Have class that uses number of various imports
2) Let IDE create junit test suite class for that class
Junit test class contains all imports from base class, but those are not
necessary there. After I invoked Fix Imports, all imports were removed from test
suite class. Fix imports action should be executed on the test suite class
during creating it.
Comment 1 Marian Petras 2005-10-21 17:50:15 UTC
Accepted.
Comment 2 Marian Petras 2007-01-08 00:05:06 UTC
Fixed in the trunk, together with bug #89820.

Added and modified files:
   ide/golden/deps.txt   (1.416)
   junit/manifest.mf   (1.47)
   junit/nbproject/project.properties   (1.12)
   junit/nbproject/project.xml   (1.22)
   junit/src/org/netbeans/modules/junit/:
                                    Bundle.properties   (1.78)
                                    ClassMap.java   (1.1 - new)
                                    CreateTestAction.java   (1.55)
                                    DefaultPlugin.java   (1.8)
                                    GoToOppositeAction.java   (1.11)
                                    GuiUtils.java   (1.6)
                                    JUnitCfgOfCreate.java   (1.40)
                                    JUnitSettingsBeanInfo.java   (1.22)
                                    JUnitSettings.java   (1.24)
                                    OpenTestAction.java   (1.26)
                                    TestabilityJudge.java   (1.1 - new)
                                    TestabilityResult.java   (1.1 - new)
                                    TestAction.java   (1.5)
                                    TestCreator.java   (1.63)
                                    TestUtil.java   (1.37)
                                    TopClassFinder.java   (1.1 - new)
   junit/src/org/netbeans/modules/junit/plugin/:
                                    JUnitPlugin.java   (1.5)
   junit/src/org/netbeans/modules/junit/resources/:
                                    layer.xml   (1.46)
   junit/src/org/netbeans/modules/junit/resources/templates/:
                                    EmptyJUnitTest.java.template   (1.1 - new)
                                    TestSuite.java.template   (1.1 - new)
   junit/src/org/netbeans/modules/junit/wizards/:
                                    EmptyTestCaseWizardIterator.java   (1.17)
                                    SimpleTestCaseWizardIterator.java   (1.20)
                                    SimpleTestStepLocation.java   (1.21)
                                    TestSuiteWizardIterator.java   (1.14)
                                    Utils.java   (1.21)

(See issue #89820 for the links to CVS diffs.)