FileDocCategorySizeDatePackage
Test_UDDI_Save_Business.javaAPI DocExample1161Tue Oct 09 11:03:40 BST 2001com.ecerami.test.uddi

Test_UDDI_Save_Business

public class Test_UDDI_Save_Business extends TestCase

Fields Summary
Constructors Summary
public Test_UDDI_Save_Business(String name)

         super(name);
     
Methods Summary
public voidtest_Save_and_Delete_Business()
Tests Save then Delete Business Service

      boolean businessKeyFlag = false;

      //  First, save Business
      AuthToken token = UDDIUtil.get_authentication_token("cerami@cs.nyu.edu", "coldswan");;
      saveBusiness publish = new saveBusiness (token);
      String businessKey = publish.save_business();
      if (businessKey.length() > 0)
        businessKeyFlag = true;
      assertEquals (true, businessKeyFlag);

      //  Then, delete Business
      deleteBusiness publish2 = new deleteBusiness (token);
      DispositionReport dr = publish2.delete_business(businessKey);
      assertEquals ("E_success", dr.getErrCode());