Grails assert - verify that assertion failed in unit test -


grails newbie question:

when have assert [condition] in grails controller, how verify assertion fails unit test?

i'm thinking shouldfail(exception) { .. } i'm not sure exception catch.

thanks

you can use assertionerror.

shouldfail(assertionerror) {   assert 'one' == 'two' } 

Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -