org.objectweb.cjdbc.scenario.standalone.xml
Class XmlParserTest
java.lang.Object
TestCase
org.objectweb.cjdbc.scenario.templates.NoTemplate
org.objectweb.cjdbc.scenario.standalone.xml.XmlParserTest
- public class XmlParserTest
- extends NoTemplate
Test to validate xml document of c-jdbc DTDs.
- Author:
- Nicolas Modrzyk
- See Also:
- Serialized Form
Field Summary |
private int |
count
|
private int |
failed
|
static java.lang.String |
XML_FILE
File name containing the C-JDBC URLs to test. |
static java.lang.String |
xmlFiles
The absolute path to the above xmlFile |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XML_FILE
public static final java.lang.String XML_FILE
- File name containing the C-JDBC URLs to test.
- See Also:
- Constant Field Values
xmlFiles
public static java.lang.String xmlFiles
- The absolute path to the above xmlFile
count
private int count
failed
private int failed
XmlParserTest
public XmlParserTest()
setUp
public void setUp()
- Initialize the xml parser
getRelativePath
private java.lang.String getRelativePath(java.lang.String pathFromTxt)
testXmlDocuments
public void testXmlDocuments()
throws java.io.IOException
- Use the file
XML_FILES
to verify XML document
- Throws:
java.io.IOException
- when fails reading
analyseDirectoryWithDtd
private boolean analyseDirectoryWithDtd(java.lang.String pathToDtd,
java.io.File dir)
analyseXmlAndDtd
private boolean analyseXmlAndDtd(java.lang.String pathToDtd,
java.lang.String pathToXml)
throws java.io.IOException
- Throws:
java.io.IOException
Copyright © 2002, 2005 - ObjectWeb Consortium - All Rights Reserved.