GeeCON Prague 2014*
The moose likes Testing and the fly likes please suggest how to write test code for this case? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Engineering » Testing
Bookmark "please suggest how to write test code for this case? " Watch "please suggest how to write test code for this case? " New topic
Author

please suggest how to write test code for this case?

Chrix Wu
Ranch Hand

Joined: Nov 15, 2009
Posts: 121

a timing monitor class, below is how to use it:



I need to test if there are two threads using the Monitor concurrently, their results wont affect each other.
How do i make a two thread scenario in a unit test?


** SCJP 5.0 84% **
** SCWCD 1.5 76% **
 
GeeCON Prague 2014
 
subject: please suggest how to write test code for this case?