Package org.assertj.core.internal
Class Diff
- java.lang.Object
-
- org.assertj.core.internal.Diff
-
public class Diff extends Object
Compares the contents of two files, inputStreams or paths.- Author:
- David DIDIER, Alex Ruiz, Yvonne Wang, Matthieu Baechler, Olivier Michallat, Joel Costigliola, Stephan Windmüller
-
-
Constructor Summary
Constructors Constructor Description Diff()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private List<Delta<String>>
diff(BufferedReader actual, BufferedReader expected)
List<Delta<String>>
diff(File actual, String expected, Charset charset)
List<Delta<String>>
diff(File actual, Charset actualCharset, File expected, Charset expectedCharset)
List<Delta<String>>
diff(InputStream actual, InputStream expected)
List<Delta<String>>
diff(InputStream actual, String expected)
List<Delta<String>>
diff(Path actual, String expected, Charset charset)
List<Delta<String>>
diff(Path actual, Charset actualCharset, Path expected, Charset expectedCharset)
private List<String>
linesFromBufferedReader(BufferedReader reader)
private BufferedReader
readerFor(InputStream stream)
private BufferedReader
readerFor(String string)
-
-
-
Method Detail
-
diff
public List<Delta<String>> diff(InputStream actual, InputStream expected) throws IOException
- Throws:
IOException
-
diff
public List<Delta<String>> diff(InputStream actual, String expected) throws IOException
- Throws:
IOException
-
diff
public List<Delta<String>> diff(File actual, Charset actualCharset, File expected, Charset expectedCharset) throws IOException
- Throws:
IOException
-
diff
public List<Delta<String>> diff(Path actual, Charset actualCharset, Path expected, Charset expectedCharset) throws IOException
- Throws:
IOException
-
diff
public List<Delta<String>> diff(File actual, String expected, Charset charset) throws IOException
- Throws:
IOException
-
diff
public List<Delta<String>> diff(Path actual, String expected, Charset charset) throws IOException
- Throws:
IOException
-
readerFor
private BufferedReader readerFor(InputStream stream)
-
readerFor
private BufferedReader readerFor(String string)
-
diff
private List<Delta<String>> diff(BufferedReader actual, BufferedReader expected) throws IOException
- Throws:
IOException
-
linesFromBufferedReader
private List<String> linesFromBufferedReader(BufferedReader reader) throws IOException
- Throws:
IOException
-
-