com.ricebridge.xmlman.test
Class PerformanceTest

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended bycom.ricebridge.xmlman.test.PerformanceTest
All Implemented Interfaces:
junit.framework.Test

public class PerformanceTest
extends junit.framework.TestCase

Gather performance test data created by PerformanceTestFileMaker class.

The Source Code of this Java class is available under a BSD-style license.


Nested Class Summary
static class PerformanceTest.DateStringConverter
           
static class PerformanceTest.MeasureBeanRecordListener
           
static class PerformanceTest.MeasureResultSetRecordListener
           
static class PerformanceTest.MeasureStringArrayRecordListener
           
static class PerformanceTest.MeasureStringListRecordListener
           
static class PerformanceTest.MeasureTableModelRecordListener
           
static class PerformanceTest.PerfBean
           
 
Field Summary
static int ITERATIONS
           
static int MAX_RECORDS
           
 
Constructor Summary
PerformanceTest(String pName)
           
 
Method Summary
 void check(XmlManager pXmlManager, long pRecordCount, long pBadRecordCount)
           
 void display(XmlManager pXmlManager)
           
static File findFile(String pName)
           
static File findFile(String pName, String pExt)
           
static void main(String[] pArgs)
           
 void measureDom4jFile(XmlManager pXmlManager, RecordSpec pRecordSpec, BeanSpec pBeanSpec, String pFileName, long pRecordCount, ArrayList pStats)
           
 void measureDOMFile(XmlManager pXmlManager, RecordSpec pRecordSpec, BeanSpec pBeanSpec, String pFileName, long pRecordCount, ArrayList pStats)
           
 void measureFile(XmlManager pXmlManager, RecordSpec pRecordSpec, BeanSpec pBeanSpec, String pFileName, long pRecordCount, ArrayList pStats)
           
static junit.framework.TestSuite suite()
           
 void testDataRecordRate()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, name, run, run, runBare, runTest, setName, setUp, tearDown, toString
 
Methods inherited from class junit.framework.Assert
assert, assert, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertNotNull, assertNotNull, 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

ITERATIONS

public static final int ITERATIONS
See Also:
Constant Field Values

MAX_RECORDS

public static final int MAX_RECORDS
See Also:
Constant Field Values
Constructor Detail

PerformanceTest

public PerformanceTest(String pName)
Method Detail

suite

public static junit.framework.TestSuite suite()

main

public static void main(String[] pArgs)

testDataRecordRate

public void testDataRecordRate()

measureFile

public void measureFile(XmlManager pXmlManager,
                        RecordSpec pRecordSpec,
                        BeanSpec pBeanSpec,
                        String pFileName,
                        long pRecordCount,
                        ArrayList pStats)
                 throws Exception
Throws:
Exception

measureDom4jFile

public void measureDom4jFile(XmlManager pXmlManager,
                             RecordSpec pRecordSpec,
                             BeanSpec pBeanSpec,
                             String pFileName,
                             long pRecordCount,
                             ArrayList pStats)
                      throws Exception
Throws:
Exception

measureDOMFile

public void measureDOMFile(XmlManager pXmlManager,
                           RecordSpec pRecordSpec,
                           BeanSpec pBeanSpec,
                           String pFileName,
                           long pRecordCount,
                           ArrayList pStats)
                    throws Exception
Throws:
Exception

check

public void check(XmlManager pXmlManager,
                  long pRecordCount,
                  long pBadRecordCount)

display

public void display(XmlManager pXmlManager)

findFile

public static File findFile(String pName)
                     throws Exception
Throws:
Exception

findFile

public static File findFile(String pName,
                            String pExt)
                     throws Exception
Throws:
Exception


Copyright © 2004-2005 Ricebridge