fail("Exception should have been thrown.");
} catch (final IllegalArgumentException ex) {
LOG.debug("IllegalArgumentException was thrown as expected", ex);
- assertEquals("Supplied value does not match the regular expression ^(?:[A-Z]+)$.", ex.getMessage());
+ assertEquals("Value 'abcd' does not match regular expression '[A-Z]+'", ex.getMessage());
}
}
}