Package org.uddi4j.response

Examples of org.uddi4j.response.BusinessList


      FindQualifiers findQualifiers = new FindQualifiers();
      Vector qualifier = new Vector();
      qualifier.add(new FindQualifier("sortByNameDesc"));
      findQualifiers.setFindQualifierVector(qualifier);

      BusinessList businessList = null;
      businessList = proxy.find_business(names, null, null, null, null,
                                         findQualifiers, 5);

      Vector victor = businessList.getBusinessInfos().getBusinessInfoVector();
      if (victor.size() !=3 ) {
        return false;
      }
      BusinessInfo info = (BusinessInfo)victor.elementAt(0);
      if (! ((BusinessInfo)victor.elementAt(0)).getDefaultNameString().equals("EFG")) {
View Full Code Here


      FindQualifiers findQualifiers = new FindQualifiers();
      Vector qualifier = new Vector();
      qualifier.add(new FindQualifier("exactNameMatch"));
      findQualifiers.setFindQualifierVector(qualifier);

      BusinessList businessList = null;

      businessList = proxy.find_business(names, null, null, null, null,
                                         findQualifiers, 5);

      if (businessList.getBusinessInfos().getBusinessInfoVector().size() != 0) {
        return false;
      }

      names.clear();
      names.add(new Name("BadBoysGetSpanked"));

      businessList = proxy.find_business(names, null, null, null, null,
                                         findQualifiers, 5);

      if (businessList.getBusinessInfos().getBusinessInfoVector().size() != 1) {
        return false;
      }

      /**
       * exact match, case insensitive
       */
      names.clear();
      names.add(new Name("badboysgetspanked"));

      businessList = proxy.find_business(names, null, null, null, null,
                                         findQualifiers, 5);

      if (businessList.getBusinessInfos().getBusinessInfoVector().size() != 1) {
        return false;
      }

      /**
       * exact match, case sensitive, negative
       */
      findQualifiers = new FindQualifiers();
      qualifier = new Vector();
      qualifier.add(new FindQualifier("exactNameMatch"));
      qualifier.add(new FindQualifier("caseSensitiveMatch"));
      findQualifiers.setFindQualifierVector(qualifier);

      names.clear();
      names.add(new Name("badboysgetspanked"));
      businessList = proxy.find_business(names, null, null, null, null,
                                         findQualifiers, 5);

      if (businessList.getBusinessInfos().getBusinessInfoVector().size() != 0) {
        return false;
      }

      /**
       * exact match, case sensitive, positive
       */
      names.clear();
      names.add(new Name("BadBoysGetSpanked"));
      businessList = proxy.find_business(names, null, null, null, null,
                                         findQualifiers, 5);

      if (businessList.getBusinessInfos().getBusinessInfoVector().size() != 1) {
        return false;
      }

    }
    catch (UDDIException ex) {
View Full Code Here

    FindQualifiers findQualifiers = new FindQualifiers();
    Vector qualifier = new Vector();
    qualifier.add(new FindQualifier("caseSensitiveMatch"));
    findQualifiers.setFindQualifierVector(qualifier);

    BusinessList businessList = proxy.find_business(names, null, null, null,null,findQualifiers,5);

    if (businessList.getBusinessInfos().getBusinessInfoVector().size() != 1) {
      return false;
    }

    names.clear();
    names.add(new Name("C"));
    businessList = proxy.find_business(names, null, null, null,null,findQualifiers,5);

    if (businessList.getBusinessInfos().getBusinessInfoVector().size() != 1) {
      return false;
    }
    businessList = proxy.find_business(names, null, null, null,null,null,5);

    if (businessList.getBusinessInfos().getBusinessInfoVector().size() != 2) {
      return false;
    }
    return true;
  }
View Full Code Here

TOP

Related Classes of org.uddi4j.response.BusinessList

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.