• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

junit and multithreaded tests

 
viswanadh kasinadhuni
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are there any problems with JUnit and Multithreaded Tests. If so, can anyone
please provide some examples?
 
Ilja Preuss
author
Sheriff
Posts: 14112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"I don't know any useful way to test multi-threading to find anything but
the most trivial bugs. My experience is that we can write a billion tests
and run them forever, and the system deadlocks 40 milliseconds after
deployment." - Ron Jeffries, agile-testing mailinglist
 
Jeff Langr
author
Ranch Hand
Posts: 799
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
... which is not to say you can't try. Here's one way:
http://today.java.net/pub/a/today/2003/08/06/multithreadedTests.html
First, however, learn how to build multithreaded applications that are designed to behave well. Doug Lea's Concurrency in Java is regarded as the bible, but it's very difficult to read.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic