站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > NetBeans API Javadoc (Current Development Version)

Diff (NB JUnit) - NetBeans API Javadoc (Current Development Version)

org.netbeans.modules.nbjunit/1 1.41

org.netbeans.junit.diff
Interface Diff

All Known Implementing Classes:
LineDiff, NativeDiff, SimpleDiff

public interface Diff

This interface must be implemented by any class used as file-diff facility in assertFile functions. It declares two functions, which are called whenever the file comparision is required. Their meaning is identical, they only differ by arguments types. Generally, they both take three parameters, the first two specify files being compared and the third is the file, where comparision results are stored. Third paramtere can be null in case no additional output except the return value is needed.

See Also:
Assert class

Method Summary
 boolean diff(File first, File second, File diff)
           
 boolean diff(String first, String second, String diff)
           
 

Method Detail

diff

boolean diff(File first,
             File second,
             File diff)
             throws IOException
Parameters:
first - first file to compare
second - second file to compare
diff - difference file, caller can pass null value, when results are not needed.
Returns:
true iff files differ
Throws:
IOException

diff

boolean diff(String first,
             String second,
             String diff)
             throws IOException
Parameters:
first - first file to compare
second - second file to compare
diff - difference file, caller can pass null value, when results are not needed.
Returns:
true iff files differ
Throws:
IOException

org.netbeans.modules.nbjunit/1 1.41

Built on May 28 2007.  |  Portions Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.