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 226031 - Cannot navigate from spring config in test resources to test class
Summary: Cannot navigate from spring config in test resources to test class
Status: REOPENED
Alias: None
Product: javaee
Classification: Unclassified
Component: Spring (show other bugs)
Version: 7.3
Hardware: PC Mac OS X
: P3 normal with 1 vote (vote)
Assignee: Martin Fousek
URL:
Keywords:
: 233989 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-02-12 16:51 UTC by scooper4711
Modified: 2016-07-10 20:54 UTC (History)
2 users (show)

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 scooper4711 2013-02-12 16:51:10 UTC
I have spring xml config files under src/test/resources.
I would like to be able to command-click to navigate to the class mentioned in the bean class.
This works fine for xml files located under src/main/resources which reference classes under src/main/java, but not for references to classes under src/test/java.

Holding down the command button (mac) turns the class name into a hyperlink, but clicking on the class name does not open the editor for that class.

If the class in question is a class under src/main/java, then clicking works.
Comment 1 scooper4711 2013-02-12 16:55:30 UTC
To clarify, depending on where the class is located, command-clicking may or may not work:

src/main/resources -> src/main/java  : works
src/test/resources -> src/main/java    : works
src/test/resources -> src/test/java      : doesn't work
Comment 2 scooper4711 2013-02-12 22:33:50 UTC
I noticed additional behavior that I can either create a new bug for, or you can fix under this bug.

Code completion for <bean class="..."> doesn't work for test classes when in a xml file under src/test/resources.

Also, I cannot command navigate to <import resource="classpath:a/test/resource.xml"/>

I suspect that these are all related. If needed, I can open new bugs for this additional behavior.
Comment 3 markiewb 2013-10-08 19:22:47 UTC
*** Bug 233989 has been marked as a duplicate of this bug. ***
Comment 4 markiewb 2013-10-08 19:23:13 UTC
See also more reproduction steps at https://netbeans.org/bugzilla/show_bug.cgi?id=233989
Comment 5 Martin Balin 2016-07-07 08:56:52 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
Comment 6 markiewb 2016-07-10 20:54:05 UTC
Still valid in 8.2 dev 
Product Version: NetBeans IDE Dev (Build 201607100002)