Class Reviewers

java.lang.Object
org.approvej.review.Reviewers

@NullMarked public class Reviewers extends Object
Collection of static methods to create FileReviewer instances.
  • Method Details

    • none

      public static FileReviewer none()
      A FileReviewer that does nothing and never triggers a reapproval.
      Returns:
      a FileReviewer that does nothing
    • script

      public static FileReviewer script(String script)
      A FileReviewer that executes the given script.
      Parameters:
      script - the script to be executed with placeholders "{receivedFile}" and "{approvedFile}"
      Returns:
      the new ScriptFileReviewer
    • automatic

      public static FileReviewer automatic()
      A FileReviewer that accepts any given received value, ignoring the previously approved value.

      This may be a good idea when you have a lot of tests with changed results, and you simply want to update them all at once. You probably want to review the changed approved files before committing them to version control!

      Returns:
      a FileReviewer that accepts any received value automatically