I need some good pdf books on learning Junit Unit testing with Eclipse.?
I am new in unit testing. I need some useful pdf books on learning Junit framework unit testing with Eclipse.
plz reply me as soon as possible
Re: Junit learning
I know this question is old. Just add my 2 cents for anyone reading this in the future.
JUnit is pretty simple. The new versions of Eclipses will have JUnit plugin already included. So getting JUnit tests setup will be pretty straight forward. Most of what you need to know is the @Test and @BeforeTest tags, and the use of Assert.xxxx function for verification.
I would recommend reading tutorials on Mockito. JUnit is most powerful when coupled with a mocking framework, as it'll save you a lot of time that's normally wasted in writing test stubs. You'll learn both JUnit and Mockito at the same time.