@@ -47,7 +47,7 @@ public static AutoCloseable registerErrorGenerator(Function2<String, String, Err
47
47
}
48
48
public VerifyResult approve ()
49
49
{
50
- tracker .assertUnique (approved . getAbsolutePath ( ));
50
+ tracker .assertUnique (FileUtils . getResolvedPath ( approved ));
51
51
ApprovedFileLog .log (approved );
52
52
FailedFileLog .touch ();
53
53
received = writer .writeReceivedFile (received );
@@ -58,13 +58,14 @@ public void cleanUpAfterSuccess(ApprovalFailureReporter reporter)
58
58
received .delete ();
59
59
if (reporter instanceof ApprovalReporterWithCleanUp )
60
60
{
61
- ((ApprovalReporterWithCleanUp ) reporter ).cleanUp (received .getAbsolutePath (), approved .getAbsolutePath ());
61
+ ((ApprovalReporterWithCleanUp ) reporter ).cleanUp (FileUtils .getResolvedPath (received ),
62
+ FileUtils .getResolvedPath (approved ));
62
63
}
63
64
}
64
65
public VerifyResult reportFailure (ApprovalFailureReporter reporter )
65
66
{
66
67
FailedFileLog .log (received , approved );
67
- reporter .report (received . getAbsolutePath ( ), approved . getAbsolutePath ( ));
68
+ reporter .report (FileUtils . getResolvedPath ( received ), FileUtils . getResolvedPath ( approved ));
68
69
if (reporter instanceof ReporterWithApprovalPower )
69
70
{
70
71
ReporterWithApprovalPower reporterWithApprovalPower = (ReporterWithApprovalPower ) reporter ;
@@ -74,7 +75,7 @@ public VerifyResult reportFailure(ApprovalFailureReporter reporter)
74
75
}
75
76
public void fail ()
76
77
{
77
- throw errorGenerator .call (received . getAbsolutePath ( ), approved . getAbsolutePath ( ));
78
+ throw errorGenerator .call (FileUtils . getResolvedPath ( received ), FileUtils . getResolvedPath ( approved ));
78
79
}
79
80
private static Error createError (String received , String approved )
80
81
{
0 commit comments