-
Notifications
You must be signed in to change notification settings - Fork 17
Open
Description
Example of generated test:
@Test(timeout = 4000)
public void test00() throws Throwable
{
Document document0 = XMLUtils.createDOMDocument();
// Undeclared exception!
try {
XMLUtils.extractXML(document0, (-1164), (-1164));
fail("Expecting exception: RuntimeException");
} catch (RuntimeException e) {
//
// Failed to extract XML
//
}
}
It would be nice to assert the exception message in the catch, as in:
} catch (RuntimeException e) {
//
// Failed to extract XML
//
assertEquals("Failed to extract XML", e.getMessage());
}
I noticed that you put the message in comment so you must have considered it would be a problem to add the assertion. Maybe make it optional at least?
Metadata
Metadata
Assignees
Labels
No labels