thebugslayer on 06/03/07
Last Edited at 06/03/07 04:49pm
class ConcurrentErrorTest extends GroovyTestCase { void testError(){ shouldFail(ConcurrentModificationException){ def list = [1,2,3] list.eachWithIndex{e, i-> list.remove(i) } } }}
Report this snippet Tweet
Comment:
You need to login to post a comment.