TestLoggingContainerpublic interface TestLogging
| Modifier and Type | Method | Description | 
|---|---|---|
| void | events(Object... events) | Sets the events to be logged. | 
| int | getDisplayGranularity() | Returns the display granularity of the events to be logged. | 
| Set<TestLogEvent> | getEvents() | Returns the events to be logged. | 
| TestExceptionFormat | getExceptionFormat() | Returns the format to be used for logging test exceptions. | 
| int | getMaxGranularity() | Returns the maximum granularity of the events to be logged. | 
| int | getMinGranularity() | Returns the minimum granularity of the events to be logged. | 
| boolean | getShowCauses() | Tells whether causes of exceptions that occur during test execution will be logged. | 
| boolean | getShowExceptions() | Tells whether exceptions that occur during test execution will be logged. | 
| boolean | getShowStackTraces() | Tells whether stack traces of exceptions that occur during test execution will be logged. | 
| boolean | getShowStandardStreams() | Tells whether output on standard out and standard error will be logged. | 
| Set<TestStackTraceFilter> | getStackTraceFilters() | Returns the set of filters to be used for sanitizing test stack traces. | 
| void | setDisplayGranularity(int granularity) | Sets the display granularity of the events to be logged. | 
| void | setEvents(Iterable<?> events) | Sets the events to be logged. | 
| void | setEvents(Set<TestLogEvent> events) | Sets the events to be logged. | 
| void | setExceptionFormat(Object exceptionFormat) | Sets the format to be used for logging test exceptions. | 
| void | setExceptionFormat(TestExceptionFormat exceptionFormat) | Sets the format to be used for logging test exceptions. | 
| void | setMaxGranularity(int granularity) | Returns the maximum granularity of the events to be logged. | 
| void | setMinGranularity(int granularity) | Sets the minimum granularity of the events to be logged. | 
| void | setShowCauses(boolean flag) | Sets whether causes of exceptions that occur during test execution will be logged. | 
| void | setShowExceptions(boolean flag) | Sets whether exceptions that occur during test execution will be logged. | 
| void | setShowStackTraces(boolean flag) | Sets whether stack traces of exceptions that occur during test execution will be logged. | 
| TestLogging | setShowStandardStreams(boolean flag) | Sets whether output on standard out and standard error will be logged. | 
| void | setStackTraceFilters(Iterable<?> stackTraces) | Sets the set of filters to be used for sanitizing test stack traces. | 
| void | setStackTraceFilters(Set<TestStackTraceFilter> stackTraces) | Sets the set of filters to be used for sanitizing test stack traces. | 
| void | stackTraceFilters(Object... stackTraces) | Convenience method for  setStackTraceFilters(java.lang.Iterable). | 
Set<TestLogEvent> getEvents()
void setEvents(Set<TestLogEvent> events)
events - the events to be loggedvoid setEvents(Iterable<?> events)
events - the events to be loggedvoid events(Object... events)
TestLogEvent.FAILED) or Strings (e.g. "failed").events - the events to be loggedint getMinGranularity()
-1 denotes the highest granularity and corresponds to an atomic test.
void setMinGranularity(int granularity)
-1 denotes the highest granularity and corresponds to an atomic test.
granularity - the minimum granularity of the events to be loggedint getMaxGranularity()
-1 denotes the highest granularity and corresponds to an atomic test.
void setMaxGranularity(int granularity)
-1 denotes the highest granularity and corresponds to an atomic test.
granularity - the maximum granularity of the events to be loggedint getDisplayGranularity()
-1 denotes the highest granularity and corresponds to an atomic test.
void setDisplayGranularity(int granularity)
-1 denotes the highest granularity and corresponds to an atomic test.
granularity - the display granularity of the events to be loggedboolean getShowExceptions()
void setShowExceptions(boolean flag)
flag - whether exceptions that occur during test execution will be loggedboolean getShowCauses()
showExceptions is true.void setShowCauses(boolean flag)
showExceptions is true.flag - whether causes of exceptions that occur during test execution will be loggedboolean getShowStackTraces()
void setShowStackTraces(boolean flag)
flag - whether stack traces of exceptions that occur during test execution will be loggedTestExceptionFormat getExceptionFormat()
showStackTraces is true.void setExceptionFormat(TestExceptionFormat exceptionFormat)
showStackTraces is true.exceptionFormat - the format to be used for logging test exceptionsvoid setExceptionFormat(Object exceptionFormat)
showStackTraces is true.exceptionFormat - the format to be used for logging test exceptionsSet<TestStackTraceFilter> getStackTraceFilters()
void setStackTraceFilters(Set<TestStackTraceFilter> stackTraces)
stackTraces - the set of filters to be used for sanitizing test stack tracesvoid setStackTraceFilters(Iterable<?> stackTraces)
stackTraces - the set of filters to be used for sanitizing test stack tracesvoid stackTraceFilters(Object... stackTraces)
setStackTraceFilters(java.lang.Iterable). Accepts both enum values and Strings.boolean getShowStandardStreams()
TestLogEvent.STANDARD_OUT and TestLogEvent.STANDARD_ERROR are
 set.TestLogging setShowStandardStreams(boolean flag)
TestLogEvent.STANDARD_OUT and TestLogEvent.STANDARD_ERROR.