public abstract class AbstractContextTester extends Object implements IContextTester
IContextTester
that provides convenience methods for retrieving
values from the context map.CTX_COMPARISON
Constructor and Description |
---|
AbstractContextTester() |
Modifier and Type | Method and Description |
---|---|
protected Comparison |
getComparison(Map<Object,Object> context)
Returns the comparison stored under the
IContextTester.CTX_COMPARISON key. |
protected static <T> T |
getValue(Map<Object,Object> context,
Object key,
Class<T> expectedClass)
Returns the value of the context map stored under the given key, if it is an instance of the given
class.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
apply
protected Comparison getComparison(Map<Object,Object> context)
IContextTester.CTX_COMPARISON
key.context
- context mapprotected static <T> T getValue(Map<Object,Object> context, Object key, Class<T> expectedClass)
T
- expected type of the value stored under the keycontext
- context mapkey
- the key for the context mapexpectedClass
- expected class for the value stored under the key
Copyright (c) 2006, 2015 Obeo and others. All rights reserved.