@groovy.transform.CompileStatic @org.springframework.boot.autoconfigure.AutoConfiguration @org.springframework.boot.autoconfigure.condition.ConditionalOnWebApplication(type: ConditionalOnWebApplication.Type.SERVLET) @org.springframework.boot.autoconfigure.condition.ConditionalOnProperty(prefix: grails.testing.latency, name: enabled, havingValue: true) @org.springframework.boot.context.properties.EnableConfigurationProperties(value: LatencyProperties) class LatencyAutoConfiguration extends java.lang.Object
Auto-configuration that registers the LatencyFilter when
grails.testing.latency.enabled is true.
The filter is registered with the highest precedence so that the configured delay applies to the entire request processing pipeline, mirroring what a slow network or server would look like to an HTTP client or browser driving the application under test.
| Constructor and description |
|---|
LatencyAutoConfiguration() |
| Type Params | Return Type | Name and description |
|---|---|---|
|
FilterRegistrationBean<LatencyFilter> |
latencyFilter(LatencyProperties latencyProperties) |
| 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) |