public class MockAppender extends AppenderBase<ILoggingEvent>
AppenderBase with instrumentation for unit testing.name, startedcontext| Constructor and Description |
|---|
MockAppender() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
append(ILoggingEvent eventObject) |
ILoggingEvent |
awaitAppend(long delay) |
ILoggingEvent |
getLastEvent() |
addFilter, clearAllFilters, doAppend, getCopyOfAttachedFiltersList, getFilterChainDecision, getName, isStarted, setName, start, stop, toStringaddError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContextclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, setContextpublic MockAppender()
protected void append(ILoggingEvent eventObject)
append in class AppenderBase<ILoggingEvent>public ILoggingEvent awaitAppend(long delay) throws InterruptedException
InterruptedExceptionpublic ILoggingEvent getLastEvent()
Copyright © 2005–2018 QOS.ch. All rights reserved.