Annotation to be used in Junit tests and Spock specifications. This annotation is for marking test classes and/or packages that should share the same runtime.
Type Params | Return Type | Name and description |
---|---|---|
null |
java.lang.Class<? extends SharedRuntimeConfigurer> |
value() All tests annotated with this annotation and same value() will use the same shared TestRuntime instance. |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
All tests annotated with this annotation and same value() will use the same shared TestRuntime instance. The SharedRuntimeConfigurer class can also implement TestEventInterceptor. In that case the instance will be registered as an event interceptor.