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, setContext
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addError, addInfo, addStatus, addWarn, getContext, setContext
public MockContextAware()
public void addInfo(String msg)
addInfo
in interface ContextAware
addInfo
in class ContextAwareBase
public void addWarn(String msg)
addWarn
in interface ContextAware
addWarn
in class ContextAwareBase
public void addError(String msg)
addError
in interface ContextAware
addError
in class ContextAwareBase
public boolean hasInfoMatching(String regex)
public boolean hasWarnMatching(String regex)
public boolean hasErrorMatching(String regex)
Copyright © 2005–2018 QOS.ch. All rights reserved.