Make the file path for the replacement of a robot comment explicit

Up to now, the file path was implicitly limited to the file on which
the robot comment was placed. This restriction will be relaxed in the
future. In order to not break systems which use the fix suggestions at
that (later) point in time, the mandatory field 'path' is introduced
with this change.

Change-Id: I73875b97bf844dee927720765046161bbd888c02
This commit is contained in:
Alice Kober-Sotzek
2016-12-19 14:53:40 +01:00
parent 81f334a77f
commit 110f60f082
7 changed files with 106 additions and 33 deletions

View File

@@ -49,6 +49,10 @@ public class FixReplacementInfoSubject
super(failureStrategy, fixReplacementInfo);
}
public StringSubject path() {
return Truth.assertThat(actual().path).named("path");
}
public RangeSubject range() {
return RangeSubject.assertThat(actual().range).named("range");
}