Top Description Constructors Methods
org.assertj.core.internal

public Class Diff

extends Object
Class Inheritance
Annotations
@VisibleForTesting
Static Imports
java.nio.file.Files.newBufferedReader, java.util.Collections.unmodifiableList, org.assertj.core.util.Closeables.closeQuietly

Compares the contents of two files, inputStreams or paths.
Authors
David DIDIER, Alex Ruiz, Yvonne Wang, Matthieu Baechler, Olivier Michallat, Joel Costigliola, Stephan Windmüller

Constructor Summary

AccessConstructor and Description
public
Diff()

Method Summary

Modifier and TypeMethod and Description
public List<Delta<String>>
diff(InputStream actual, InputStream expected)

public List<Delta<String>>
diff(InputStream actual, String expected)

public List<Delta<String>>
diff(File actual, Charset actualCharset, File expected, Charset expectedCharset)

public List<Delta<String>>
diff(Path actual, Charset actualCharset, Path expected, Charset expectedCharset)

public List<Delta<String>>
diff(File actual, String expected, Charset charset)

public List<Delta<String>>
diff(Path actual, String expected, Charset charset)

private List<Delta<String>>
private List<String>
private BufferedReader
private BufferedReader
readerFor(String string)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

Diffback to summary
public Diff()

Method Detail

diffback to summary
public List<Delta<String>> diff(InputStream actual, InputStream expected) throws IOException
Annotations
@VisibleForTesting
diffback to summary
public List<Delta<String>> diff(InputStream actual, String expected) throws IOException
Annotations
@VisibleForTesting
diffback to summary
public List<Delta<String>> diff(File actual, Charset actualCharset, File expected, Charset expectedCharset) throws IOException
Annotations
@VisibleForTesting
diffback to summary
public List<Delta<String>> diff(Path actual, Charset actualCharset, Path expected, Charset expectedCharset) throws IOException
Annotations
@VisibleForTesting
diffback to summary
public List<Delta<String>> diff(File actual, String expected, Charset charset) throws IOException
Annotations
@VisibleForTesting
diffback to summary
public List<Delta<String>> diff(Path actual, String expected, Charset charset) throws IOException
Annotations
@VisibleForTesting
diffback to summary
private List<Delta<String>> diff(BufferedReader actual, BufferedReader expected) throws IOException
linesFromBufferedReaderback to summary
private List<String> linesFromBufferedReader(BufferedReader reader) throws IOException
readerForback to summary
private BufferedReader readerFor(InputStream stream)
readerForback to summary
private BufferedReader readerFor(String string)