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 226762 - Generating tests for nested interfaces
Summary: Generating tests for nested interfaces
Status: RESOLVED WONTFIX
Alias: None
Product: java
Classification: Unclassified
Component: JUnit (show other bugs)
Version: 7.2.1
Hardware: PC Windows 7
: P4 normal (vote)
Assignee: Theofanis Oikonomou
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-27 09:37 UTC by xanhou
Modified: 2016-07-07 07:16 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 xanhou 2013-02-27 09:37:49 UTC
When you generate tests for an interface, an new class is generated implementing the interface. While I do not use this feature myself, I did notice that this class only implements the methods described by the interface you are testing, NOT any methods described by the interfaces that the tested interface extends. The result is that uncompilable code is generated.
While a simple alt-enter -> 'implement all' resolves the issue, it is still an issue.
It is a minor issue in a barely ever used feature with a very simple work-around, so I gave it priory 4.

I did not test what happens with nested abstract classes, so it may be worth to also check those while fixing this bug (if it is worth fixing).
Comment 1 Martin Balin 2016-07-07 07:16:24 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss