public class MockServerRunner<T extends ch.qos.logback.core.net.server.Client>
extends ch.qos.logback.core.spi.ContextAwareBase
implements ch.qos.logback.core.net.server.ServerRunner<T>
ServerRunner with instrumentation for unit testing.| Constructor and Description |
|---|
MockServerRunner() |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(ch.qos.logback.core.net.server.ClientVisitor visitor) |
int |
getStartCount() |
boolean |
isContextInjected() |
boolean |
isRunning() |
void |
run() |
void |
setContext(ch.qos.logback.core.Context context) |
void |
setStopException(IOException stopException) |
void |
stop() |
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManagerpublic void setContext(ch.qos.logback.core.Context context)
setContext in interface ch.qos.logback.core.spi.ContextAwaresetContext in class ch.qos.logback.core.spi.ContextAwareBasepublic void stop()
throws IOException
stop in interface ch.qos.logback.core.net.server.ServerRunner<T extends ch.qos.logback.core.net.server.Client>IOExceptionpublic boolean isRunning()
isRunning in interface ch.qos.logback.core.net.server.ServerRunner<T extends ch.qos.logback.core.net.server.Client>public void accept(ch.qos.logback.core.net.server.ClientVisitor visitor)
accept in interface ch.qos.logback.core.net.server.ServerRunner<T extends ch.qos.logback.core.net.server.Client>public int getStartCount()
public boolean isContextInjected()
public void setStopException(IOException stopException)
Copyright © 2005–2022 QOS.ch. All rights reserved.