com.hp.hpl.mesa.rdf.jena.common.regression
Class testWriterAndReader

java.lang.Object
  |
  +--com.hp.hpl.mesa.rdf.jena.common.regression.testWriterAndReader
All Implemented Interfaces:
RDFErrorHandler

public class testWriterAndReader
extends java.lang.Object
implements RDFErrorHandler

This will test any Writer and Reader pair. It writes out a random model, and reads it back in. The test fails if the models are not 'the same'. Quite what 'the same' means is debatable.

Version:
Release='$Name: $' Revision='$Revision: 1.6 $' Date='$Date: 2001/12/06 18:41:34 $'
Author:
jjc

Constructor Summary
testWriterAndReader()
           
 
Method Summary
static void empty(Model m)
           
 void error(java.lang.Exception e)
          report an error
 void fatalError(java.lang.Exception e)
          report a catastrophic error.
 boolean getErrors()
           
static void main(java.lang.String[] args)
           
 void test(Model m1, Model m2, Model m3, Model m4)
           
 void test(java.lang.String rwLang, int seed, int iiiMax, int jjjMax, Model m1, Model m2, Model m3, Model m4)
           
 void warning(java.lang.Exception e)
          report a warning
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

testWriterAndReader

public testWriterAndReader()
Method Detail

test

public void test(Model m1,
                 Model m2,
                 Model m3,
                 Model m4)

test

public void test(java.lang.String rwLang,
                 int seed,
                 int iiiMax,
                 int jjjMax,
                 Model m1,
                 Model m2,
                 Model m3,
                 Model m4)
          throws RDFException

error

public void error(java.lang.Exception e)
Description copied from interface: RDFErrorHandler
report an error
Specified by:
error in interface RDFErrorHandler
Following copied from interface: com.hp.hpl.mesa.rdf.jena.model.RDFErrorHandler
Parameters:
e - an exception representing the error

getErrors

public boolean getErrors()

warning

public void warning(java.lang.Exception e)
report a warning
Specified by:
warning in interface RDFErrorHandler
Parameters:
e - an exception representing the error

fatalError

public void fatalError(java.lang.Exception e)
report a catastrophic error. Must not return.
Specified by:
fatalError in interface RDFErrorHandler
Parameters:
e - an exception representing the error
Throws:
RDFError - a generic RDF exception

empty

public static void empty(Model m)
                  throws RDFException

main

public static void main(java.lang.String[] args)
                 throws RDFException,
                        java.io.IOException


Copyright © 2001 Hewlett-Packard. All Rights Reserved.