All Downloads are FREE. Search and download functionalities are using the official Maven repository.

templates.testing.Interceptor.groovy Maven / Gradle / Ivy

There is a newer version: 2023.3.0-M1
Show newest version
@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