Package org.spockframework.runtime
Class RunContext
- java.lang.Object
-
- org.spockframework.runtime.RunContext
-
public class RunContext extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ExtensionRunner
createExtensionRunner(SpecInfo spec)
ParameterizedSpecRunner
createSpecRunner(SpecInfo spec, org.junit.runner.notification.RunNotifier notifier)
static RunContext
get()
<T> T
getConfiguration(java.lang.Class<T> type)
static <T,U extends java.lang.Throwable>
TwithNewContext(DelegatingScript configurationScript, java.util.List<java.lang.Class<?>> extensionClasses, boolean inheritParentExtensions, IThrowableFunction<RunContext,T,U> command)
-
-
-
Method Detail
-
createExtensionRunner
public ExtensionRunner createExtensionRunner(SpecInfo spec)
-
createSpecRunner
public ParameterizedSpecRunner createSpecRunner(SpecInfo spec, org.junit.runner.notification.RunNotifier notifier)
-
getConfiguration
public <T> T getConfiguration(java.lang.Class<T> type)
-
withNewContext
public static <T,U extends java.lang.Throwable> T withNewContext(DelegatingScript configurationScript, java.util.List<java.lang.Class<?>> extensionClasses, boolean inheritParentExtensions, IThrowableFunction<RunContext,T,U> command) throws U extends java.lang.Throwable
- Throws:
U extends java.lang.Throwable
-
get
public static RunContext get()
-
-