• Post Reply Bookmark Topic Watch Topic
  • New Topic

Testing if your locking works  RSS feed

 
Michael Fisherman
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello all.

How do you test if your locking works. I am thinking of just creating a unit test to spawn off a few threads that call the updateRecord(recNo, data) (which encapsulates the lock and unlock) function using the same recNo for both threads. Would this suffice ?



Thanks


Michael
 
Mary John
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

there is a post under the name"junit test cases"

it has a pretty good test cases which most people have used and commented on.
I guess that would help. But havent reached there yet myself.

Mary
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!