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, setTypedPercent
public void expectErrors(String... expectedErrors)
public void expectWarnings(String... expectedWarnings)
public void report(CheckLevel level, JSError error)
ErrorManager
ErrorManager.generateReport()
at the discretion of the implementation.report
in interface ErrorHandler
report
in interface ErrorManager
report
in class BasicErrorManager
level
- the reporting levelerror
- the error to reportpublic void println(CheckLevel level, JSError error)
BasicErrorManager
BasicErrorManager.generateReport()
method when generating messages.println
in class BasicErrorManager
protected void printSummary()
BasicErrorManager
printSummary
in class BasicErrorManager
public boolean hasEncounteredAllErrors()
public boolean hasEncounteredAllWarnings()
Copyright © 2009-2015 Google. All Rights Reserved.