Examples of BusinessEntity


Examples of org.uddi.api_v3.BusinessEntity

    getAuthenticationToken.run();
   
    //Get the AuthToken
    AuthToken authToken= getAuthenticationToken.getAuthenticationToken();
   
    BusinessEntity businessEntity;
   
    // If there are no businesses in the data pool submit one with a rate of 100
    // to ensure that it will be entered
    if(dataPool.getSize() <= 10)
    {
View Full Code Here

Examples of org.uddi.api_v3.BusinessEntity

       
    }
    else
    {
      //Get a business entity from the pool.
      BusinessEntity businessEntity= dataPool.getDataElement();
     
      if (businessEntity == null)
      {
        //Pick a company name from a previously generated list of business names.
        String businessName = data.getCompany(false);
       
        //Register the business with services
        RegisterBusinessFlow registerBusinessFlow = new RegisterBusinessFlow(getAuthenticationToken.getAuthenticationToken(),
            businessName, numberOfBusinessService);
       
        Thread.sleep(4000);
       
        //Add the returnThread.sleep(8000);ed BusinessEntity to the data pool.
        dataPool.add(registerBusinessFlow.getBusinessDetail().getBusinessEntity().get(0), 100);
      }
      else
      {
        //Find the random business by passing it's name and the AuthToken.
        FindBusinessByName findBusinessByName = new FindBusinessByName(getAuthenticationToken.getAuthenticationToken(),
            businessEntity.getName().get(0).getValue());
        findBusinessByName.run();
       
        //Offer the business entity back to the pool with 50% chance that it will be rejected
        //if the pool is full.
        dataPool.add(businessEntity);
View Full Code Here

Examples of org.uddi.api_v3.BusinessEntity

      if (busDetail == null)
        Assert.fail("No result from getSubscriptionResults operation");
      List<BusinessEntity> beList = busDetail.getBusinessEntity();
      if (beList == null || beList.size() == 0)
        Assert.fail("No result from getSubscriptionResults operation");
      BusinessEntity beOut = beList.get(0);
     
      BusinessEntity beIn = (BusinessEntity)EntityCreator.buildFromDoc(TckBusiness.SAM_BUSINESS_XML, "org.uddi.api_v3");

      assertEquals(beIn.getBusinessKey(), beOut.getBusinessKey());
     
      TckValidator.checkNames(beIn.getName(), beOut.getName());
      TckValidator.checkDescriptions(beIn.getDescription(), beOut.getDescription());
      TckValidator.checkDiscoveryUrls(beIn.getDiscoveryURLs(), beOut.getDiscoveryURLs());
      TckValidator.checkContacts(beIn.getContacts(), beOut.getContacts());
      TckValidator.checkCategories(beIn.getCategoryBag(), beOut.getCategoryBag());
     
      List<KeyBag> keyBagList = result.getKeyBag();
      if (keyBagList == null || keyBagList.size() == 0)
        Assert.fail("No keyBag from SamSyndicator getSubscriptionResults operation");
      KeyBag keyBag = keyBagList.get(0);
View Full Code Here

Examples of org.uddi4j.datatype.business.BusinessEntity

   *         an error condition.
   */
  public static BusinessEntity getBusinessByKey(UDDIProxy proxy, String key)
    throws TransportException, UDDIException
  {
    BusinessEntity result = null;

    BusinessDetail bd = proxy.get_businessDetail(key);

    if (bd != null)
    {
View Full Code Here

Examples of org.uddi4j.datatype.business.BusinessEntity

      serviceKey = bindingTemplate.getServiceKey();
      BusinessService service =
        UDDIUtils.getBusinessServiceByKey(this.validator.uddiProxy, serviceKey);

      businessKey = service.getBusinessKey();
      BusinessEntity business =
        UDDIUtils.getBusinessByKey(this.validator.uddiProxy, businessKey);

      validService = checkCategoryBag(this.validator.uddiProxy, service.getCategoryBag());
      validBusiness = checkCategoryBag(this.validator.uddiProxy, business.getCategoryBag());

      if (!validBusiness || !validService)
      {
        result = AssertionResult.RESULT_FAILED;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.