| java.lang.Object org.netbeans.junit.diff.LineDiff
LineDiff | public class LineDiff implements Diff(Code) | | Line Diff with formated textual output.
Number of context lines in output is configurable through system property 'nbjunit.linediff.context'.
author: ehucka |
Inner Class :static class Result | |
Constructor Summary | |
public | LineDiff() | public | LineDiff(boolean ignoreCase) | public | LineDiff(boolean ignoreCase, boolean ignoreEmptyLines) |
Method Summary | |
protected boolean | compareLines(String l1, String l2) | public boolean | diff(String ref, String pass, String diff) Parameters: ref - first file to compare Parameters: pass - second file to compare Parameters: diff - difference file, caller can pass null value, when results are not needed. | public boolean | diff(File refFile, File passFile, File diffFile) Parameters: refFile - first file to compare -- ref Parameters: passFile - second file to compare -- golden Parameters: diffFile - difference file, caller can pass null value, when results are not needed. | public boolean | getIgnoreCase() | public int | getNContextLines() |
CONTEXT | public static int CONTEXT(Code) | | |
contextLines | int contextLines(Code) | | |
ignoreCase | boolean ignoreCase(Code) | | |
ignoreEmptyLines | boolean ignoreEmptyLines(Code) | | |
LineDiff | public LineDiff()(Code) | | |
LineDiff | public LineDiff(boolean ignoreCase)(Code) | | |
LineDiff | public LineDiff(boolean ignoreCase, boolean ignoreEmptyLines)(Code) | | |
compareLines | protected boolean compareLines(String l1, String l2)(Code) | | Parameters: l1 - first line to compare Parameters: l2 - second line to compare true if lines equal |
diff | public boolean diff(String ref, String pass, String diff) throws IOException(Code) | | Parameters: ref - first file to compare Parameters: pass - second file to compare Parameters: diff - difference file, caller can pass null value, when results are not needed. true iff files differ throws: IOException - when readin of files fails |
diff | public boolean diff(File refFile, File passFile, File diffFile) throws IOException(Code) | | Parameters: refFile - first file to compare -- ref Parameters: passFile - second file to compare -- golden Parameters: diffFile - difference file, caller can pass null value, when results are not needed. true iff files differ |
getIgnoreCase | public boolean getIgnoreCase()(Code) | | |
getNContextLines | public int getNContextLines()(Code) | | |
|
|