File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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% **
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: please suggest how to write test code for this case?
 
Similar Threads
Mark-up Interfaces
Kathy, Dan, Shishio, Valentine, get on the subject: Final Word on GC
Non static initialization
Is this small piece of code thread-safe?
static members initialization and static object references