FileDocCategorySizeDatePackage
Test_UDDI_Get_Business_Detail.javaAPI DocExample1580Tue Oct 09 11:03:40 BST 2001com.ecerami.test.uddi

Test_UDDI_Get_Business_Detail

public class Test_UDDI_Get_Business_Detail extends TestCase

Fields Summary
Constructors Summary
public Test_UDDI_Get_Business_Detail(String name)

         super(name);
     
Methods Summary
public voidtestGetBusinessDetail()
Tests Get Business Detail

      getBusinessDetail inquiry = new getBusinessDetail();;
      BusinessDetail businessDetail = inquiry.getBusinessDetail("0076b468-eb27-42e5-ac09-9955cff462a3");
      Vector businessEntityVector = businessDetail.getBusinessEntityVector();
      for (int i=0; i<businessEntityVector.size(); i++) {
        BusinessEntity businessEntity =
          (BusinessEntity) businessEntityVector.elementAt(i);
        String name = businessEntity.getNameString();
        String description = businessEntity.getDefaultDescriptionString();
        if (i==0) {
          assertEquals ("Microsoft Corporation", name);
          assertEquals ("Empowering people through great software - "+
            "any time, any place and on any device is Microsofts vision. "+
            "As the worldwide leader in software for personal and business "+
            "computing, we strive to produce innovative products and services "+
            "that meet our customer's", description);
        }
      }