Skip to content

Commit

Permalink
Remove redundant function
Browse files Browse the repository at this point in the history
  • Loading branch information
dilanSachi committed Jul 26, 2023
1 parent 6b01566 commit 8a3e4c6
Showing 1 changed file with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,6 @@ private void assertError(DiagnosticResult diagnosticResult, int index, String me
}
}

private void assertWarning(DiagnosticResult diagnosticResult, int index, String message, String code) {
Diagnostic diagnostic = (Diagnostic) diagnosticResult.warnings().toArray()[index];
Assert.assertTrue(diagnostic.diagnosticInfo().messageFormat().contains(message));
Assert.assertEquals(diagnostic.diagnosticInfo().code(), code);
}

private void assertTrue(DiagnosticResult diagnosticResult, int index, String message, String code) {
Diagnostic diagnostic = (Diagnostic) diagnosticResult.errors().toArray()[index];
Assert.assertTrue(diagnostic.diagnosticInfo().messageFormat().contains(message));
Expand Down

0 comments on commit 8a3e4c6

Please sign in to comment.