Package org.approvej.review
Class Reviewers
java.lang.Object
org.approvej.review.Reviewers
Collection of static methods to create
FileReviewer instances.-
Method Summary
Modifier and TypeMethodDescriptionstatic FileReviewerAFileReviewerthat accepts any given received value, ignoring the previously approved value.static FileReviewernone()AFileReviewerthat does nothing and never triggers a reapproval.static FileReviewerAFileReviewerthat executes the given script.
-
Method Details
-
none
AFileReviewerthat does nothing and never triggers a reapproval.- Returns:
- a
FileReviewerthat does nothing
-
script
AFileReviewerthat executes the given script.- Parameters:
script- the script to be executed with placeholders"{receivedFile}"and"{approvedFile}"- Returns:
- the new
ScriptFileReviewer
-
automatic
AFileReviewerthat 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
FileReviewerthat accepts any received value automatically
-