public class MockAppender extends AppenderBase<ILoggingEvent>
AppenderBase
with instrumentation for unit testing.name, started
context
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, toString
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContext
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, setContext
public MockAppender()
protected void append(ILoggingEvent eventObject)
append
in class AppenderBase<ILoggingEvent>
public ILoggingEvent awaitAppend(long delay) throws InterruptedException
InterruptedException
public ILoggingEvent getLastEvent()
Copyright © 2005–2018 QOS.ch. All rights reserved.