test.pdfbox.util
Class TestTextStripperPerformance

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by test.pdfbox.util.TestTextStripperPerformance
All Implemented Interfaces:
junit.framework.Test

public class TestTextStripperPerformance
extends junit.framework.TestCase

Test the performance of the PDF text stripper utility.

Version:
$Revision: 1.2 $
Author:
Ben Litchfield (ben@csh.rit.edu)

Constructor Summary
TestTextStripperPerformance(String name)
          Test class constructor.
 
Method Summary
 void doTestFile(File file, boolean bLogResult)
          Validate text extraction on a single file.
static void main(String[] args)
          Command line execution.
 void setUp()
          Test suite setup.
static junit.framework.Test suite()
          Set the tests in the suite for this test class.
 void testExtract()
          Test to validate text extraction of file set.
 
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, failNotEquals, failNotSame, failSame, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TestTextStripperPerformance

public TestTextStripperPerformance(String name)
Test class constructor.

Parameters:
name - The name of the test class.
Method Detail

setUp

public void setUp()
Test suite setup.

Overrides:
setUp in class junit.framework.TestCase

doTestFile

public void doTestFile(File file,
                       boolean bLogResult)
                throws Exception
Validate text extraction on a single file.

Parameters:
file - The file to validate
bLogResult - Whether to log the extracted text
Throws:
Exception - when there is an exception

testExtract

public void testExtract()
                 throws Exception
Test to validate text extraction of file set.

Throws:
Exception - when there is an exception

suite

public static junit.framework.Test suite()
Set the tests in the suite for this test class.

Returns:
the Suite.

main

public static void main(String[] args)
Command line execution.

Parameters:
args - Command line arguments.


Copyright © 2006-2007 EGIZ - E-Government Innovationszentrum. All Rights Reserved.