Package | Description |
---|---|
org.assertj.core.util.diff | |
org.assertj.core.util.diff.myers |
Modifier and Type | Method and Description |
---|---|
Patch<T> |
DiffAlgorithm.diff(List<T> original,
List<T> revised)
Computes the difference between the original sequence and the revised
sequence and returns it as a
Patch object. |
static <T> Patch<T> |
DiffUtils.diff(List<T> original,
List<T> revised)
Computes the difference between the original and revised list of elements
with default diff algorithm
|
static <T> Patch<T> |
DiffUtils.diff(List<T> original,
List<T> revised,
DiffAlgorithm<T> algorithm)
Computes the difference between the original and revised list of elements
with default diff algorithm
|
static Patch<String> |
DiffUtils.parseUnifiedDiff(List<String> diff)
Parse the given text in unified format and creates the list of deltas for
it.
|
Modifier and Type | Method and Description |
---|---|
static List<String> |
DiffUtils.generateUnifiedDiff(String original,
String revised,
List<String> originalLines,
Patch<String> patch,
int contextSize)
generateUnifiedDiff takes a Patch and some other arguments, returning the
Unified Diff format text representing the Patch.
|
static <T> List<T> |
DiffUtils.patch(List<T> original,
Patch<T> patch)
Patch the original text with given patch
|
Modifier and Type | Method and Description |
---|---|
Patch<T> |
MyersDiff.buildRevision(PathNode path,
List<T> orig,
List<T> rev)
Constructs a
Patch from a difference path. |
Patch<T> |
MyersDiff.diff(List<T> original,
List<T> revised)
Computes the difference between the original sequence and the revised
sequence and returns it as a
Patch object. |
Copyright © 2014–2019 AssertJ. All rights reserved.