Package org.uddi4j.response

Examples of org.uddi4j.response.BusinessDetail


  public static BusinessEntity getBusinessByKey(UDDIProxy proxy, String key)
    throws TransportException, UDDIException
  {
    BusinessEntity result = null;

    BusinessDetail bd = proxy.get_businessDetail(key);

    if (bd != null)
    {
      Vector v = bd.getBusinessEntityVector();

      if (v != null && v.size() > 0)
      {
        result = (BusinessEntity) v.firstElement();
      }
View Full Code Here


*/

public class TestFindBusiness extends UDDITestBase
{
  public void testSortByNameDesc() {
    BusinessDetail busDetail = null;
    try {
      BusinessEntity bEntity = new BusinessEntity();
      bEntity.setDefaultName(new Name("ABC"));
      Vector busVector = new Vector();
      busVector.add(bEntity);
View Full Code Here

    }
    return true;
  }

  public void testExactMatch() {
    BusinessDetail busDetail = null;

    try {
      BusinessEntity bEntity = new BusinessEntity();
      Name name = new Name("BadBoysGetSpanked");
      bEntity.setDefaultName(name);
View Full Code Here

    }
    return true;
  }

  public void testCaseSensitiveMatch() {
    BusinessDetail busDetail = null;
    try {
      // create the business CaseSensitive
      BusinessEntity bEntity = new BusinessEntity();
      Name name = new Name("casesensitive");
      bEntity.setDefaultName(name);
View Full Code Here

    be.setIdentifierBag(idBag);
    CategoryBag catBag = _createCategoryBag();
    be.setCategoryBag(catBag);
    entities.addElement(be);
    try {
      BusinessDetail businessDetail = proxy.save_business(token.getAuthInfoString(), entities);
      Vector businessEntities = businessDetail.getBusinessEntityVector();
      _animalBusinessEntity = (BusinessEntity)(businessEntities.elementAt(0));
      ret = true;
    }
    catch (TransportException ex) {
      /**
 
View Full Code Here

    Vector busVector = new Vector();
    busVector.add(bEntity);

    Vector victor = null;
    try {
      BusinessDetail busDetail = proxy.save_business(token.getAuthInfoString(),
          busVector);
      victor = busDetail.getBusinessEntityVector();
      assertEquals(victor.size(), 1);
    }
    catch (TransportException ex) {
      fail(ex.toString());
      return;
View Full Code Here

public class TestSaveBusiness extends UDDITestBase {

  public void testSaveMultipleBusiness() {

    BusinessDetail busDetail = null;
    try {
      BusinessEntity bEntity = new BusinessEntity();
      bEntity.setDefaultName(new Name("ABC"));
      Vector busVector = new Vector();
      busVector.add(bEntity);

      bEntity = new BusinessEntity();
      bEntity.setDefaultName(new Name("CDE"));
      busVector.add(bEntity);

      busDetail = proxy.save_business(token.getAuthInfoString(), busVector);
      Vector victor = busDetail.getBusinessEntityVector();
      assertEquals(victor.size(),2);
    }
    catch (UDDIException ex) {
      fail(ex.toString());
    }
View Full Code Here

   * possible bug reported 5/22/03, by
   * Ralph M�ller <ram77@gmx.de>, but can't reproduce
   * @return
   */
  public void testSaveBusinessMultipleNames() {
    BusinessDetail busDetail = null;

    try {
      BusinessEntity bEntity = new BusinessEntity();
      Vector names = new Vector();
      names.addElement(new Name("AuthInfo1"));
      names.addElement(new Name("AuthInfo2"));
      bEntity.setNameVector(names);

      Vector busVector = new Vector();
      busVector.add(bEntity);

      busDetail = proxy.save_business(token.getAuthInfoString(), busVector);
      Vector victor = busDetail.getBusinessEntityVector();
      assertEquals(victor.size(),1);
    }
    catch (UDDIException ex) {
      fail(ex.toString());
    }
View Full Code Here

TOP

Related Classes of org.uddi4j.response.BusinessDetail

Copyright © 2018 www.massapicom. 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.