Package | Description |
---|---|
org.assertj.core.error | |
org.assertj.core.internal | |
org.assertj.core.util.diff |
Modifier and Type | Method and Description |
---|---|
protected static java.lang.String |
AbstractShouldHaveTextContent.diffsAsString(java.util.List<Delta<java.lang.String>> diffsList) |
static ErrorMessageFactory |
ShouldHaveContent.shouldHaveContent(java.io.File actual,
java.nio.charset.Charset charset,
java.util.List<Delta<java.lang.String>> diffs)
Creates a new
. |
static ErrorMessageFactory |
ShouldHaveContent.shouldHaveContent(java.nio.file.Path actual,
java.nio.charset.Charset charset,
java.util.List<Delta<java.lang.String>> diffs)
Creates a new
. |
static ErrorMessageFactory |
ShouldHaveSameContent.shouldHaveSameContent(java.io.File actual,
java.io.File expected,
java.util.List<Delta<java.lang.String>> diffs)
Creates a new
. |
static ErrorMessageFactory |
ShouldHaveSameContent.shouldHaveSameContent(java.io.InputStream actual,
java.io.InputStream expected,
java.util.List<Delta<java.lang.String>> diffs)
Creates a new
. |
static ErrorMessageFactory |
ShouldHaveSameContent.shouldHaveSameContent(java.nio.file.Path actual,
java.nio.file.Path expected,
java.util.List<Delta<java.lang.String>> diffs)
Creates a new
. |
Modifier and Type | Method and Description |
---|---|
private java.util.List<Delta<java.lang.String>> |
Diff.diff(java.io.BufferedReader actual,
java.io.BufferedReader expected) |
java.util.List<Delta<java.lang.String>> |
Diff.diff(java.io.File actual,
java.nio.charset.Charset actualCharset,
java.io.File expected,
java.nio.charset.Charset expectedCharset) |
java.util.List<Delta<java.lang.String>> |
Diff.diff(java.io.File actual,
java.lang.String expected,
java.nio.charset.Charset charset) |
java.util.List<Delta<java.lang.String>> |
Diff.diff(java.io.InputStream actual,
java.io.InputStream expected) |
java.util.List<Delta<java.lang.String>> |
Diff.diff(java.nio.file.Path actual,
java.nio.charset.Charset actualCharset,
java.nio.file.Path expected,
java.nio.charset.Charset expectedCharset) |
java.util.List<Delta<java.lang.String>> |
Diff.diff(java.nio.file.Path actual,
java.lang.String expected,
java.nio.charset.Charset charset) |
Modifier and Type | Class and Description |
---|---|
class |
ChangeDelta<T>
Initially copied from https://code.google.com/p/java-diff-utils/.
|
class |
DeleteDelta<T>
Initially copied from https://code.google.com/p/java-diff-utils/.
|
class |
InsertDelta<T>
Initially copied from https://code.google.com/p/java-diff-utils/.
|
Modifier and Type | Field and Description |
---|---|
private java.util.List<Delta<T>> |
Patch.deltas |
static java.util.Comparator<Delta<?>> |
DeltaComparator.INSTANCE |
Modifier and Type | Method and Description |
---|---|
java.util.List<Delta<T>> |
Patch.getDeltas()
Get the list of computed deltas
|
Modifier and Type | Method and Description |
---|---|
void |
Patch.addDelta(Delta<T> delta)
Add the given delta to this patch
|
int |
DeltaComparator.compare(Delta<?> a,
Delta<?> b) |
int |
DeltaComparator.compare(Delta<?> a,
Delta<?> b) |
private static java.util.List<java.lang.String> |
DiffUtils.getDeltaText(Delta<java.lang.String> delta)
getDeltaText returns the lines to be added to the Unified Diff text from
the Delta parameter
|
Modifier and Type | Method and Description |
---|---|
private static java.util.List<java.lang.String> |
DiffUtils.processDeltas(java.util.List<java.lang.String> origLines,
java.util.List<Delta<java.lang.String>> deltas,
int contextSize)
processDeltas takes a list of Deltas and outputs them together in a
single block of Unified-Diff-format text.
|