Class URLBuilder
java.lang.Object
ee.jakarta.tck.concurrent.framework.URLBuilder
Utility method to ensure all classes use a common URL manipulation tool.
baseURL will be provided by Arquillian using the
ArquillianResource
annotation to get the URL of the servlet.-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbuild()
This will build the URL tacking on the additional queries, paths, and testName.static URL
extendPath
(URL baseURL, List<String> paths) static URL
extendQuery
(URL baseURL, List<String> queries) static URLBuilder
get()
Get the builderwithBaseURL
(URL baseURLIn) Base URL obtained fromArquillianResource
Additional paths to tack onto the end of the URL.withQueries
(String... queriesIn) Additional queries to tack onto the end of the URL.withTestName
(String testName) Additional testName query to tack onto the end of the URL.
-
Field Details
-
TEST_METHOD
- See Also:
-
-
Method Details
-
get
Get the builder -
withBaseURL
Base URL obtained fromArquillianResource
-
withQueries
Additional queries to tack onto the end of the URL. Example: baseURL = http://localhost:80/servlet/ query = count=5 result = http://localhost:80/servlet/?count=5 -
withPaths
Additional paths to tack onto the end of the URL. Example: baseURL = http://localhost:80/servlet/ path = app, inventory result = http://localhost:80/servlet/app/inventory -
withTestName
Additional testName query to tack onto the end of the URL. Example: baseURL = http://localhost:80/servlet/ testName = transactionTest result = http://localhost:80/servlet/?testMethod=transactionTest -
build
This will build the URL tacking on the additional queries, paths, and testName. -
extendQuery
-
extendPath
-