com.ricebridge.xmlman.test
Class PerformanceTest
java.lang.Object
junit.framework.Assert
junit.framework.TestCase
com.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.
|
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 |
ITERATIONS
public static final int ITERATIONS
- See Also:
- Constant Field Values
MAX_RECORDS
public static final int MAX_RECORDS
- See Also:
- Constant Field Values
PerformanceTest
public PerformanceTest(String pName)
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