private DiagnosticInFile hadDiagnosticContainingMatch( String diagnosticMatchDescription, Pattern expectedPattern, Diagnostic.Kind kind, Diagnostic.Kind... more) { String expectedDiagnostic = String.format("%s %s", kindSingular(kind), diagnosticMatchDescription); return new DiagnosticInFile( expectedDiagnostic, findMatchingDiagnostics(expectedDiagnostic, expectedPattern, kind, more)); }
private DiagnosticInFile hadDiagnosticContainingMatch( String diagnosticMatchDescription, Pattern expectedPattern, Diagnostic.Kind kind, Diagnostic.Kind... more) { String expectedDiagnostic = String.format("%s %s", kindSingular(kind), diagnosticMatchDescription); return new DiagnosticInFile( expectedDiagnostic, findMatchingDiagnostics(expectedDiagnostic, expectedPattern, kind, more)); }