![JAR search and dependency download from the Maven repository](/logo.png)
templates.testing.Interceptor.groovy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of web Show documentation
Show all versions of web Show documentation
A Grace profile for Web applications
@artifact.package@
import grails.testing.web.interceptor.InterceptorUnitTest
import spock.lang.Specification
class @artifact.name@InterceptorSpec extends Specification implements InterceptorUnitTest<@artifact.name@Interceptor> {
def setup() {
}
def cleanup() {
}
void "Test @artifact.propertyName@ interceptor matching"() {
when:"A request matches the interceptor"
withRequest(controller:"@artifact.propertyName@")
then:"The interceptor does match"
interceptor.doesMatch()
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy