@Documented
@Inherited
@Retention(value=RUNTIME)
@Target(value=TYPE)
public @interface VarnishTest
| Modifier and Type | Optional Element and Description |
|---|---|
VarnishTest.HostAndPort |
address
Set a port to
0 to trigger listening on a random port. |
VarnishTest.HostAndPort |
backend
Set a port to
0 to use a local application port (local.server.port) as a backend port. |
java.lang.String |
configFile
Path to a VCL configuration file.
|
VarnishTest.HostAndPort |
managementAddress |
java.lang.String |
name |
boolean |
randomName
Use a random name as a varnish instance.
|
java.lang.String |
storage |
java.lang.String |
varnishdCommand |
public abstract VarnishTest.HostAndPort address
0 to trigger listening on a random port.
You can use @Value("${local.varnish.port}") to inject port value into field in test class.
Default is localhost:10080.
public abstract VarnishTest.HostAndPort backend
0 to use a local application port (local.server.port) as a backend port.
Only one of "backend" or "config file" can be specified.
public abstract java.lang.String configFile
@local.port@ string, a copy of VCL configuration file
will be made and @local.port@ value will be replaced by an application port (local.server.port) in this copy.
Only one of "backend" or "config file" can be specified.
public abstract VarnishTest.HostAndPort managementAddress