Examples of PDFField


Examples of com.canoo.webtest.plugins.pdftest.htmlunit.PDFField

              throw new StepFailedException("No checkbox field named '" + getName() + "' found.");
      }
      boolean regex = ConversionUtil.convertToBoolean(getRegex(), false);
      final IStringVerifier verifier = getVerifier(regex);
      for (final Iterator iter = fields.iterator(); iter.hasNext();) {
        final PDFField field = (PDFField) iter.next();
        if (!verifier.verifyStrings(getValue(), field.getValue()))
          throw new StepFailedException("Wrong checkbox field value", getValue(), field.getValue());
      }
    }
  }
View Full Code Here

Examples of com.canoo.webtest.plugins.pdftest.htmlunit.PDFField

    else
      fieldNames = new HashSet(); // removes duplicates
   
    for (final Iterator iter = fields.iterator(); iter.hasNext();)
    {
      final PDFField field = (PDFField) iter.next();
      fieldNames.add(field.getName());
    }
   
    if (fieldNames.size() != getCount())
    {
      throw new StepFailedException(buildFailureMessage(), getCount(), fieldNames.size());
View Full Code Here

Examples of com.canoo.webtest.plugins.pdftest.htmlunit.PDFField

   
    if (fields.isEmpty())
      throw new StepFailedException("No field found", this);
   
    for (final Iterator iter = fields.iterator(); iter.hasNext();) {
      final PDFField field = (PDFField) iter.next();
      if (field.isReadOnly() != getReadOnly())
      {
        final String msg = "Field with name >" + getName() + "< is " + (field.isReadOnly() ? "" : "not ")
          + "read-only!";
        throw new StepFailedException(msg, this);
      }
    }
  }
View Full Code Here

Examples of com.canoo.webtest.plugins.pdftest.htmlunit.PDFField

  private static final Map wrappers_ = new WeakHashMap();

  static public PDFField wrap(final PDField nativeField)
  {
    PDFField wrapperField = (PDFField) wrappers_.get(nativeField);
    if (wrapperField == null)
    {
      wrapperField = new PdfBoxPDFField(nativeField);
      wrappers_.put(nativeField, wrapperField);
    }
View Full Code Here

Examples of com.canoo.webtest.plugins.pdftest.htmlunit.PDFField

      else
      {
        final StringBuffer sb = new StringBuffer();
        for (final Iterator iter=availableFiels.iterator(); iter.hasNext();)
        {
          final PDFField field = (PDFField) iter.next();
          sb.append(field.getName());
          sb.append("\n");
        }
        sfe.addDetail("available fields", sb.toString());
      }
      throw sfe;
View Full Code Here

Examples of com.canoo.webtest.plugins.pdftest.htmlunit.PDFField

              throw new StepFailedException("No text field named '" + getName() + "' found.");
      }
      boolean regex = ConversionUtil.convertToBoolean(getRegex(), false);
      final IStringVerifier verifier = getVerifier(regex);
      for (final Iterator iter = fields.iterator(); iter.hasNext();) {
        final PDFField field = (PDFField) iter.next();
        if (!verifier.verifyStrings(getValue(), field.getValue()))
          throw new StepFailedException("Wrong field value", getValue(), field.getValue());
      }
    }
  }
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.