Correct name of exception. #1555

Fixes `ExceptionNameDoesntEndWithException` inspection violation in test code.

Description:
>Reports exception classes whose names don't end with 'Exception'.
This commit is contained in:
Michal Kordas 2015-08-16 23:08:23 +02:00
parent 5630e4399b
commit eeb20e6c8c
1 changed files with 2 additions and 2 deletions

View File

@ -202,7 +202,7 @@ public class XMLLoggerTest {
new LocalizedMessage(1, 1,
"messages.properties", null, null, null, this.getClass(), null);
final AuditEvent ev = new AuditEvent(this, "Test.java", message);
logger.addException(ev, new TestThrowable());
logger.addException(ev, new TestException());
logger.auditFinished(null);
final String[] expectedLines = {
"<exception>",
@ -253,7 +253,7 @@ public class XMLLoggerTest {
assertEquals("last line.", "</checkstyle>", lines[lines.length - 1]);
}
private static class TestThrowable extends Exception {
private static class TestException extends Exception {
private static final long serialVersionUID = 1L;