public class MockServerRunner<T extends Client> extends ContextAwareBase implements ServerRunner<T>
ServerRunner with instrumentation for unit testing.context| Constructor and Description |
|---|
MockServerRunner() |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(ClientVisitor visitor) |
int |
getStartCount() |
boolean |
isContextInjected() |
boolean |
isRunning() |
void |
run() |
void |
setContext(Context context) |
void |
setStopException(IOException stopException) |
void |
stop() |
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManagerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContextpublic MockServerRunner()
public void setContext(Context context)
setContext in interface ContextAwaresetContext in class ContextAwareBasepublic void stop() throws IOException
stop in interface ServerRunner<T extends Client>IOExceptionpublic boolean isRunning()
isRunning in interface ServerRunner<T extends Client>public void accept(ClientVisitor visitor)
accept in interface ServerRunner<T extends Client>public int getStartCount()
public boolean isContextInjected()
public void setStopException(IOException stopException)
Copyright © 2005–2018 QOS.ch. All rights reserved.