A simple test case

import java.io.*;
import javax.xml.parsers.*;
import org.custommonkey.xmlunit.*;
import org.xml.sax.*;

public class SimpleTest extends XMLTestCase {

  public void testHelloWorld() 
    throws SAXException, IOException, ParserConfigurationException {
   
    String expected = "<GREETING>Hello World!</GREETING>";
    String actual = "<GREETING>Hello World!</GREETING>";
    assertXMLEqual(expected, actual);
    
  }

}

Previous | Next | Top | Cafe con Leche

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