Please use the Apache issue tracking system for new NetBeans issues ( !!
Bug 195139 - Unable to compile RCP applications with JUnit dependencies
Unable to compile RCP applications with JUnit dependencies
Product: apisupport
Classification: Unclassified
Component: Harness
PC Windows XP
: P1 (vote)
Assigned To: Jesse Glick
Depends on:
  Show dependency treegraph
Reported: 2011-02-07 19:13 UTC by javydreamercsw
Modified: 2011-02-07 19:38 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT


Note You need to log in before you can comment on or make changes to this bug.
Description javydreamercsw 2011-02-07 19:13:45 UTC
[ BUILD # : 7.0 Beta 2 ]
[ JDK VERSION : 1.6.22 ]

Trying to compile an existing suite with dependencies or attemting to add the
dependencies throws an error about being unable to find the junit dependencies.
From the issue below it seems there are some places this needs to be addressed.
Is not clear enough to the user, at least for me, how to fix the issue.

Users upgrading to Beta 2 on their applications will encounter this issue as
long as they have unit testing on their application, which I assume most of
them do.

This seems related to issue 195123.
Comment 1 Jesse Glick 2011-02-07 19:38:07 UTC
JUnit was removed from the IDE and Platform. Running tests requires the org.netbeans.libs.junit4 wrapper module to be present (normally in the platform cluster).

You can install JUnit in your IDE (e.g. by resolving references on a broken j2seproject) so that o.n.l.junit4 is present in your platform cluster, assuming you are compiling against the default platform. If you are using some other platform, you can install org-netbeans-libs-junit4.nbm from an older version of NB, say using the <autoupdate> task.

core-main #a6536dfe3b4b also makes it possible to run basic unit tests just by making sure JUnit 4.8.2 is downloaded to your local Maven repo, though this may not work for functional tests using NbModuleSuite. This trick will not suffice e.g. for the in-IDE classpath, so this is mainly useful for CI jobs using a fixed netbeans.dest.dir.

Refinements to the OOBE of JUnit-based testing are likely before 7.0 FCS, time permitting.

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo