abbot.tester
Class FileComparatorTest

java.lang.Object
junit.framework.Assert
junit.framework.TestCase
abbot.tester.FileComparatorTest
- All Implemented Interfaces:
- junit.framework.Test
- public class FileComparatorTest
- extends junit.framework.TestCase
Test FileComparator.
| Fields inherited from class junit.framework.TestCase |
|
| Methods inherited from class junit.framework.Assert |
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail |
fc
private FileComparator fc
FileComparatorTest
public FileComparatorTest(java.lang.String name)
- Create a new test case with the given name.
generateFile
private java.io.File generateFile(java.lang.String contents,
int length)
throws java.lang.Throwable
setUp
protected void setUp()
- Description copied from class:
junit.framework.TestCase
- Sets up the fixture, for example, open a network connection.
This method is called before a test is executed.
testCompareWithNull
public void testCompareWithNull()
throws java.lang.Throwable
testCompareSameFiles
public void testCompareSameFiles()
throws java.lang.Throwable
testCompareIdenticalFiles
public void testCompareIdenticalFiles()
throws java.lang.Throwable
testCompareDifferentFiles
public void testCompareDifferentFiles()
throws java.lang.Throwable
testComparNonFiles
public void testComparNonFiles()
main
public static void main(java.lang.String[] args)
- Return the default test suite.