Annotation Type AwaitRoute
When this annotation is present alongside
RouteURL, Arquillian Cube will wait
until the route becomes availabile. Availability is defined as returning a known good HTTP status code.-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionPath that should be appended to the root route URL for checking route availability.intHow many times in a row the route must respond successfully to be considered available.int[]Set of HTTP status codes that are considered good.intHow long to wait for the route URL to become available. -
Field Summary
Fields
-
Field Details
-
DEFAULT_PATH_FOR_ROUTE_AVAILABILITY_CHECK
- See Also:
-
-
Element Details
-
path
String pathPath that should be appended to the root route URL for checking route availability. Useful when there's nothing exposed directly at the root route URL, only on some paths below. Defaults toRouteURL.path(). IfRouteURL.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 behttp://route.host/api/info, but the URL used for checking route availability will behttp://route.host/api/health.- Default:
- "__DEFAULT PATH FOR ROUTE AVAILABILITY CHECK__"
-
statusCode
int[] statusCodeSet of HTTP status codes that are considered good. Defaults to a single value,200.- Default:
- {200}
-
timeout
int timeoutHow long to wait for the route URL to become available. Defaults to 5 minutes.- Default:
- 5
-
timeoutUnit
TimeUnit timeoutUnit- Default:
- MINUTES
-
repetitions
int repetitionsHow many times in a row the route must respond successfully to be considered available. Defaults to 1. If theawaitRouteRepetitionsconfiguration property is set to> 1, this annotation parameter is ignored.- Default:
- 1
-