Class URLBuilder

java.lang.Object
ee.jakarta.tck.concurrent.framework.URLBuilder

public final class URLBuilder extends Object
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 Details

  • Method Details

    • get

      public static URLBuilder get()
      Get the builder
    • withBaseURL

      public URLBuilder withBaseURL(URL baseURLIn)
      Base URL obtained from ArquillianResource
    • withQueries

      public URLBuilder withQueries(String... queriesIn)
      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

      public URLBuilder withPaths(String... pathsIn)
      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

      public URLBuilder withTestName(String testName)
      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

      public URL build()
      This will build the URL tacking on the additional queries, paths, and testName.
    • extendQuery

      public static URL extendQuery(URL baseURL, List<String> queries)
    • extendPath

      public static URL extendPath(URL baseURL, List<String> paths)