FirstWorkingReporter

class FirstWorkingReporter implements Reporter

A reporter that will compose other reporters and use the first one that can approve the objects for verification as per com.nikolavp.approval.Reporter.canApprove(java.io.File).

Constructors

FirstWorkingReporter

FirstWorkingReporter(Reporter... others)

Methods

approveNew

public void approveNew(byte[] value, File fileForApproval, File fileForVerification)

canApprove

public boolean canApprove(File fileForApproval)

notTheSame

public void notTheSame(byte[] oldValue, File fileForVerification, byte[] newValue, File fileForApproval)