de.bsd.x2svg.test
Class TestDtdParsing

java.lang.Object
  extended by de.bsd.x2svg.test.TestDtdParsing

public class TestDtdParsing
extends java.lang.Object

Test parsing of DTDs

Author:
hwr@pilhuhn.de

Field Summary
private static java.lang.String BASEDIR
           
 
Constructor Summary
TestDtdParsing()
           
 
Method Summary
 void testDtdWithRecursion()
          Test a DTD that contains recursive elements.
 void testDtdWithRecursion2()
          Test a DTD that contains recursive elements.
 void testDtdWithRecursion3()
          Test a DTD that contains recursive elements and an AnonymousContainer
 void testSampleDtd()
          Test the simple dtd.
 void testWithAttributes()
           
 void testWithDepthLimit()
          Test if the parser can limit parsing of a DTD that is deeper than 1 level below to 1 level.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BASEDIR

private static final java.lang.String BASEDIR
See Also:
Constant Field Values
Constructor Detail

TestDtdParsing

public TestDtdParsing()
Method Detail

testSampleDtd

public void testSampleDtd()
                   throws java.lang.Exception
Test the simple dtd.

Throws:
java.lang.Exception - on any (assertion) error

testDtdWithRecursion

public void testDtdWithRecursion()
                          throws java.lang.Exception
Test a DTD that contains recursive elements.
<ELEMENT root (a|b)>
<ELEMENT a (a|b)>

Throws:
java.lang.Exception - on any (assertion) error

testDtdWithRecursion2

public void testDtdWithRecursion2()
                           throws java.lang.Exception
Test a DTD that contains recursive elements.
<ELEMENT root (a|b)>
<ELEMENT a (a|b)>

Throws:
java.lang.Exception - on any (assertion) error

testDtdWithRecursion3

public void testDtdWithRecursion3()
                           throws java.lang.Exception
Test a DTD that contains recursive elements and an AnonymousContainer

Throws:
java.lang.Exception - on any (assertion) error

testWithDepthLimit

public void testWithDepthLimit()
                        throws java.lang.Exception
Test if the parser can limit parsing of a DTD that is deeper than 1 level below to 1 level.

Throws:
java.lang.Exception - on any (assertion) error

testWithAttributes

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


x2svg version 1.2.1