TestExceptionRefactoring
Prefer assertThrows to @Test(expected=...)

Severity
SUGGESTION
Tags
Refactoring
Has Fix?
REQUIRES_HUMAN_ATTENTION

The problem

Suppression

Suppress false positives by adding the suppression annotation @SuppressWarnings("TestExceptionRefactoring") to the enclosing element.