Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

abbot.tester
Class FileComparatorTest  view FileComparatorTest download FileComparatorTest.java

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byabbot.tester.FileComparatorTest
All Implemented Interfaces:
junit.framework.Test

public class FileComparatorTest
extends junit.framework.TestCase

Test FileComparator.


Field Summary
private  FileComparator fc
           
 
Fields inherited from class junit.framework.TestCase
 
Constructor Summary
FileComparatorTest(java.lang.String name)
          Create a new test case with the given name.
 
Method Summary
private  java.io.File generateFile(java.lang.String contents, int length)
           
static void main(java.lang.String[] args)
          Return the default test suite.
protected  void setUp()
          Sets up the fixture, for example, open a network connection.
 void testCompareDifferentFiles()
           
 void testCompareIdenticalFiles()
           
 void testCompareSameFiles()
           
 void testCompareWithNull()
           
 void testComparNonFiles()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, tearDown, toString
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

fc

private FileComparator fc
Constructor Detail

FileComparatorTest

public FileComparatorTest(java.lang.String name)
Create a new test case with the given name.

Method Detail

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.