Class GuiceyInterceptor
java.lang.Object
org.spockframework.runtime.extension.AbstractMethodInterceptor
ru.vyarus.dropwizard.guice.test.spock.ext.GuiceyInterceptor
- All Implemented Interfaces:
org.spockframework.runtime.extension.IMethodInterceptor
public class GuiceyInterceptor
extends org.spockframework.runtime.extension.AbstractMethodInterceptor
Leverages rules logic to start/stop application and injects Guice-provided objects into specifications.
Implementation is very similar to original spock-guice module.
- Since:
- 02.01.2015
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBase environment support implementation.static interfaceExternal junit rules adapter. -
Constructor Summary
ConstructorsConstructorDescriptionGuiceyInterceptor(org.spockframework.runtime.model.SpecInfo spec, GuiceyInterceptor.EnvironmentSupport support, List<ru.vyarus.dropwizard.guice.hook.GuiceyConfigurationHook> hooks) -
Method Summary
Modifier and TypeMethodDescriptionvoidinterceptCleanupSpecMethod(org.spockframework.runtime.extension.IMethodInvocation invocation) voidinterceptInitializerMethod(org.spockframework.runtime.extension.IMethodInvocation invocation) voidinterceptSharedInitializerMethod(org.spockframework.runtime.extension.IMethodInvocation invocation) Methods inherited from class org.spockframework.runtime.extension.AbstractMethodInterceptor
intercept, interceptCleanupMethod, interceptDataProcessorMethod, interceptDataProviderMethod, interceptFeatureExecution, interceptFeatureMethod, interceptIterationExecution, interceptSetupMethod, interceptSetupSpecMethod, interceptSpecExecution
-
Constructor Details
-
GuiceyInterceptor
public GuiceyInterceptor(org.spockframework.runtime.model.SpecInfo spec, GuiceyInterceptor.EnvironmentSupport support, List<ru.vyarus.dropwizard.guice.hook.GuiceyConfigurationHook> hooks)
-
-
Method Details
-
interceptInitializerMethod
public void interceptInitializerMethod(org.spockframework.runtime.extension.IMethodInvocation invocation) throws Throwable - Overrides:
interceptInitializerMethodin classorg.spockframework.runtime.extension.AbstractMethodInterceptor- Throws:
Throwable
-
interceptCleanupSpecMethod
public void interceptCleanupSpecMethod(org.spockframework.runtime.extension.IMethodInvocation invocation) throws Throwable - Overrides:
interceptCleanupSpecMethodin classorg.spockframework.runtime.extension.AbstractMethodInterceptor- Throws:
Throwable