Class UriBuilderIT

java.lang.Object
ee.jakarta.tck.ws.rs.uribuilder.UriBuilderIT

@Timeout(value=1L, unit=HOURS) public final class UriBuilderIT extends Object
Compliance Test for URI Builder API of Jakarta REST API
Since:
3.1
Author:
Markus KARG (markus@headcrashing.eu)
  • Constructor Details

    • UriBuilderIT

      public UriBuilderIT()
  • Method Details

    • shouldBuildValidInstanceFromScratch

      @Test public final void shouldBuildValidInstanceFromScratch() throws InterruptedException, ExecutionException
      Verifies that a valid instance can be created from scratch.
      Throws:
      ExecutionException - if the instance didn't boot correctly
      InterruptedException - if the test took much longer than usually expected
    • emptyUriBuilderBuildsEmptyUri

      @Test public final void emptyUriBuilderBuildsEmptyUri() throws InterruptedException, ExecutionException
      Verifies that UriBuilder#build() creates an empty URI no other methods are called on it. The created URI should be equivalent to URI.create("").
      Throws:
      ExecutionException - if the instance didn't boot correctly
      InterruptedException - if the test took much longer than usually expected
    • shouldThrowUriBuilderExceptionOnSchemeOnlyUri

      @Test public final void shouldThrowUriBuilderExceptionOnSchemeOnlyUri() throws InterruptedException, ExecutionException
      Verifies that UriBuilder#build() throws a UriBuilderException when it would be asked to create an invalid URI.
      Throws:
      ExecutionException - if the instance didn't boot correctly
      InterruptedException - if the test took much longer than usually expected
    • shouldThrowIllegalArgumentExceptionForUnresolvedTemplates

      @Test public final void shouldThrowIllegalArgumentExceptionForUnresolvedTemplates() throws InterruptedException, ExecutionException
      Verifies that UriBuilder#build() throws a IllegalArgumentException when it would be asked to create a URI with unresolved template variables.
      Throws:
      ExecutionException - if the instance didn't boot correctly
      InterruptedException - if the test took much longer than usually expected