Class ConfigurationRule<T>
java.lang.Object
org.junit.rules.ExternalResource
de.hybris.platform.integrationservices.util.ConfigurationRule<T>
- All Implemented Interfaces:
net.sf.cglib.proxy.Callback,net.sf.cglib.proxy.MethodInterceptor,org.junit.rules.TestRule
public class ConfigurationRule<T>
extends org.junit.rules.ExternalResource
implements net.sf.cglib.proxy.MethodInterceptor
A test rule that automatically restores configuration changes done by the tests.
Type of the configuration service to be managed by this rule.
-
Method Summary
Methods inherited from class org.junit.rules.ExternalResource
apply, before
-
Method Details
-
createFor
-
configuration
-
intercept
public Object intercept(Object o, Method method, Object[] args, net.sf.cglib.proxy.MethodProxy proxy) throws InvocationTargetException, IllegalAccessException - Specified by:
interceptin interfacenet.sf.cglib.proxy.MethodInterceptor- Throws:
InvocationTargetExceptionIllegalAccessException
-
after
protected void after()- Overrides:
afterin classorg.junit.rules.ExternalResource
-