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 voidVerifies thatUriBuilder#build()creates an emptyURIno other methods are called on it.final voidVerifies that a valid instance can be created from scratch.final voidVerifies thatUriBuilder#build()throws aIllegalArgumentExceptionwhen it would be asked to create a URI with unresolved template variables.final voidVerifies thatUriBuilder#build()throws aUriBuilderExceptionwhen 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 emptyURIno other methods are called on it. The createdURIshould 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 aUriBuilderExceptionwhen 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 aIllegalArgumentExceptionwhen 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
-