Class ExecutionContext
java.lang.Object
org.antublue.test.engine.internal.execution.ExecutionContext
Class to implement ExecutionContext
-
Constructor Summary
ConstructorsConstructorDescriptionExecutionContext(ExecutionContext executionContext) Copy constructorExecutionContext(org.junit.platform.engine.ExecutionRequest executionRequest) Constructor -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsKey(Object key) Method to return if the execution context contains a value for a key<T> TMethod to get an Object from the execution context<T> TMethod to get an Object from the execution contextorg.junit.platform.engine.ExecutionRequestMethod to get the execution request<T> TMethod to store an Object in the execution context<T> TMethod to remove a value for a key<T> TMethod to remove a value for a key
-
Constructor Details
-
ExecutionContext
public ExecutionContext(org.junit.platform.engine.ExecutionRequest executionRequest) Constructor- Parameters:
executionRequest- executionContext
-
ExecutionContext
Copy constructor- Parameters:
executionContext- executionContext
-
-
Method Details
-
getExecutionRequest
public org.junit.platform.engine.ExecutionRequest getExecutionRequest()Method to get the execution request- Returns:
- the execution request
-
put
Method to store an Object in the execution context- Parameters:
key- keyvalue- value- Returns:
- the existing value, or null if there is no existing value
-
get
Method to get an Object from the execution context- Type Parameters:
T- the return type- Parameters:
key- key- Returns:
- an Object
-
get
Method to get an Object from the execution context- Type Parameters:
T- the return type- Parameters:
key- keyclazz- clazz- Returns:
- the value
-
containsKey
Method to return if the execution context contains a value for a key- Parameters:
key- key- Returns:
- true if a value exists, else false
-
remove
Method to remove a value for a key- Type Parameters:
T- the return type- Parameters:
key- key- Returns:
- the value, or null if a value for the key doesn't exist
-
remove
Method to remove a value for a key- Type Parameters:
T- the return type- Parameters:
key- keyclazz- clazz- Returns:
- an Object, or null if a value for the key doesn't exist
-