I have written a few JUnit tests with @Test annotation. If my test method throws a checked exception and if I want to assert the message along with the exceptio
@Test
@Test (expectedExceptions = ValidationException.class, expectedExceptionsMessageRegExp = "This is not allowed") public void testInvalidValidation() throws Exception{ //test code }