ExpectedExceptionRefactoring
Prefer assertThrows to ExpectedException

Severity
SUGGESTION
Tags
Refactoring
Has Fix?
REQUIRES_HUMAN_ATTENTION

The problem

Suppression

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