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 253753 - Improve text describing "Hamcrest binaries missing"
Summary: Improve text describing "Hamcrest binaries missing"
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: JUnit (show other bugs)
Version: 8.2
Hardware: PC Linux
: P3 normal with 2 votes (vote)
Assignee: Theofanis Oikonomou
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-24 17:10 UTC by mclaborn
Modified: 2017-11-06 22:44 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: hamcrest


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description mclaborn 2015-07-24 17:10:04 UTC
NetBeans 8.1 comes with a new JUnit, which no longer bundles Hamcrest, which is required for JUnit to work. So you have to add Hamcrest library to the project.  The text that currently describes this situation in the "Resolve Project Problems" dialog is "JUnit 4.12 does not bundle hamcrest matchers library. Click the resolve button to automatically add hamcrest as your project's test dependency."

This text should be updated to more fully describe the situation.
Comment 1 Lou Dasaro 2015-08-31 04:54:28 UTC
I just got this and found it completely understandable. What more would you want it to say?
Comment 2 mclaborn 2015-08-31 15:32:15 UTC
I would word it this way:

---

Netbeans 8.1 comes with a new version of JUnit (4.12) which requires the "hamcrest" matchers library.  [This library was bundled with previous versions of JUnit.] or [This is a new library dependency for this version of JUnit.] Click the resolve button to automatically add hamcrest as your project's test dependency. Or, if this project does not use JUnit, you may manually remove the JUnit library from Project Properties -> Libraries -> Compile Tests.


---
The reason I think this is necessary: I am a very experienced developer, yet I had to guess at what "hamcrest" was and what I needed to do about it.  I guessed correctly, but less experienced developers might not not understand at all.
Comment 3 Lou Dasaro 2015-09-28 05:06:19 UTC
I ran into this again while running Synergy tests. Completely forgot about it, and it took time to figure it out. Bumping back up to P3 because of lost time.
Comment 4 jbfaden 2016-02-29 23:29:20 UTC
I agree.  This was one of several reasons I went back to NB 8.0.1.
Comment 5 scriptoid 2016-08-31 13:25:40 UTC
Yeap, very hard to understand message. The suggestion made by mclaborn makes more sense to me than the one in Netbeans.
Comment 6 mikato 2017-11-06 22:44:51 UTC
I would like to add that I just installed 8.2 after previously using 7.0.1 and was greeted with "Hamcrest binaries missing (in MyProject)"... and "JUnit 4.12 does not bundle hamcrest matchers library. Click the resolve button to automatically add hamcrest as your project's test dependency."

As far as I know, I never used JUnit and I have no idea what hamcrest is (until now). I don't want to add something to my project.