Class ApplicationUtils
java.lang.Object
org.eclipse.microprofile.opentracing.tck.application.ApplicationUtils
- Author:
- Pavol Loffay
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic RuntimeExceptionCreate an example RuntimeException used by a web service.static StringgetQueryString(Map<String, Object> queryParameters) Convert a map into a query string.static StringgetWebServiceURL(URL baseUri, String service, String relativePath) Create web service URL.static StringURL-encodetext.
-
Field Details
-
TEST_WEB_SERVICES_CONTEXT_ROOT
The context root of JAXRS web services.- See Also:
-
-
Method Details
-
getWebServiceURL
Create web service URL.- Parameters:
baseUri- Base URI.service- Web service pathrelativePath- Web service endpoint- Returns:
- Web service URL
-
getQueryString
Convert a map into a query string.- Parameters:
queryParameters- Map to convert.- Returns:
- Query string.
-
urlEncode
URL-encodetext.- Parameters:
text- Text to encode.- Returns:
- Encoded text.
-
createExampleRuntimeException
Create an example RuntimeException used by a web service.- Returns:
- New RuntimeException.
-