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? -

keyboard - C++ GetAsyncKeyState alternative -

android - java.net.UnknownHostException(Unable to resolve host “URL”: No address associated with hostname) -