FileDocCategorySizeDatePackage
TestProductXML_Service.javaAPI DocExample867Tue Oct 09 11:03:40 BST 2001com.ecerami.test.soap

TestProductXML_Service

public class TestProductXML_Service extends TestCase

Fields Summary
Constructors Summary
public TestProductXML_Service(String name)

         super(name);
     
Methods Summary
public voidtestProductXML()
Tests Product Service

      ProductXMLClient client = new ProductXMLClient();
      Element product = client.getProduct("A358185");
      DOM2Writer domWriter = new DOM2Writer();
      String xml = domWriter.nodeToString(product);
      assertEquals ("<product sku=\"A358185\"><name>Red Hat Linux</name>"+
        "<description>Red Hat Linux Operating System</description><price>54.99</price></product>",
        xml);