Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the recommended way to integrate Hamcrest into Eclipse's JUnit?

Is there a recommended way to integrate Hamcrest into the JUnit configuration in Eclipse? Currently Eclipse's JUnit comes with Hamcrest-core only. I want to edit that configuration to include Hamcrest-all. How should I do this?

like image 659
Hosam Aly Avatar asked Jul 06 '09 12:07

Hosam Aly


1 Answers

I had problems using hamcrest-all and junit-dep - you then need jMock an easymock and ant.tasks

If you just want more matchers, add hamcrest-library (along with the junit and hamcrest core you get from Eclipse)

Shouldn't this question have the "hamcrest" tag?

like image 75
Andrew McKinlay Avatar answered Nov 14 '22 01:11

Andrew McKinlay