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, getStatusManager
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext
public MockServerRunner()
public void setContext(Context context)
setContext
in interface ContextAware
setContext
in class ContextAwareBase
public void stop() throws IOException
stop
in interface ServerRunner<T extends Client>
IOException
public 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.