Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagejava
titleAsserts and thrreads
linenumberstrue
// Recursive helper method - always called with a lock on this.
private int find(Object key, Object[] arr, int start, int len) 
{
	assert Thread.holdsLock(this); // lock-status assertion 
  	...
} 
Info
titleConclusion

Al in all, I really do feel that you would be better of writing unit tests using something like JUnit and NUnit, and writing Acceptance level tests using something like fitnesse.