2013-05-14 182 views

回答

3

您可以使用AssertionError

shouldFail(AssertionError) { 
    assert 'one' == 'two' 
}