Skip to end of metadata
Go to start of metadata

Starting with version 1.2, FEST-Assert supports custom error messages, replacing the default ones.

For example, the following assertion:

will fail with the following default message:

expected:<'[Yoda]'> but was:<'[Luke]'>

By using the method overridingErrorMessage(String) we can provide our own error message. From the previous example:

will fail with the message:

'Luke' is not 'Yoda'
Labels: