public abstract class RDFWriterTest extends Object
Modifier and Type | Field and Description |
---|---|
protected RDFParserFactory |
rdfParserFactory |
protected RDFWriterFactory |
rdfWriterFactory |
org.junit.rules.TemporaryFolder |
tempDir |
protected ValueFactory |
vf |
Modifier | Constructor and Description |
---|---|
protected |
RDFWriterTest(RDFWriterFactory writerF,
RDFParserFactory parserF) |
Modifier and Type | Method and Description |
---|---|
protected void |
setupParserConfig(ParserConfig config)
Override this method to setup custom settings for ParserConfig needed to
pass tests.
|
protected void |
setupWriterConfig(WriterConfig config)
Override this method to setup custom settings for WriterConfig needed to
pass tests.
|
void |
testDefaultNamespace() |
void |
testIllegalPrefix() |
void |
testPerformance()
Fuzz and performance test designed to find cases where parsers and/or
writers are incompatible with each other.
|
void |
testPerformanceNoHandling()
Tests raw parser performance, without checking for consistency, by not
storing the resulting triples.
|
void |
testPrefixRedefinition() |
void |
testRoundTrip() |
void |
testRoundTripPreserveBNodeIds() |
void |
testSES2030BNodeCollisions()
Test specifically for bnode collisions of the form "a" -> "aa", with
preserve BNode ids setting off.
|
void |
testSES2030BNodeCollisionsPreserveBNodeIds()
Test specifically for bnode collisions of the form "a" -> "aa", with
preserve BNode ids setting on.
|
public org.junit.rules.TemporaryFolder tempDir
protected RDFWriterFactory rdfWriterFactory
protected RDFParserFactory rdfParserFactory
protected ValueFactory vf
protected RDFWriterTest(RDFWriterFactory writerF, RDFParserFactory parserF)
protected void setupWriterConfig(WriterConfig config)
One example of this is that JSONLDMode.EXPAND
does not preserve
namespace prefixes, causing the tests here to be unnecessarily ignored.
The fix for that is to override this method and set the mode to
JSONLDMode.COMPACT
that does preserve namespaces.
config
- The config object to modify.protected void setupParserConfig(ParserConfig config)
config
- The config object to modify.public void testRoundTripPreserveBNodeIds() throws Exception
Exception
public void testPrefixRedefinition() throws RDFHandlerException, RDFParseException, IOException
public void testIllegalPrefix() throws RDFHandlerException, RDFParseException, IOException
public void testSES2030BNodeCollisionsPreserveBNodeIds() throws Exception
Exception
public void testSES2030BNodeCollisions() throws Exception
Exception
public void testPerformance() throws Exception
Exception
Copyright © 2001-2016 Aduna. All Rights Reserved.