org.grails.testing.spock.WebCleanupSpecInterceptor.groovy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of grails-web-testing-support Show documentation
Show all versions of grails-web-testing-support Show documentation
Support for writing concise expressive tests for Grails artifacts
The newest version!
package org.grails.testing.spock
import groovy.transform.CompileStatic
import org.grails.web.converters.configuration.ConvertersConfigurationHolder
import org.spockframework.runtime.extension.IMethodInterceptor
import org.spockframework.runtime.extension.IMethodInvocation
@CompileStatic
class WebCleanupSpecInterceptor implements IMethodInterceptor {
@Override
void intercept(IMethodInvocation invocation) throws Throwable {
ConvertersConfigurationHolder.clear()
invocation.proceed()
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy