My favorites
▼
|
Sign in
jconch
Java Concurrency Handling: Safe Concurrency Tools
Project Home
Downloads
Wiki
Issues
Source
Checkout
Browse
Changes
Source path:
svn
/
trunk
/
eg
/
eg
/
jconch
/
testing
/
AssertExample.groovy
r139
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import jconch.testing.Assert
import java.util.concurrent.Callable
Assert.assertSynchronized(
{
def target = new Vector() //fail if ArrayList
return [
{ (0..1000).each { target.add(new Object()) } } as Callable,
{ (0..1000).each { target.add(new Object()) } } as Callable,
]
} as Callable
)
println "Success"
Show details
Hide details
Change log
r132
by HamletDRC on Jan 19, 2009
Diff
Added Assert example in Groovy
Go to:
/trunk/build.number
...nch/testing/AssertExample.groovy
Project members,
sign in
to write a code review
Older revisions
All revisions of this file
File info
Size: 349 bytes, 16 lines
View raw file
Powered by
Google Project Hosting