java.lang.Object
io.micronaut.oraclecloud.function.http.test.FnHttpTest

public final class FnHttpTest extends Object
Testing support for functions.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static <I> io.micronaut.http.HttpResponse<String>
    invoke(io.micronaut.http.HttpMethod method, String uri)
    Invoke a function via HTTP.
    static <I> io.micronaut.http.HttpResponse<String>
    invoke(io.micronaut.http.HttpMethod method, String uri, List<Class<?>> sharedClasses)
    Invoke a function via HTTP.
    static <I> io.micronaut.http.HttpResponse<String>
    invoke(io.micronaut.http.HttpRequest<I> request)
    Invoke a function via HTTP.
    static <I, O> io.micronaut.http.HttpResponse<O>
    invoke(io.micronaut.http.HttpRequest<I> request, io.micronaut.core.type.Argument<O> resultType)
    Invoke a function via HTTP.
    static <I, O> io.micronaut.http.HttpResponse<O>
    invoke(io.micronaut.http.HttpRequest<I> request, io.micronaut.core.type.Argument<O> resultType, List<Class<?>> sharedClasses)
    Invoke a function via HTTP.
    static <I, O> io.micronaut.http.HttpResponse<O>
    invoke(io.micronaut.http.HttpRequest<I> request, Class<O> resultType)
    Invoke a function via HTTP.
    static <I, O> io.micronaut.http.HttpResponse<O>
    invoke(io.micronaut.http.HttpRequest<I> request, Class<O> resultType, List<Class<?>> sharedClasses)
    Invoke a function via HTTP.
    static <I> io.micronaut.http.HttpResponse<String>
    invoke(io.micronaut.http.HttpRequest<I> request, List<Class<?>> sharedClasses)
    Invoke a function via HTTP.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • FnHttpTest

      public FnHttpTest()
  • Method Details

    • invoke

      public static <I> io.micronaut.http.HttpResponse<String> invoke(io.micronaut.http.HttpRequest<I> request)
      Invoke a function via HTTP.
      Type Parameters:
      I - The body type
      Parameters:
      request - The request
      Returns:
      The result
    • invoke

      public static <I> io.micronaut.http.HttpResponse<String> invoke(io.micronaut.http.HttpRequest<I> request, List<Class<?>> sharedClasses)
      Invoke a function via HTTP.
      Type Parameters:
      I - The body type
      Parameters:
      request - The request
      sharedClasses - optional classes to share between the test classloader and the FN classloader
      Returns:
      The result
    • invoke

      public static <I> io.micronaut.http.HttpResponse<String> invoke(io.micronaut.http.HttpMethod method, String uri)
      Invoke a function via HTTP.
      Type Parameters:
      I - The body type
      Parameters:
      method - The http method
      uri - The uri
      Returns:
      The result
    • invoke

      public static <I> io.micronaut.http.HttpResponse<String> invoke(io.micronaut.http.HttpMethod method, String uri, List<Class<?>> sharedClasses)
      Invoke a function via HTTP.
      Type Parameters:
      I - The body type
      Parameters:
      method - The http method
      uri - The uri
      sharedClasses - optional classes to share between the test classloader and the FN classloader
      Returns:
      The result
    • invoke

      public static <I, O> io.micronaut.http.HttpResponse<O> invoke(io.micronaut.http.HttpRequest<I> request, Class<O> resultType)
      Invoke a function via HTTP.
      Type Parameters:
      I - The input type
      O - The output type
      Parameters:
      request - The request
      resultType - The result type
      Returns:
      The response
    • invoke

      public static <I, O> io.micronaut.http.HttpResponse<O> invoke(io.micronaut.http.HttpRequest<I> request, Class<O> resultType, List<Class<?>> sharedClasses)
      Invoke a function via HTTP.
      Type Parameters:
      I - The input type
      O - The output type
      Parameters:
      request - The request
      resultType - The result type
      sharedClasses - optional classes to share between the test classloader and the FN classloader
      Returns:
      The response
    • invoke

      public static <I, O> io.micronaut.http.HttpResponse<O> invoke(io.micronaut.http.HttpRequest<I> request, io.micronaut.core.type.Argument<O> resultType)
      Invoke a function via HTTP.
      Type Parameters:
      I - The input type
      O - The output type
      Parameters:
      request - The request
      resultType - The result type
      Returns:
      The response
    • invoke

      public static <I, O> io.micronaut.http.HttpResponse<O> invoke(io.micronaut.http.HttpRequest<I> request, io.micronaut.core.type.Argument<O> resultType, List<Class<?>> sharedClasses)
      Invoke a function via HTTP.
      Type Parameters:
      I - The input type
      O - The output type
      Parameters:
      request - The request
      resultType - The result type
      sharedClasses - optional classes to share between the test classloader and the FN classloader
      Returns:
      The response