FileDocCategorySizeDatePackage
TestProduct2_Service.javaAPI DocExample938Tue Oct 09 11:03:40 BST 2001com.ecerami.test.soap

TestProduct2_Service

public class TestProduct2_Service extends TestCase

Fields Summary
Constructors Summary
public TestProduct2_Service(String name)

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

      ProductClient2 client = new ProductClient2();
      ProductBean product = client.getProduct("A358185");
      assertEquals ("Red Hat Linux", product.getName());
      assertEquals ("Red Hat Linux Operating System", product.getDescription());
      assertEquals (54.99, product.getPrice(), 0.0);

      try {
        product = client.getProduct("AA");
        fail ("ProductException should have been thrown.");
      } catch (ProductNotFoundException e) {
      }