com.hp.hpl.jena.xmloutput
Class TestXMLFeatures

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by com.hp.hpl.jena.test.JenaTestBase
              extended by com.hp.hpl.jena.graph.test.GraphTestBase
                  extended by com.hp.hpl.jena.rdf.model.test.ModelTestBase
                      extended by com.hp.hpl.jena.xmloutput.XMLOutputTestBase
                          extended by com.hp.hpl.jena.xmloutput.TestXMLFeatures
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
testWriterAndReader.TestXMLFeatures_XML, testWriterAndReader.TestXMLFeatures_XML_ABBREV

public class TestXMLFeatures
extends XMLOutputTestBase


Method Summary
 void checkPropURI(java.lang.String s, java.lang.String p, java.lang.Object val, int behaviour)
           
static void main(java.lang.String[] args)
           
 void SUPPRESSEDtestBrokenPrefixing()
          Very specific test case to trap bug whereby a model which has a prefix j.0 defined (eg it was read in from a model we wrote out earlier) wants to allocate a new j.* prefix and picked j.0, BOOM.
 void SUPPRESSEDtestRelativeURI()
           
 void SUPPRESStestNoStripes()
           
 void testBadPrefixNamespace()
           
 void testBadProperty1()
           
 void testBadURIAsProperty1()
           
 void testBadURIAsProperty2()
           
 void testBug696057()
          This test checks that using a FileWriter works.
 void testDefaultNamespaceSysProp()
           
 void testDescriptionAsProperty()
           
 void testDoubleQuote()
           
 void testDuplicateNamespace()
           
 void testDuplicateNamespaceSysProp()
           
 void testDuplicatePrefix()
           
 void testDuplicatePrefixSysProp()
           
 void testDuplicatePrefixSysPropAndExplicit()
           
 void testEntityDeclaration()
           
 void testEntityUse()
           
 void testISO8859_1_DeclAbsent()
           
 void testISO8859_1_DeclPresent()
           
 void testLiAsProperty1()
           
 void testNoLiteral()
           
 void testNoTab()
           
 void testNullBaseWithAbbrev()
          Writing a model with the base URI set to null should not throw a nullpointer exception.
 void testPropertyURI()
           
 void testRDFDefaultNamespace()
           
 void testRDFNamespace()
           
 void testRelative()
           
 void testRelativeAPI()
           
 void testSingleQuote()
           
 void testStringDeclAbsent()
           
 void testStringDeclPresent()
           
 void testTab()
           
 void testUseDefaultNamespace()
           
 void testUseNamespace()
           
 void testUseNamespaceSysProp()
           
 void testUseUnusedNamespace()
           
 void testUTF16DeclAbsent()
           
 void testUTF16DeclPresent()
           
 void testUTF8DeclAbsent()
           
 void testUTF8DeclPresent()
           
 void testXMLBase()
           
 java.lang.String toString()
           
 
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

toString

public java.lang.String toString()
Overrides:
toString in class junit.framework.TestCase

SUPPRESSEDtestRelativeURI

public void SUPPRESSEDtestRelativeURI()

SUPPRESStestNoStripes

public void SUPPRESStestNoStripes()
                           throws java.io.IOException
Throws:
java.io.IOException

SUPPRESSEDtestBrokenPrefixing

public void SUPPRESSEDtestBrokenPrefixing()
                                   throws java.lang.Exception
Very specific test case to trap bug whereby a model which has a prefix j.0 defined (eg it was read in from a model we wrote out earlier) wants to allocate a new j.* prefix and picked j.0, BOOM.

Throws:
java.lang.Exception

testNullBaseWithAbbrev

public void testNullBaseWithAbbrev()
Writing a model with the base URI set to null should not throw a nullpointer exception.


testBug696057

public void testBug696057()
                   throws java.io.IOException
This test checks that using a FileWriter works. It used not to work for some encodings. The encoding used is the platform default encoding. Because this may be MacRoman, we have to suppress warning messages.

Throws:
java.io.IOException

testXMLBase

public void testXMLBase()
                 throws java.io.IOException
Throws:
java.io.IOException

testPropertyURI

public void testPropertyURI()
                     throws java.io.IOException
Throws:
java.io.IOException

testUseNamespace

public void testUseNamespace()
                      throws java.io.IOException
Throws:
java.io.IOException

testSingleQuote

public void testSingleQuote()
                     throws java.io.IOException
Throws:
java.io.IOException

testDoubleQuote

