Support filtering diagnostics in tests

This commit is contained in:
Andrey Breslav
2013-08-30 20:58:32 +04:00
parent f89841a4ef
commit db2b19c50f
7 changed files with 140 additions and 21 deletions
@@ -345,7 +345,7 @@ public class CheckerTestUtil {
@NotNull
@Override
public Severity getSeverity() {
throw new IllegalStateException();
return Severity.ERROR;
}
@NotNull
@@ -372,7 +372,7 @@ public class CheckerTestUtil {
}
}
private static class SyntaxErrorDiagnosticFactory extends AbstractDiagnosticFactory {
public static class SyntaxErrorDiagnosticFactory extends AbstractDiagnosticFactory {
public static final SyntaxErrorDiagnosticFactory INSTANCE = new SyntaxErrorDiagnosticFactory();
private SyntaxErrorDiagnosticFactory() {}