Save This Page
Home » dom4j-1.6.1 » org.dom4j.dtd » [javadoc | source]
org.dom4j.dtd
public class: AttributeDeclTest [javadoc | source]
java.lang.Object
   junit.framework.TestCase
      org.dom4j.AbstractTestCase
         org.dom4j.dtd.AttributeDeclTest
Tests the AttributeDecl functionality. Tests each of the property access methods and the serialization mechanisms. Correct parsing is tested by DocTypeTest .

There are several key variations that need to be tested both here and in DocTypeTest , which is responsible for testing correct parsing of the DocumentType . Those variations include the different valueDefault and value variations so that we can test for correct acceptance and correct rejection of attribute declarations.

Nested Class Summary:
protected static class  AttributeDeclTest.MyTestAttributeDecl  Helper is useful since we are trying to exhaustively test the ATTLIST variations and their correct serialization. 
Fields inherited from org.dom4j.AbstractTestCase:
document
Method from org.dom4j.dtd.AttributeDeclTest Summary:
assertSameAttributeDecl,   main,   testCDataFixedValue,   testCDataNoneValue,   testIdImpliedNone
Methods from org.dom4j.AbstractTestCase:
assertDocumentsEqual,   assertNodesEqual,   assertNodesEqual,   assertNodesEqual,   assertNodesEqual,   assertNodesEqual,   assertNodesEqual,   assertNodesEqual,   assertNodesEqual,   assertNodesEqual,   assertNodesEqual,   assertNodesEqualContent,   getDocument,   getDocument,   getDocument,   getFile,   getRootElement,   log,   setUp
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.dom4j.dtd.AttributeDeclTest Detail:
 protected  void assertSameAttributeDecl(AttributeDeclTest.MyTestAttributeDecl expected,
    AttributeDecl actual) 
 public static  void main(String[] args) 
 public  void testCDataFixedValue() 
    Test
    
    <!ATTLIST foo bar CDATA #FIXED \"goo\">
    
    
    .
 public  void testCDataNoneValue() 
    Test
    
    <!ATTLIST foo bar CDATA "goo">
    
    
    .
 public  void testIdImpliedNone() 
    Test
    
    <!ATTLIST foo bar ID #IMPLIED>
    
    
    .