Enum Class ResetPolicy

java.lang.Object
java.lang.Enum<ResetPolicy>
org.fhirfrog.frog.server.registry.ResetPolicy
All Implemented Interfaces:
Serializable, Comparable<ResetPolicy>, Constable

public enum ResetPolicy extends Enum<ResetPolicy>
How a server backend is reset between test runs.
  • Enum Constant Details

    • NONE

      public static final ResetPolicy NONE
      Read-only or stateless server — no reset needed or possible.
    • EPHEMERAL_CONTAINER

      public static final ResetPolicy EPHEMERAL_CONTAINER
      Frog-managed: docker compose down/up cycle restores from pg_dump.
    • ENDPOINT

      public static final ResetPolicy ENDPOINT
      External server exposes a reset endpoint (POST before each run).
    • EXPUNGE

      public static final ResetPolicy EXPUNGE
      HAPI-specific: call $expunge to clear all data.
  • Method Details

    • values

      public static ResetPolicy[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static ResetPolicy valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null