Skip to content

Commit d64c9ce

Browse files
java-team-github-botError Prone Team
authored andcommitted
Promote error prone check TestExceptionChecker to ERROR within Google (blaze and tricorder).
See http://goto.google.com/testexceptionchecker_lsc_doc PiperOrigin-RevId: 748435813
1 parent c0ce475 commit d64c9ce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/src/main/java/com/google/errorprone/bugpatterns/TestExceptionChecker.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
package com.google.errorprone.bugpatterns;
1818

1919
import static com.google.common.collect.Iterables.getLast;
20-
import static com.google.errorprone.BugPattern.SeverityLevel.WARNING;
20+
import static com.google.errorprone.BugPattern.SeverityLevel.ERROR;
2121
import static com.google.errorprone.fixes.SuggestedFixes.qualifyType;
2222
import static com.google.errorprone.matchers.Description.NO_MATCH;
2323
import static com.google.errorprone.util.ASTHelpers.getStartPosition;
@@ -51,7 +51,7 @@
5151
summary =
5252
"Using @Test(expected=...) is discouraged, since the test will pass if *any* statement in"
5353
+ " the test method throws the expected exception",
54-
severity = WARNING)
54+
severity = ERROR)
5555
public class TestExceptionChecker extends BugChecker implements MethodTreeMatcher {
5656

5757
@Override

0 commit comments

Comments
 (0)