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
Post a Comment