Enum Class TestScriptDisplay.Severity

java.lang.Object
java.lang.Enum<TestScriptDisplay.Severity>
org.fhirfrog.frog.testscriptrender.TestScriptDisplay.Severity
All Implemented Interfaces:
Serializable, Comparable<TestScriptDisplay.Severity>, Constable
Enclosing class:
TestScriptDisplay

public static enum TestScriptDisplay.Severity extends Enum<TestScriptDisplay.Severity>
Whether/how a failing TestScriptDisplay.StepDisplay gates the phase's pass/fail outcome.

Mirrors the semantics PhaseExecutor.isWarningOnly in fhir-frog-library actually implements: WARNING_ONLY assertions are recorded but never fail the run; everything else does.

  • Enum Constant Details

    • NONE

      public static final TestScriptDisplay.Severity NONE
      Not an assert (an operation step), or an assert with no bearing on pass/fail.
    • MUST_PASS

      public static final TestScriptDisplay.Severity MUST_PASS
      A normal assert: a failure fails the phase.
    • WARNING_ONLY

      public static final TestScriptDisplay.Severity WARNING_ONLY
      assert.warningOnly = true: a failure is reported but does not fail the phase.
  • Method Details

    • values

      public static TestScriptDisplay.Severity[] 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 TestScriptDisplay.Severity 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