Link to home
Start Free TrialLog in
Avatar of Molko
Molko

asked on

Synchronized method - testing junit

I have a method which was not threadsafe, i have now Synchronized  it.

Just wondering if i can use Junit it prove that it now working syncronsouly ? I was thinking of instantiating a few threads and then invoking the method.....but not sure this is the correct way.

Just need a Junit test to prove that the method is now Synchronized

thanks
ASKER CERTIFIED SOLUTION
Avatar of sciuriware
sciuriware

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of sciuriware
sciuriware

:)