Class TypeValidation

java.lang.Object
org.openrewrite.test.TypeValidation

public class TypeValidation extends Object
Controls the test framework's validation of invariants which are expected to hold true in an LST both before and after the recipe run. Originally this applied only to validating the well-formedness of type metadata in Java LSTs (hence the name TypeValidation), but has since expanded to include concepts relevant to other types of sources. "InvariantValidation" would be a more accurate name, but "TypeValidation" is kept for backwards compatibility.
  • Constructor Details

    • TypeValidation

      public TypeValidation()
  • Method Details

    • all

      public static TypeValidation all()
      Enable all invariant validation checks.
    • none

      public static TypeValidation none()
      Skip all invariant validation checks.