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 224157 - "Java Hint" template: Javadoc must be updated - no manual addition of dependencies necessary?
Summary: "Java Hint" template: Javadoc must be updated - no manual addition of depende...
Status: RESOLVED FIXED
Alias: None
Product: apisupport
Classification: Unclassified
Component: Templates (show other bugs)
Version: 7.3
Hardware: PC Windows 7
: P4 normal (vote)
Assignee: Martin Kozeny
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-12-21 22:28 UTC by markiewb
Modified: 2013-05-17 09:53 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Shows the testexecution out of the box (170.17 KB, image/png)
2012-12-21 22:29 UTC, markiewb
Details

Note You need to log in before you can comment on or make changes to this bug.
Description markiewb 2012-12-21 22:28:07 UTC
[ BUILD # : 201212170919 ]
[ JDK VERSION : 1.7.0_09 ]

* create a fixable "java hint" (non-maven) using the "new file..." wizard -> 
hint and its test will be created
* open and run the test 

ACTUAL: 
* test runs out of the box without any manual addition of dependencies or 
altering property files
* javadoc of test describes manual steps to make the test runnable - see 
screenshot

EXPECTED:
* test runs out of the box 
* javadoc is updated (obsolete steps are deleted)
-----
Product Version: NetBeans IDE Dev (Build 201212170919)
Java: 1.7.0_10; Java HotSpot(TM) 64-Bit Server VM 23.6-b04
Runtime: Java(TM) SE Runtime Environment 1.7.0_10-b18
System: Windows 7 version 6.1 running on amd64; Cp1252; de_DE (nb)
Comment 1 markiewb 2012-12-21 22:29:00 UTC
Created attachment 129636 [details]
Shows the testexecution out of the box
Comment 2 markiewb 2013-05-07 22:04:30 UTC
@Martin: Any status here?
Comment 3 Martin Kozeny 2013-05-09 07:18:34 UTC
Actually you are right. There is not necessary to add unit test dependencies so javadoc should be updated. There is only problem when you create such hint in module of NetBeans Platform Application, because it contains only platform cluster (in contrast with standalone module or module in suite, where all clusters are included) and when adding java hint to module of NetBeans Platform Application, there is a problem with adding dependencies from clusters not included in this application. I am going to fix both problems.
Comment 4 Martin Kozeny 2013-05-09 07:38:25 UTC
In project.properties property "requires.nb.javac=true" should be kept in order to use IDE compiler.
Comment 5 Martin Kozeny 2013-05-15 12:27:55 UTC
When adding hint to module of NetBeans Platform Application, platform does not include necessary modules and clusters, for that action. I developed routine, which adds those modules and clusters to target platform, so application can be build without any errors. I left in test hint java class 'add test dependency on Java Hints Test API (and JUnit 4)' TODO text, because I am unable to add it by this routine. For suite or standalone modules I've omitted this TODO text in test hint java class, because as you mentioned before, there is unnecessary.

https://hg.netbeans.org/core-main/rev/5a4a4886e656
Comment 6 Martin Kozeny 2013-05-15 14:56:17 UTC
https://hg.netbeans.org/core-main/rev/80d863f76d21
Comment 7 Quality Engineering 2013-05-17 09:53:02 UTC
Integrated into 'main-golden', will be available in build *201305170640* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/5a4a4886e656
User: Martin Kozeny <mkozeny@netbeans.org>
Log: #224157: When adding hint to module of NetBeans Platform Application, platform does not include necessary modules and clusters, for that action. I developed routine, which adds those modules and clusters to target platform, so application can be build without any errors. I left in test hint java class 'add test dependency on Java Hints Test API (and JUnit 4)' TODO text, because I am unable to add it by this routine. For suite or standalone modules I've omitted this TODO text in test hint java class, because as you mentioned before, there is unnecessary.