ugo         2004/05/07 06:11:26

  Modified:    src/test/org/apache/cocoon/xml/dom DOMBuilderTestCase.java
  Log:
  Fixed testcase. The testcase was wrong, not the class under test.
  
  Revision  Changes    Path
  1.2       +5 -3      
cocoon-2.1/src/test/org/apache/cocoon/xml/dom/DOMBuilderTestCase.java
  
  Index: DOMBuilderTestCase.java
  ===================================================================
  RCS file: 
/home/cvs/cocoon-2.1/src/test/org/apache/cocoon/xml/dom/DOMBuilderTestCase.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- DOMBuilderTestCase.java   7 May 2004 10:47:14 -0000       1.1
  +++ DOMBuilderTestCase.java   7 May 2004 13:11:26 -0000       1.2
  @@ -39,7 +39,8 @@
       }
   
       /**
  -     * Test if two consecutive "characters" events result in the 
concatenation
  +     * Test if two consecutive "characters" events result in two text nodes
  +     * whose concatenation is equal to the concatenation
        * of the two strings (cfr. bug #26219).
        * 
        * @throws SAXException
  @@ -57,6 +58,7 @@
           builder.endDocument();
           Document dom = builder.getDocument();
           assertEquals("Content of root element not what expected", "ABCDEF", 
  -                dom.getDocumentElement().getFirstChild().getNodeValue());
  +                dom.getDocumentElement().getFirstChild().getNodeValue()
  +                + dom.getDocumentElement().getLastChild().getNodeValue());
       }
   }
  
  
  

Reply via email to