This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Testing and the fly likes Testing for Multithreaded apps and components Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Engineering » Testing
Reply Bookmark "Testing for Multithreaded apps and components" Watch "Testing for Multithreaded apps and components" New topic
Author

Testing for Multithreaded apps and components

Paul Anilprem
Enthuware Software Support
Ranch Hand

Joined: Sep 23, 2000
Posts: 2912
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.


Enthuware - Best Mock Exams and Questions for Oracle/Sun Java Certifications
Quality Guaranteed - Pass or Full Refund!
Tomek Kaczanowski
author
Ranch Hand

Joined: Oct 26, 2005
Posts: 39

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!


Tomek Kaczanowski
Book author: Practical Unit Testing with TestNG and Mockito
http://practicalunittesting.com
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Testing for Multithreaded apps and components
 
Similar Threads
problem with method "validRoomNumber
Simulate real servlet container in unit test
Anybody using developing their project and adding UNIT Tests?
To the authors
JUnit for MultiThreaded Applications