com.thaiopensource.relaxng.util
Class TestDriver

java.lang.Object
  extended by com.thaiopensource.relaxng.util.TestDriver

 class TestDriver
extends Object


Field Summary
private static String CORRECT_SCHEMA_NAME
           
private  ValidationDriver driver
           
private  ErrorHandlerImpl eh
           
private static String INCORRECT_SCHEMA_NAME
           
private static String INVALID_INSTANCE_SUFFIX
           
private  Localizer localizer
           
private  int nTests
           
private static String VALID_INSTANCE_SUFFIX
           
 
Constructor Summary
TestDriver()
           
 
Method Summary
 int doMain(String[] args)
           
private static void failed(File f)
           
private  boolean loadSchema(File schema)
           
static void main(String[] args)
           
private  int runTestCase(File dir)
           
 int runTestSuite(File dir)
           
private  boolean validateInstance(File instance)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

driver

private ValidationDriver driver

eh

private ErrorHandlerImpl eh

localizer

private Localizer localizer

nTests

private int nTests

CORRECT_SCHEMA_NAME

private static final String CORRECT_SCHEMA_NAME
See Also:
Constant Field Values

INCORRECT_SCHEMA_NAME

private static final String INCORRECT_SCHEMA_NAME
See Also:
Constant Field Values

VALID_INSTANCE_SUFFIX

private static final String VALID_INSTANCE_SUFFIX
See Also:
Constant Field Values

INVALID_INSTANCE_SUFFIX

private static final String INVALID_INSTANCE_SUFFIX
See Also:
Constant Field Values
Constructor Detail

TestDriver

TestDriver()
Method Detail

main

public static void main(String[] args)
                 throws IOException
Throws:
IOException

doMain

public int doMain(String[] args)
           throws IOException
Throws:
IOException

runTestSuite

public int runTestSuite(File dir)
                 throws IOException
Throws:
IOException

runTestCase

private int runTestCase(File dir)
                 throws IOException
Throws:
IOException

failed

private static void failed(File f)

loadSchema

private boolean loadSchema(File schema)
                    throws IOException
Throws:
IOException

validateInstance

private boolean validateInstance(File instance)
                          throws IOException
Throws:
IOException