{{theTime}}

Search This Blog

Total Pageviews

How to test whether the current thread holds the lock on a specified object?

A static method called holdsLock has been added to the Thread class and can be added to the assertion like:

assert Thread.holdsLock(this); 

No comments:

Cucumber Eclipse sample program

Cucumber Eclipse SetupCreate Eclipse Maven Project Open pom.xml Goto Dependencies Add GroupId: info.cukes, Artifact Id: cucumber-java, Versi...