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 204773 - Generating unit tests for uncompiled NetBeans platform module does not add unit test dependencies.
Summary: Generating unit tests for uncompiled NetBeans platform module does not add un...
Status: VERIFIED FIXED
Alias: None
Product: apisupport
Classification: Unclassified
Component: Project (show other bugs)
Version: 7.1
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Jesse Glick
URL:
Keywords:
Depends on:
Blocks: 41658
  Show dependency tree
 
Reported: 2011-11-07 14:16 UTC by mienamoo
Modified: 2011-11-22 11:54 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 mienamoo 2011-11-07 14:16:54 UTC
NetBeans build 201111030600
JDK 7 build 147

When generating unit tests for a standalone NetBeans platform module that has not yet been compiled, the unit test dependencies are not added.

Steps to reproduce:

1. Create a new NetBeans module, standalone.
2. Create a new Window (the class will be used for the unit test generation).
3. Right-click on the TopComponent class in the module, choose Tools > Create JUnit Tests.
4. Choose JUnit 4.
5. Select public method access level and click OK.
6. The unit tests will be marked as having compiler errors, and the Test action will be disabled.
7. When the module is closed and reopened (or the IDE is restarted), the Unit Test Libraries node will appear, allowing the user to fix the dependency problems.
Comment 1 Jesse Glick 2011-11-15 18:41:00 UTC
Reproducible though not generally if you set debugger breakpoints, i.e. a race condition. Seems to be due to a stale cache.
Comment 2 Jesse Glick 2011-11-15 18:44:38 UTC
core-main #7365eceebe61
Comment 3 Quality Engineering 2011-11-17 07:28:22 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/7365eceebe61
User: Jesse Glick <jglick@netbeans.org>
Log: #204773: Generating unit tests for uncompiled NetBeans platform module does not add unit test dependencies.
Comment 4 mienamoo 2011-11-22 11:54:20 UTC
Verified with NetBeans IDE 7.1 RC1 (Build 201111171527).