cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From step...@apache.org
Subject cvs commit: cocoon-2.1/src/test/org/apache/cocoon/xml/dom DOMBuilderStreamerTestCase.java
Date Tue, 22 Apr 2003 07:37:19 GMT
stephan     2003/04/22 00:37:19

  Modified:    src/test/org/apache/cocoon/xml/dom
                        DOMBuilderStreamerTestCase.java
  Log:
  Add test for obsolete xmlns attributes.
  
  Revision  Changes    Path
  1.2       +22 -1     cocoon-2.1/src/test/org/apache/cocoon/xml/dom/DOMBuilderStreamerTestCase.java
  
  Index: DOMBuilderStreamerTestCase.java
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/test/org/apache/cocoon/xml/dom/DOMBuilderStreamerTestCase.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- DOMBuilderStreamerTestCase.java	16 Apr 2003 13:10:00 -0000	1.1
  +++ DOMBuilderStreamerTestCase.java	22 Apr 2003 07:37:19 -0000	1.2
  @@ -147,6 +147,27 @@
           //assertXMLEqual(document, builder.getDocument());
       }
   
  +    /*public void testBuilderWithNSError()  throws Exception {
  +        AttributesImpl atts = new AttributesImpl();
  +
  +        DOMBuilder builder = new DOMBuilder();
  +
  +        try {
  +            builder.startDocument();
  +            builder.startPrefixMapping("bla", "http://xml.apache.org");
  +            atts.addAttribute( null, "bla", "xmlns:bla", "CDATA", "http://xml.apache.org");
  +            builder.startElement("http://xml.apache.org", "root", "bla:root", atts);
  +            builder.endElement("http://xml.apache.org", "root", "bla:root");
  +            builder.endPrefixMapping("bla");
  +            builder.endDocument();
  +
  +            fail("DOMBuilder should throw exception because of permitted attribute");
  +        } catch (Exception e) {
  +            // nothing
  +        }
  +    }*/
  +
  +
       public void testTestFacility() throws Exception {
           Document document = XMLUnit.getControlParser().newDocument();
           Element elemA = document.createElement("root");
  
  
  

Mime
View raw message