cpdetector.test
Class JunitLargeCollectionVerifiedEncodingsTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by cpdetector.test.JunitLargeCollectionVerifiedEncodingsTest
All Implemented Interfaces:
junit.framework.Test

public class JunitLargeCollectionVerifiedEncodingsTest
extends junit.framework.TestCase

Author:
Achim Westermann

Field Summary
protected  File collectionRoot
          The root folder (directory) under which all files for the collection are found.
protected  CodepageDetectorProxy detector
          The codepage detection proxy that will be used.
 
Constructor Summary
JunitLargeCollectionVerifiedEncodingsTest(String methodName)
           
 
Method Summary
protected  void describe()
           
static void main(String[] args)
           
 void parseArgs()
          The needed arguments come from the system properties.
 void process()
           
 void report()
           
static junit.framework.Test suite()
           
protected  void usage()
           
protected  void verifyFiles()
          All three Files are validated if null, existant and the right type (directory vs.
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, 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, failNotEquals, failNotSame, failSame, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

collectionRoot

protected File collectionRoot
The root folder (directory) under which all files for the collection are found.


detector

protected CodepageDetectorProxy detector
The codepage detection proxy that will be used. Is optionally configured by argument \"-c\".

Constructor Detail

JunitLargeCollectionVerifiedEncodingsTest

public JunitLargeCollectionVerifiedEncodingsTest(String methodName)
                                          throws Exception
Throws:
Exception
Method Detail

parseArgs

public void parseArgs()
               throws Exception
The needed arguments come from the system properties. Needed properties are:

  collectionRoot
  extensions
  iterations
  detectorList

 

Throws:
Exception

process

public final void process()
                   throws Exception
Throws:
Exception

report

public void report()

verifyFiles

protected void verifyFiles()
                    throws IllegalArgumentException
All three Files are validated if null, existant and the right type (directory vs. file).

Throws:
Exception - Sth. does not seem to be valid.
IllegalArgumentException

describe

protected void describe()

usage

protected void usage()

suite

public static junit.framework.Test suite()

main

public static void main(String[] args)
                 throws Exception
Throws:
Exception


Copyleft ㊢ 2003-2004 MPL 1.1, All Rights Footloose.