|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
com.verisign.epp.util.XMLParserTst
public class XMLParserTst
JUnit test of XML Parsing implementations used by the EPP SDK. The Test uses a pool of parsers an outputs various performance metrics. Requires the following System Properties to be defined: eppsdk.gen.xml.dir - the directory where EPP XML instance documents are located eppsdk.gen.xml.instance - the XML document to use for the parsing tests eppsdk.gen.xml.test.parserImpl - the DocumentBuilder instance to test eppsdk.gen.xml.test.iterations - the number of times to parse the instance doc per thread. eppsdk.gen.xml.test.threads - the number of threads to use in the test
Title: EPP SDK
Description: EPP SDK for 1.0 Spec
Copyright: Copyright (c) 2003
Company: VeriSign
Field Summary | |
---|---|
static int |
NUM_PARSERS_IN_POOL
Number of parsers that are in the pool used by this test |
static java.lang.String |
POOL_NAME
The name of the pool that this test uses to get XML Parsers |
Constructor Summary | |
---|---|
XMLParserTst(java.lang.String name,
java.lang.String aXmlFile)
Create a new instance of the JUnit test XMLParserTst |
Method Summary | |
---|---|
java.lang.String |
getFileContents(java.lang.String aFilename)
Returns the contents of a file as a String |
static void |
printResults(java.io.PrintWriter out,
java.lang.String uri,
long time,
boolean tagginess,
int repetition)
Prints the results. |
protected void |
setUp()
DOCUMENT ME! |
static junit.framework.Test |
suite()
DOCUMENT ME! |
protected void |
tearDown()
DOCUMENT ME! |
void |
testDomParser()
Tests that a non validating DOMParser instance from Xerces will return a DOM Document |
void |
testLockSchemaCache()
DOCUMENT ME! |
void |
testParsing()
Test using a parser from the pool with multiple threads. |
void |
testSchemaNotFoundInClasspath()
DOCUMENT ME! |
void |
testSetNoSymbolTableSize()
Set the symbol table size to 0 and test parsing with an XMLGrammarCachingConfiguration. |
void |
testSetSymbolTableSize()
DOCUMENT ME! |
void |
testTurnOffValidation()
Tests turning of the validation feature of the parser |
Methods inherited from class junit.framework.TestCase |
---|
countTestCases, createResult, getName, run, run, runBare, runTest, setName, 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 |
---|
public static final java.lang.String POOL_NAME
public static final int NUM_PARSERS_IN_POOL
Constructor Detail |
---|
public XMLParserTst(java.lang.String name, java.lang.String aXmlFile)
name
- aXmlFile
- DOCUMENT ME!Method Detail |
---|
public static void printResults(java.io.PrintWriter out, java.lang.String uri, long time, boolean tagginess, int repetition)
out
- DOCUMENT ME!uri
- DOCUMENT ME!time
- DOCUMENT ME!tagginess
- DOCUMENT ME!repetition
- DOCUMENT ME!public void testTurnOffValidation()
public void testParsing()
public void testSetSymbolTableSize()
public void testSetNoSymbolTableSize()
public void testLockSchemaCache()
public void testSchemaNotFoundInClasspath()
public void testDomParser()
public static junit.framework.Test suite()
public java.lang.String getFileContents(java.lang.String aFilename)
aFilename
-
protected void setUp() throws java.lang.Exception
setUp
in class junit.framework.TestCase
java.lang.Exception
- DOCUMENT ME!protected void tearDown() throws java.lang.Exception
tearDown
in class junit.framework.TestCase
java.lang.Exception
- DOCUMENT ME!
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |