Search in sources :

Example 1 with Patch

use of cucumber.deps.difflib.Patch in project cucumber-jvm by cucumber.

the class TableDiffer method calculateDiffs.

public void calculateDiffs() throws TableDiffException {
    Patch patch = DiffUtils.diff(from.diffableRows(), to.diffableRows());
    List<Delta> deltas = patch.getDeltas();
    if (!deltas.isEmpty()) {
        Map<Integer, Delta> deltasByLine = createDeltasByLine(deltas);
        throw new TableDiffException(from, to, createTableDiff(deltasByLine));
    }
}
Also used : Delta(cucumber.deps.difflib.Delta) Patch(cucumber.deps.difflib.Patch)

Aggregations

Delta (cucumber.deps.difflib.Delta)1 Patch (cucumber.deps.difflib.Patch)1