I am a new user to easyb and was wondering if anybody can provide some guidance on how to verify the attributes of a thrown exception.
I can check that the exception is thrown using ensureThrows but how do I check that the message of the exception i.e. ex.getMessage() contains some specific text?
My then clause looks as follows:
then "Exception should be thrown with details of invalid subject",
{
ensureThrows(Exception)
{
factory.create(aCalculatedGroup)
}
}
Thanks,
David
--
You received this message because you are subscribed to the Google Groups "Easyb Users" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/easyb-users/-/TDOcDwtwBY4J.
To post to this group, send email to
easyb...@googlegroups.com.
To unsubscribe from this group, send email to
easyb-users...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/easyb-users?hl=en.