org.objectweb.cjdbc.scenario.standalone.xml
Class XmlParserTest

java.lang.Object
  extended byTestCase
      extended byorg.objectweb.cjdbc.scenario.templates.NoTemplate
          extended byorg.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
 
Fields inherited from class org.objectweb.cjdbc.scenario.templates.NoTemplate
logger, TEXT_DIR
 
Constructor Summary
XmlParserTest()
           
 
Method Summary
private  boolean analyseDirectoryWithDtd(java.lang.String pathToDtd, java.io.File dir)
           
private  boolean analyseXmlAndDtd(java.lang.String pathToDtd, java.lang.String pathToXml)
           
private  java.lang.String getRelativePath(java.lang.String pathFromTxt)
           
 void setUp()
          Initialize the xml parser
 void testXmlDocuments()
          Use the file XML_FILES to verify xml document
 
Methods inherited from class org.objectweb.cjdbc.scenario.templates.NoTemplate
getTextPath, getUserDir
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

XmlParserTest

public XmlParserTest()
Method Detail

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.