public class MockContextAware extends ContextAwareBase implements ContextAware
ContextAware with instrumentation for unit testing.context| Constructor and Description |
|---|
MockContextAware() |
| Modifier and Type | Method and Description |
|---|---|
void |
addError(String msg) |
void |
addInfo(String msg) |
void |
addWarn(String msg) |
boolean |
hasErrorMatching(String regex) |
boolean |
hasInfoMatching(String regex) |
boolean |
hasWarnMatching(String regex) |
addError, addInfo, addStatus, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContextclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddError, addInfo, addStatus, addWarn, getContext, setContextpublic MockContextAware()
public void addInfo(String msg)
addInfo in interface ContextAwareaddInfo in class ContextAwareBasepublic void addWarn(String msg)
addWarn in interface ContextAwareaddWarn in class ContextAwareBasepublic void addError(String msg)
addError in interface ContextAwareaddError in class ContextAwareBasepublic boolean hasInfoMatching(String regex)
public boolean hasWarnMatching(String regex)
public boolean hasErrorMatching(String regex)
Copyright © 2005–2018 QOS.ch. All rights reserved.