But this is not just a String comparison!


    public void testHelloWorld2() 
      throws SAXException, IOException, ParserConfigurationException {
     
        String expected = "<?xml version='1.0'?><GREETING >Hello World!</GREETING>";
        String actual = "<GREETING>Hello World!</GREETING>";
        assertXMLEqual(expected, actual);
        
    }

Previous | Next | Top | Cafe con Leche

Copyright 2005 Elliotte Rusty Harold
elharo@metalab.unc.edu
Last Modified August 17, 2005