Class RestAssuredStateManager

java.lang.Object
io.quarkus.test.common.RestAssuredStateManager

public class RestAssuredStateManager extends Object
Utility class that sets the rest assured port to the default test port and meaningful timeouts.

This class works whether RestAssured is on the classpath or not - if it is not, invoking the methods of the class are essentially NO-OPs

TODO: do we actually want this here, or should it be in a different module?

  • Method Summary

    Modifier and Type
    Method
    Description
    static void
     
    (package private) static void
    Deprecated, for removal: This API element is subject to removal in a future version.
    most probably, you want to call clearState().
    static void
    setTestUri(URI baseUri)
     
    static void
    setTestUri(URI baseUri, String additionalPath)
     
    static void
    setURL(boolean useSecureConnection)
    Deprecated, for removal: This API element is subject to removal in a future version.
    static void
    setURL(boolean useSecureConnection, Integer port)
    Deprecated, for removal: This API element is subject to removal in a future version.
    static void
    setURL(boolean useSecureConnection, Integer port, String additionalPath)
    Deprecated, for removal: This API element is subject to removal in a future version.
    static void
    setURL(boolean useSecureConnection, String additionalPath)
    Deprecated, for removal: This API element is subject to removal in a future version.

    Methods inherited from class java.lang.Object

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

    • setURL

      @Deprecated(forRemoval=true, since="3.36") public static void setURL(boolean useSecureConnection)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setURL

      @Deprecated(forRemoval=true, since="3.36") public static void setURL(boolean useSecureConnection, String additionalPath)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setURL

      @Deprecated(forRemoval=true, since="3.36") public static void setURL(boolean useSecureConnection, Integer port)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setURL

      @Deprecated(forRemoval=true, since="3.36") public static void setURL(boolean useSecureConnection, Integer port, String additionalPath)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setTestUri

      public static void setTestUri(URI baseUri)
    • setTestUri

      public static void setTestUri(URI baseUri, String additionalPath)
    • clearState

      public static void clearState()
    • clearURL

      @Deprecated(forRemoval=true, since="3.31") static void clearURL()
      Deprecated, for removal: This API element is subject to removal in a future version.
      most probably, you want to call clearState(). If it's not the case, please let us know so that we can reconsider the deprecation. Note: when removing, please move the code to clearState().