|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
com.hp.hpl.jena.test.JenaTestBase
com.hp.hpl.jena.graph.test.GraphTestBase
com.hp.hpl.jena.rdf.model.test.ModelTestBase
com.hp.hpl.jena.xmloutput.testWriterAndReader
public class testWriterAndReader
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.
Nested Class Summary | |
---|---|
static class |
testWriterAndReader.TestXMLFeatures_XML
|
static class |
testWriterAndReader.TestXMLFeatures_XML_ABBREV
|
Method Summary | |
---|---|
void |
doTest(java.lang.String[] propNames,
java.lang.Object[] propVals)
|
void |
error(java.lang.Exception e)
report an error |
void |
fatalError(java.lang.Exception e)
report a catastrophic error. |
static junit.framework.TestSuite |
repeatedAbbrevSuite()
|
void |
test(java.lang.String rwLang,
int seed,
int variationMax,
java.lang.String[] wopName,
java.lang.Object[] wopVal)
|
void |
testLongId()
|
void |
testOptions()
|
void |
testRandom()
|
java.lang.String |
toString()
|
void |
warning(java.lang.Exception e)
report a warning |
Methods inherited from class com.hp.hpl.jena.rdf.model.test.ModelTestBase |
---|
assertIsoModels, assertIsoModels, createMemModel, createModel, literal, modelAdd, modelWithStatements, modelWithStatements, property, property, rdfNode, rdfNode, resource, resource, resources, resourceSet, statement, statement, statements |
Methods inherited from class com.hp.hpl.jena.graph.test.GraphTestBase |
---|
arrayToSet, assertContains, assertContainsAll, assertEqualsTemplate, assertIsomorphic, assertIsomorphic, assertOmits, assertOmitsAll, contains, getGraph, graphAdd, graphWith, iteratorToList, iteratorToSet, newGraph, nice, node, nodeArray, nodeList, nodeSet, testContains, testContains, testContains, testContains, testOmits, testOmits, testOmits, testOmits, triple, triple, tripleArray, tripleSet |
Methods inherited from class com.hp.hpl.jena.test.JenaTestBase |
---|
append, assertDiffer, assertDiffer, assertHasParent, assertInstanceOf, getConstructor, hasAsParent, isPublicTestMethod, isTestMethod, listOfOne, listOfStrings, listToSet, pass, setOfOne, setOfStrings, testToSilenceJunitComplaintsAboutNoTestMethods |
Methods inherited from class junit.framework.TestCase |
---|
countTestCases, getName, run, run, runBare, setName |
Methods inherited from class junit.framework.Assert |
---|
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public java.lang.String toString()
toString
in class junit.framework.TestCase
public static junit.framework.TestSuite repeatedAbbrevSuite()
public void testRandom() throws java.io.IOException
java.io.IOException
public void testLongId() throws java.io.IOException
java.io.IOException
public void testOptions() throws java.io.IOException
java.io.IOException
public void doTest(java.lang.String[] propNames, java.lang.Object[] propVals) throws java.io.IOException
java.io.IOException
public void test(java.lang.String rwLang, int seed, int variationMax, java.lang.String[] wopName, java.lang.Object[] wopVal) throws java.io.IOException
rwLang
- Use Writer for this langseed
- A seed for the random number generatorvariationMax
- Number of random variationswopName
- Property names to set on WriterwopVal
- Property values to set on Writer
java.io.IOException
public void warning(java.lang.Exception e)
warning
in interface RDFErrorHandler
e
- an exception representing the errorpublic void error(java.lang.Exception e)
RDFErrorHandler
error
in interface RDFErrorHandler
e
- an exception representing the errorpublic void fatalError(java.lang.Exception e)
RDFErrorHandler
fatalError
in interface RDFErrorHandler
e
- an exception representing the error
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |