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.
I have isntalled from NB QBuild site, build 20050823 of NB4.2. I have created a new NB module using the wizard, and was able to specify NB specific modules as the dependent modules. Everything seems to work, I can install and run my module. I have created a junit testcase that tests what my main code in my module. But when I try to run this testcase, I see that the lookups (of certain NB classes) return empty. My main code which works otherwise using these lookups, fail when the lookups return enpty. Is there something I have to do additionally on the build.xml file. So far I haven't touched the generated build artifact files.
Probably apisupport config issue. Reassigning. If you think it's junit problem, please clarify and reassign back.
For unittest run is not preconfigured Lookup. You must create our own lookup with registered services. And specify the classnameof lookup in "org.openide.util.Lookup" property. If you want to run your test in IDE where is alredy configure Lookup, use xtest.netbeans.org harness.
Specifically, if you do not explicitly set your own lookup (system property "org.openide.util.Lookup"), the default that you will get should examine just META-INF/services/* of JARs (or folders) on your unit test's classpath. You can use test.unit.run.cp.extra to append to this classpath as needed (see harness/README).
v/c