FileDocCategorySizeDatePackage
Test_UDDI_FindBusiness.javaAPI DocExample1115Tue Oct 09 11:03:40 BST 2001com.ecerami.test.uddi

Test_UDDI_FindBusiness

public class Test_UDDI_FindBusiness extends TestCase

Fields Summary
Constructors Summary
public Test_UDDI_FindBusiness(String name)

         super(name);
     
Methods Summary
public voidtestFindBusiness()
Tests Find Business Service

      findBusiness inquiry = new findBusiness();
      Vector businessInfoVector = inquiry.findBusinessByName ("Microsoft");

      for (int i=0; i<businessInfoVector.size(); i++) {
          BusinessInfo businessInfo =
            (BusinessInfo) businessInfoVector.elementAt(i);
          String name = businessInfo.getNameString();
          String businessKey = businessInfo.getBusinessKey();
          if (i==0) {
            assertEquals ("Microsoft Corporation", name);
            assertEquals ("0076b468-eb27-42e5-ac09-9955cff462a3", businessKey);
          }
      }