Package ubic.gemma.core.util.test
Annotation Type NetworkAvailable
Test annotation to indicate that a test requires network access or access to a specific resource.
- Author:
- poirigui
- See Also:
-
Element Details
-
url
String[] urlAssume that one (or multiple) resources identified by URLs are available.The assumption comprise the following tests:
- that the hostname can be resolved (thus no
UnknownHostExceptionis raised - that the status code is in the 100, 200 or 300 family (for HTTP URLs)
- that the connection can be established in 1 second or less, or a value specified by
timeoutMillis()
- Default:
{}
- that the hostname can be resolved (thus no
-
timeoutMillis
int timeoutMillisTimeout in milliseconds for the connection attempt if a resource URL is specified viaurl().The timeout applies to each URL individually.
- Default:
1000
-