public void testDoubleQuote()
                     throws java.io.IOException
Throws:
java.io.IOException

testUseDefaultNamespace

public void testUseDefaultNamespace()
                             throws java.io.IOException
Throws:
java.io.IOException

testUseUnusedNamespace

public void testUseUnusedNamespace()
                            throws java.io.IOException
Throws:
java.io.IOException

testRDFNamespace

public void testRDFNamespace()
                      throws java.io.IOException
Throws:
java.io.IOException

testTab

public void testTab()
             throws java.io.IOException
Throws:
java.io.IOException

testNoTab

public void testNoTab()
               throws java.io.IOException
Throws:
java.io.IOException

testNoLiteral

public void testNoLiteral()
                   throws java.io.IOException
Throws:
java.io.IOException

testRDFDefaultNamespace

public void testRDFDefaultNamespace()
                             throws java.io.IOException
Throws:
java.io.IOException

testBadPrefixNamespace

public void testBadPrefixNamespace()
                            throws java.io.IOException
Throws:
java.io.IOException

testDuplicateNamespace

public void testDuplicateNamespace()
                            throws java.io.IOException
Throws:
java.io.IOException

testEntityDeclaration

public void testEntityDeclaration()
                           throws java.io.IOException
Throws:
java.io.IOException

testEntityUse

public void testEntityUse()
                   throws java.io.IOException
Throws:
java.io.IOException

testDuplicatePrefix

public void testDuplicatePrefix()
                         throws java.io.IOException
Throws:
java.io.IOException

testUseNamespaceSysProp

public void testUseNamespaceSysProp()
                             throws java.io.IOException
Throws:
java.io.IOException

testDefaultNamespaceSysProp

public void testDefaultNamespaceSysProp()
                                 throws java.io.IOException
Throws:
java.io.IOException

testDuplicateNamespaceSysProp

public void testDuplicateNamespaceSysProp()
                                   throws java.io.IOException
Throws:
java.io.IOException

testDuplicatePrefixSysProp

public void testDuplicatePrefixSysProp()
                                throws java.io.IOException
Throws:
java.io.IOException

testDuplicatePrefixSysPropAndExplicit

public void testDuplicatePrefixSysPropAndExplicit()
                                           throws java.io.IOException
Throws:
java.io.IOException

testUTF8DeclAbsent

public void testUTF8DeclAbsent()
                        throws java.io.IOException
Throws:
java.io.IOException

testUTF16DeclAbsent

public void testUTF16DeclAbsent()
                         throws java.io.IOException
Throws:
java.io.IOException

testUTF8DeclPresent

public void testUTF8DeclPresent()
                         throws java.io.IOException
Throws:
java.io.IOException

testUTF16DeclPresent

public void testUTF16DeclPresent()
                          throws java.io.IOException
Throws:
java.io.IOException

testISO8859_1_DeclAbsent

public void testISO8859_1_DeclAbsent()
                              throws java.io.IOException
Throws:
java.io.IOException

testISO8859_1_DeclPresent

public void testISO8859_1_DeclPresent()
                               throws java.io.IOException
Throws:
java.io.IOException

testStringDeclAbsent

public void testStringDeclAbsent()
                          throws java.io.IOException
Throws:
java.io.IOException

testStringDeclPresent

public void testStringDeclPresent()
                           throws java.io.IOException
Throws:
java.io.IOException

checkPropURI

public void checkPropURI(java.lang.String s,
                         java.lang.String p,
                         java.lang.Object val,
                         int behaviour)
                  throws java.io.IOException
Throws:
java.io.IOException

testBadURIAsProperty1

public void testBadURIAsProperty1()
                           throws java.io.IOException
Throws:
java.io.IOException

testBadURIAsProperty2

public void testBadURIAsProperty2()
                           throws java.io.IOException
Throws:
java.io.IOException

testLiAsProperty1

public void testLiAsProperty1()
                       throws java.io.IOException
Throws:
java.io.IOException

testDescriptionAsProperty

public void testDescriptionAsProperty()
                               throws java.io.IOException
Throws:
java.io.IOException

testBadProperty1

public void testBadProperty1()
                      throws java.io.IOException
Throws:
java.io.IOException

testRelativeAPI

public void testRelativeAPI()

testRelative

public void testRelative()
                  throws java.lang.Exception
Throws:
java.lang.Exception

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Throws:
java.lang.Exception


Copyright ? 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Hewlett-Packard Development Company, LP