public class TestErrorManager extends BasicErrorManager
| Constructor and Description |
|---|
TestErrorManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
expectErrors(String... expectedErrors) |
void |
expectWarnings(String... expectedWarnings) |
boolean |
hasEncounteredAllErrors() |
boolean |
hasEncounteredAllWarnings() |
void |
println(CheckLevel level,
JSError error)
Print a message with a trailing new line.
|
protected void |
printSummary()
Print the summary of the compilation - number of errors and warnings.
|
void |
report(CheckLevel level,
JSError error)
Reports an error.
|
generateReport, getErrorCount, getErrors, getTypedPercent, getWarningCount, getWarnings, setTypedPercentpublic void expectErrors(String... expectedErrors)
public void expectWarnings(String... expectedWarnings)
public void report(CheckLevel level, JSError error)
ErrorManagerErrorManager.generateReport() at the discretion of the implementation.report in interface ErrorHandlerreport in interface ErrorManagerreport in class BasicErrorManagerlevel - the reporting levelerror - the error to reportpublic void println(CheckLevel level, JSError error)
BasicErrorManagerBasicErrorManager.generateReport() method when generating messages.println in class BasicErrorManagerprotected void printSummary()
BasicErrorManagerprintSummary in class BasicErrorManagerpublic boolean hasEncounteredAllErrors()
public boolean hasEncounteredAllWarnings()
Copyright © 2009-2015 Google. All Rights Reserved.