Examples of appendText()


Examples of org.hamcrest.StringDescription.appendText()

   */
  public static <T> void that(T actual, Matcher<T> matcher, String message) {
    if (!matcher.matches(actual)) {
      Description description = new StringDescription();
      if (message != null && message.length() > 0) {
        description.appendText(message).appendText(" - ");
      }
      description.appendValue(actual).appendText(" must be ");
      matcher.describeTo(description);
      throw new IllegalStateException(matcher.toString());
    }
View Full Code Here

Examples of org.hamcrest.StringDescription.appendText()

   * @param matcher the matcher
   */
  public static <T> void assertThat(String reason, T actual, Matcher<T> matcher) {
    if (!matcher.matches(actual)) {
      Description description = new StringDescription();
      description.appendText(reason);
      description.appendText("\nExpected: ");
      description.appendDescriptionOf(matcher);
      if (describeMismatchMethod != null) {
        description.appendText("\n     but: ");
        // matcher.describeMismatch(actual, description);
View Full Code Here

Examples of org.hamcrest.StringDescription.appendText()

   */
  public static <T> void assertThat(String reason, T actual, Matcher<T> matcher) {
    if (!matcher.matches(actual)) {
      Description description = new StringDescription();
      description.appendText(reason);
      description.appendText("\nExpected: ");
      description.appendDescriptionOf(matcher);
      if (describeMismatchMethod != null) {
        description.appendText("\n     but: ");
        // matcher.describeMismatch(actual, description);
        ReflectionUtils.invokeMethod(describeMismatchMethod, matcher, actual, description);
View Full Code Here

Examples of org.hamcrest.StringDescription.appendText()

      Description description = new StringDescription();
      description.appendText(reason);
      description.appendText("\nExpected: ");
      description.appendDescriptionOf(matcher);
      if (describeMismatchMethod != null) {
        description.appendText("\n     but: ");
        // matcher.describeMismatch(actual, description);
        ReflectionUtils.invokeMethod(describeMismatchMethod, matcher, actual, description);
      }
      else {
        description.appendText("\n     got: ");
View Full Code Here

Examples of org.hamcrest.StringDescription.appendText()

        description.appendText("\n     but: ");
        // matcher.describeMismatch(actual, description);
        ReflectionUtils.invokeMethod(describeMismatchMethod, matcher, actual, description);
      }
      else {
        description.appendText("\n     got: ");
        description.appendValue(actual);
        description.appendText("\n");
      }
      throw new AssertionError(description.toString());
    }
View Full Code Here

Examples of org.joda.time.format.DateTimeFormatterBuilder.appendText()

  }

  public static DateTimeFormatter buildDateTimeFormatter(DateTimeFieldType... dateTimeFieldTypes) {
    DateTimeFormatterBuilder b = new DateTimeFormatterBuilder();
    for (DateTimeFieldType dt : dateTimeFieldTypes) {
      b.appendText(dt);
    }
    return b.toFormatter();
  }
}
View Full Code Here

Examples of org.jsoup.nodes.Element.appendText()

    if (!m.matches()) {
      throw new DownloadFailedException(PbnTools.getStr(
        "tourDown.error.unrecognizedContract", d.getNumber(), sBboResult));
    }
    Element contractElem = m_doc.createElement("p");
    contractElem.appendText(m.group(1));
    processContract(d, contractElem);
    d.setDeclarer(Deal.person(m.group(2)));
    processResult(d, m.group(3));
  } //}}}
View Full Code Here

Examples of org.mt4j.components.visibleComponents.widgets.MTTextArea.appendText()

    comp.setStrokeWeight(1);
    comp.setStrokeColor(new MTColor(r, g, b, 200));
    comp.unregisterAllInputProcessors(); //Dont process input/gestures on this component
   
    MTTextArea text = new MTTextArea(app, font);
    text.appendText(new Integer(id).toString());
    text.setFillColor(new MTColor(0, 0, 0, 0));
    text.setStrokeColor(new MTColor(0, 0, 0, 0));
    text.unregisterAllInputProcessors();
    comp.addChild(text);
    text.setPositionRelativeToParent(comp.getCenterPointLocal());
View Full Code Here

Examples of org.openntf.domino.RichTextItem.appendText()

      logDoc.replaceItemValue("LogAgentStartTime", getStartTime());

      if (getErrDoc() != null) {
        docDb = getErrDoc().getParentDatabase();
        rtitem = logDoc.createRichTextItem("LogDocInfo");
        rtitem.appendText("The document associated with this event is:");
        rtitem.addNewLine(1);
        rtitem.appendText("Server: " + docDb.getServer());
        rtitem.addNewLine(1);
        rtitem.appendText("Database: " + docDb.getFilePath());
        rtitem.addNewLine(1);
View Full Code Here

Examples of org.openstreetmap.josm.tools.template_engine.TemplateEntry.appendText()

        else {
            TemplateEntryProperty property = getTextTemplate();
            if (property.getUpdateCount() != textVersion) {
                TemplateEntry templateEntry = property.get();
                StringBuilder sb = new StringBuilder();
                templateEntry.appendText(sb, this);

                cachedText = sb.toString();
                textVersion = property.getUpdateCount();
            }
            return cachedText;
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.