@Qualifier @Documented @Retention(value=RUNTIME) @Target(value={FIELD,PARAMETER}) public @interface AwaitRoute
RouteURL, Arquillian Cube will wait
until the route becomes availabile. Availability is defined as returning a known good HTTP status code.| Modifier and Type | Fields and Description |
|---|---|
static String |
DEFAULT_PATH_FOR_ROUTE_AVAILABILITY_CHECK |
| Modifier and Type | Optional Element and Description |
|---|---|
String |
path
Path that should be appended to the root route URL for checking route availability.
|
int |
repetitions
How many times in a row the route must respond successfully to be considered available.
|
int[] |
statusCode
Set of HTTP status codes that are considered good.
|
int |
timeout
How long to wait for the route URL to become available.
|
TimeUnit |
timeoutUnit |
public static final String DEFAULT_PATH_FOR_ROUTE_AVAILABILITY_CHECK
public abstract String path
RouteURL.path().
If RouteURL.path() is set to a non-default value and this is also set to a non-default value,
then these two values are not combined. For example:
@RouteURL(value = "my-route", path = "/api/info") @AwaitRoute(path = "/api/health")) private URL myUrl;In this case, the injected route URL will be
http://route.host/api/info, but the URL
used for checking route availability will be http://route.host/api/health.public abstract int[] statusCode
200.public abstract int timeout
public abstract TimeUnit timeoutUnit
Copyright © 2018 JBoss by Red Hat. All rights reserved.