Originally posted by Mohamed Mabrouk: Is this book discussing functional testing? or unit testing? isn't functional testing the same for any language?
We cover both but you will find very little overlap with existing books (e.g. "JUnit in Action") because we made a point of touching on topics that we had never seen discussed before.
For example, on the unit testing side, we show a few techniques to verify if your code is multithread safe or how to use data-driven testing effectively. For the functional parts, enterprise and Java EE testing represent a good portion of the book and you will find mention of frameworks that have never been discussed so far, such as Guice (for dependency injection).
As for your last question, yes, I think the overall techniques for testing do not differ from one language to the next, but every languages has its own popular frameworks and idioms that you need to familiarize yourself with if you want to be effective in your testing, and we hope our book does a good job at covering Java in that area...