Package com.fasterxml.jackson.module.jsonSchema.failing

Examples of com.fasterxml.jackson.module.jsonSchema.failing.TestUnwrapping$Name


    }
    assertEquals(names1.size(), names2.size());
    Iterator<Name> names1Itr = names1.iterator();
    Iterator<Name> names2Itr = names2.iterator();
    while (names1Itr.hasNext()) {
      Name name1 = names1Itr.next();
      Name name2 = names2Itr.next();
      assertEquals(name1.getLang(), name2.getLang());
      assertEquals(name1.getValue(), name2.getValue());
    }
  }
View Full Code Here


      //service
      String lang = "en"; //default to english
      if (uddiService.lang()!=null) {
        lang = uddiService.lang();
      }
      Name name = new Name();
      name.setLang(lang);
      service.setBusinessKey(TokenResolver.replaceTokens(uddiService.businessKey(),properties));
      service.setServiceKey(TokenResolver.replaceTokens(uddiService.serviceKey(),properties));
      if (!"".equals(uddiService.serviceName())) {
        name.setValue(TokenResolver.replaceTokens(uddiService.serviceName(),properties));
      } else if (webServiceAnnotation!=null && !"".equals(webServiceAnnotation.serviceName())) {
        name.setValue(webServiceAnnotation.serviceName());
      } else {
        name.setValue(clazz.getSimpleName());
      }
      service.getName().add(name);
      Description description = new Description();
      description.setLang(lang);
      description.setValue(TokenResolver.replaceTokens(uddiService.description(),properties));
View Full Code Here

  }
  @Override
  protected void execute() throws Exception
 
    //Business name in English.
    Name name = new Name();
    name.setLang("en");
    name.setValue(businessName);
   
    //Business description in English.
    Description description = new Description();
    description.setLang("en");
    description.setValue(data.getText(2, 5, false));
View Full Code Here

   * @param lang
   * @return
   */
  public static Name generateName(String value, String lang)
  {
    Name name = new Name();
    name.setValue(value);
    if(lang != null)
      name.setLang(lang);
     
    return name;
  }
View Full Code Here

  @Override
  protected void postValidate() throws Exception
  {
    BusinessList businessList;
   
    Name name = new Name();
    name.setValue(businessEntity.getName().get(0).getValue());
    name.setLang(businessEntity.getName().get(0).getLang());
   
    FindBusiness findBusiness = new FindBusiness();
    findBusiness.getName().add(name);
   
    inqueryService = JUDDIServiceProvider.getInquiryService();
View Full Code Here

  {
    GeneralDataProvider data = GeneralDataProvider.getInstance();
    serviceName = data.getCountry(false);// retrieves random service name from country file
   
    //Name of the service in English.
    Name name = new Name();
    name.setLang("en");
    name.setValue(serviceName);

    //Description of the service in English.
    Description description = new Description();
    description.setLang("en");
    description.setValue(data.getText(1, false));
View Full Code Here

    if (body.getFindTModel()==null && body.getCategoryBag()==null &&
        ( body.getTModelBag()==null || body.getTModelBag().getTModelKey().size() == 0)
        && body.getName().size() == 0 && body.getBusinessKey() != null) {
      //support searching for all services for a business
      findQualifiers.setApproximateMatch(true);
      body.getName().add(new Name("%", null));
    }
    keysFound = FindServiceByNameQuery.select(em, findQualifiers, body.getName(), body.getBusinessKey(), keysFound);
   
    if (body.getTModelBag().getTModelKey().size()==0) body.setTModelBag(null);
    return keysFound;
View Full Code Here

   * different from the deleted business key.
   */
  @Override
  protected void postValidate() throws Exception
 
    Name name = serviceInfo.getName().get(0);
    String businessKey = serviceInfo.getBusinessKey();
    String serviceKey = serviceInfo.getServiceKey();
   
    FindService findService = new FindService();
    findService.getName().add(name);
View Full Code Here

    FindQualifiers findQualifiers = new FindQualifiers();
    findQualifiers.getFindQualifier().add("sortByNameDesc");
    findQualifiers.getFindQualifier().add("approximateMatch");

    int maxServ = 0;
    Name r = new Name();
    r.setLang("en");
    r.setValue(serviceToFind);
   
    FindService findService = new FindService();
    findService.setAuthInfo(authenticationToken.getAuthInfo());
    findService.getName().add(r);
    findService.setFindQualifiers(findQualifiers);
    findService.setMaxRows(maxServ);
   
    ServiceList serviceList = inquiryService.findService(findService);
    serviceInfos = serviceList.getServiceInfos();
   
    //ServiceInfo serviceInfo = null;
   
    //serviceInfo becomes the first service found?
    for (ServiceInfo si : serviceInfos.getServiceInfo())
    {
      if (serviceInfo == null)
      {
        serviceInfo = si;
      }
     
      Name _name = si.getName().get(0);
      System.out.println("ServiceInfo #: " + _name.getValue());
    }

   
  }
View Full Code Here

      fb.setAuthInfo(token);
      org.uddi.api_v3.FindQualifiers fq = new org.uddi.api_v3.FindQualifiers();
      fq.getFindQualifier().add(UDDIConstants.APPROXIMATE_MATCH);

      fb.setFindQualifiers(fq);
      Name searchname = new Name();
      searchname.setValue(UDDIConstants.WILDCARD);
      fb.getName().add(searchname);
      BusinessList findBusiness = inquiry.findBusiness(fb);
      return findBusiness;

   }
View Full Code Here

TOP

Related Classes of com.fasterxml.jackson.module.jsonSchema.failing.TestUnwrapping$Name

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.