@groovy.transform.CompileStatic class UrlMappingSetupSpecInterceptor extends java.lang.Object implements IMethodInterceptor
Wires up controllers and URL mappings for UrlMappingsUnitTest-based specs.
Acts as both a setupSpec interceptor (mocking declared controllers once per spec
class) and a setup interceptor (re-registering this spec's URL mappings before
every feature method). The per-feature pass guarantees that a spec running after another
spec in the same JVM sees only its own URL mappings, regardless of what the previous spec
did to the artefact registry or the grailsUrlMappingsHolder bean.
| Constructor and description |
|---|
UrlMappingSetupSpecInterceptor() |
| Type Params | Return Type | Name and description |
|---|---|---|
|
void |
intercept(IMethodInvocation invocation) |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#equals(java.lang.Object), java.lang.Object#getClass(), java.lang.Object#hashCode(), java.lang.Object#notify(), java.lang.Object#notifyAll(), java.lang.Object#toString(), java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int) |