public class MetaTester
extends java.lang.Object
Constructor and Description |
---|
MetaTester(java.lang.String modelFile,
java.lang.String fileDirectory,
int parserType)
Constructs a new MetaTester using the given model file, the given
test file, and the directory containing all support files.
|
Modifier and Type | Method and Description |
---|---|
static void |
main(java.lang.String[] args)
The MetaTester tests a suite of test model files against a
compiled model.
|
void |
testFile(java.lang.String testFile,
java.lang.String fileDirectory)
Tests a specific instance of the given model, as described by
testFile.
|
public MetaTester(java.lang.String modelFile, java.lang.String fileDirectory, int parserType) throws XOMException, java.io.IOException
modelFile
- an XML file describing the model to be tested.
This model should have already been compiled using the MetaGenerator
utility.fileDirectory
- the directory containing all output files
(Java classes, dtds, etc) from the model compilation. The model
and its associated java class must be compiled.XOMException
- if the model file is corrupted or if any
of its compiled components cannot be loaded.java.io.IOException
public void testFile(java.lang.String testFile, java.lang.String fileDirectory) throws XOMException
testFile
- the XML file to be tested.fileDirectory
- directory containing files.XOMException
- if the test fails for any reason.public static void main(java.lang.String[] args) throws XOMException, java.io.IOException
Arguments:
All other arguments are the names of the test model files. Each of these will be tested and displayed in turn.
XOMException
java.io.IOException