This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Testing for Multithreaded apps and components

 
Paul Anilprem
Enthuware Software Support
Ranch Hand
Posts: 3711
10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

thank you,
Paul.
 
Tomek Kaczanowski
author
Ranch Hand
Posts: 40
IntelliJ IDE Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Paul,

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!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic