This project contains all the source code of exercises for "Practical Unit Testing with TestNG and Mockito".
See the book’s website: http://practicalunittesting.com
First you need to generate Eclipse project files. If you have Gradle installed then type
gradle eclipse
In other cases (this will take some time - first Gradle will be downloaded):
./gradlew eclipse
After this you can import this project to Eclipse as any other project (File / Import / General / Existing Project into Workspace). As far as I know (not being an Eclipse guru!) you need to import each project individually.
For your convenience all exercises are kept in separate dirs with names like "chp_X_exercise_name" where X is the chapter number:
-
Chapter 3 "Unit Tests with no Collaborators"
-
Chapter 4 "Test Driven Development"
-
Chapter 5 "Mocks, Stubs, Test Spies"
-
Chapter 6 "Things You Should Know"
-
Chapter 7 "Points of Controversy"
-
Chapter 8 "Getting Feedback"
-
Chapter 9 "Organization of Tests"
-
Chapter 10 "Maintainable Tests"
-
Chapter 11 "Test Quality"