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.AbstractMethodInterceptorLeverages 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 Classes Modifier and Type Class Description static classGuiceyInterceptor.AbstractEnvironmentSupportBase environment support implementation.static interfaceGuiceyInterceptor.EnvironmentSupportExternal junit rules adapter.
-
Constructor Summary
Constructors Constructor Description GuiceyInterceptor(org.spockframework.runtime.model.SpecInfo spec, GuiceyInterceptor.EnvironmentSupport support, java.util.List<ru.vyarus.dropwizard.guice.hook.GuiceyConfigurationHook> hooks)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinterceptCleanupSpecMethod(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 Detail
-
GuiceyInterceptor
public GuiceyInterceptor(org.spockframework.runtime.model.SpecInfo spec, GuiceyInterceptor.EnvironmentSupport support, java.util.List<ru.vyarus.dropwizard.guice.hook.GuiceyConfigurationHook> hooks)
-
-
Method Detail
-
interceptSharedInitializerMethod
public void interceptSharedInitializerMethod(org.spockframework.runtime.extension.IMethodInvocation invocation) throws java.lang.Throwable- Overrides:
interceptSharedInitializerMethodin classorg.spockframework.runtime.extension.AbstractMethodInterceptor- Throws:
java.lang.Throwable
-
interceptInitializerMethod
public void interceptInitializerMethod(org.spockframework.runtime.extension.IMethodInvocation invocation) throws java.lang.Throwable- Overrides:
interceptInitializerMethodin classorg.spockframework.runtime.extension.AbstractMethodInterceptor- Throws:
java.lang.Throwable
-
interceptCleanupSpecMethod
public void interceptCleanupSpecMethod(org.spockframework.runtime.extension.IMethodInvocation invocation) throws java.lang.Throwable- Overrides:
interceptCleanupSpecMethodin classorg.spockframework.runtime.extension.AbstractMethodInterceptor- Throws:
java.lang.Throwable
-
-