Hi Tomek,
Welcome to JavaRanch! I was wondering if your book explains how to approach testing for multithreaded components. What are the issues involved, how to write and run test cases for such components etc. If you could throw some light on this aspect, that would be great.
a good question, as more and more of our code should run concurrently.
In the book I provide an example of use of @Test with invocationCount and threadPoolSize (see documentation), but obviously that is not everything to be discussed regarding multithreaded apps testing.
I do not have much experience in this field myself, but awaitility seems to be a useful tool!
Tomek Kaczanowski
Book author: Practical Unit Testing with TestNG and Mockito
http://practicalunittesting.com
When I was younger I felt like a man trapped inside a woman’s body. Then I was born. My twin is a tiny ad:
a bit of art, as a gift, that will fit in a stocking