org.spockframework.runtime
Class RunContext

java.lang.Object
  extended by org.spockframework.runtime.RunContext

public class RunContext
extends java.lang.Object


Method Summary
 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>
T
withNewContext(DelegatingScript configurationScript, java.util.List<java.lang.Class<?>> extensionClasses, boolean inheritParentExtensions, IThrowableFunction<RunContext,T,U> command)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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()


Copyright © 2013. All rights reserved