Package ee.jakarta.tck.ws.rs.uribuilder
Class UriBuilderIT
java.lang.Object
ee.jakarta.tck.ws.rs.uribuilder.UriBuilderIT
Compliance Test for URI Builder API of Jakarta REST API
- Since:
- 3.1
- Author:
- Markus KARG (markus@headcrashing.eu)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal void
Verifies thatUriBuilder#build()
creates an emptyURI
no other methods are called on it.final void
Verifies that a valid instance can be created from scratch.final void
Verifies thatUriBuilder#build()
throws aIllegalArgumentException
when it would be asked to create a URI with unresolved template variables.final void
Verifies thatUriBuilder#build()
throws aUriBuilderException
when it would be asked to create an invalid URI.
-
Constructor Details
-
UriBuilderIT
public UriBuilderIT()
-
-
Method Details
-
shouldBuildValidInstanceFromScratch
@Test public final void shouldBuildValidInstanceFromScratch() throws InterruptedException, ExecutionExceptionVerifies that a valid instance can be created from scratch.- Throws:
ExecutionException
- if the instance didn't boot correctlyInterruptedException
- if the test took much longer than usually expected
-
emptyUriBuilderBuildsEmptyUri
@Test public final void emptyUriBuilderBuildsEmptyUri() throws InterruptedException, ExecutionExceptionVerifies thatUriBuilder#build()
creates an emptyURI
no other methods are called on it. The createdURI
should be equivalent toURI.create("")
.- Throws:
ExecutionException
- if the instance didn't boot correctlyInterruptedException
- if the test took much longer than usually expected
-
shouldThrowUriBuilderExceptionOnSchemeOnlyUri
@Test public final void shouldThrowUriBuilderExceptionOnSchemeOnlyUri() throws InterruptedException, ExecutionExceptionVerifies thatUriBuilder#build()
throws aUriBuilderException
when it would be asked to create an invalid URI.- Throws:
ExecutionException
- if the instance didn't boot correctlyInterruptedException
- if the test took much longer than usually expected
-
shouldThrowIllegalArgumentExceptionForUnresolvedTemplates
@Test public final void shouldThrowIllegalArgumentExceptionForUnresolvedTemplates() throws InterruptedException, ExecutionExceptionVerifies thatUriBuilder#build()
throws aIllegalArgumentException
when it would be asked to create a URI with unresolved template variables.- Throws:
ExecutionException
- if the instance didn't boot correctlyInterruptedException
- if the test took much longer than usually expected
-