Class Resource


  • public class Resource
    extends Object
    • Method Detail

      • getValidator

        public jakarta.validation.Validator getValidator()
      • getObjectMapper

        public com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()
      • getClientConfigurator

        public Consumer<org.glassfish.jersey.client.ClientConfig> getClientConfigurator()
      • target

        public jakarta.ws.rs.client.WebTarget target​(String path)
        Creates a web target to be sent to the resource under testing.
        Parameters:
        path - relative path (from tested application base URI) this web target should point to.
        Returns:
        the created JAX-RS web target.
      • client

        public jakarta.ws.rs.client.Client client()
        Returns the pre-configured Client for this test. For sending requests prefer target(String)
        Returns:
        the JerseyTest configured Client
      • getJerseyTest

        public org.glassfish.jersey.test.JerseyTest getJerseyTest()
        Returns the underlying JerseyTest. For sending requests prefer target(String).
        Returns:
        the underlying JerseyTest