Examples of GuiLazyLoadingDescription


Examples of org.fest.swing.edt.GuiLazyLoadingDescription

    super(description(c));
    this.c = c;
  }

  private static @Nonnull Description description(final @Nonnull Component c) {
    return new GuiLazyLoadingDescription() {
      @Override
      protected @Nonnull String loadDescription() {
        return concat(format(c), " to be enabled");
      }
    };
View Full Code Here

Examples of org.fest.swing.edt.GuiLazyLoadingDescription

  public void requireFocused(@Nonnull Component c) {
    assertThat(hasFocus(c)).as(requiredFocusedErrorMessage(c)).isTrue();
  }

  private static @Nonnull Description requiredFocusedErrorMessage(final Component c) {
    return new GuiLazyLoadingDescription() {
      @Override
      protected @Nonnull String loadDescription() {
        return String.format("Expected component %s to have input focus", format(c));
      }
    };
View Full Code Here

Examples of org.fest.swing.edt.GuiLazyLoadingDescription

   * @see ComponentFormatter
   * @see Formatting#format(Component)
   */
  @RunsInEDT
  public static @Nonnull Description propertyName(final @Nonnull Component c, final @Nonnull String propertyName) {
    return new GuiLazyLoadingDescription() {
      @Override
      protected @Nonnull String loadDescription() {
        return String.format("%s - property:'%s'", format(c), propertyName);
      }
    };
View Full Code Here

Examples of org.fest.swing.edt.GuiLazyLoadingDescription

      }
    }, timeout);
  }

  private static Description untilValueIsEqualTo(final @Nonnull JProgressBar progressBar, final int expected) {
    return new GuiLazyLoadingDescription() {
      @Override
      protected @Nonnull String loadDescription() {
        return String.format("value of %s to be equal to %d", format(progressBar), expected);
      }
    };
View Full Code Here

Examples of org.fest.swing.edt.GuiLazyLoadingDescription

      }
    }, timeout);
  }

  private static Description untilIsDeterminate(final @Nonnull JProgressBar progressBar) {
    return new GuiLazyLoadingDescription() {
      @Override protected @Nonnull String loadDescription() {
        return format(progressBar) + " to be in determinate mode";
      }
    };
  }
View Full Code Here

Examples of org.fest.swing.edt.GuiLazyLoadingDescription

  public void requireFocused(Component c) {
    assertThat(hasFocus(c)).as(requiredFocusedErrorMessage(c)).isTrue();
  }

  private static Description requiredFocusedErrorMessage(final Component c) {
    return new GuiLazyLoadingDescription() {
      protected String loadDescription() {
        return concat("Expected component ", format(c), " to have input focus");
      }
    };
  }
View Full Code Here

Examples of org.fest.swing.edt.GuiLazyLoadingDescription

   * @see ComponentFormatter
   * @see Formatting#format(Component)
   */
  @RunsInEDT
  public static Description propertyName(final Component c, final String propertyName) {
    return new GuiLazyLoadingDescription() {
      protected String loadDescription() {
        return concat(format(c), " - property:", quote(propertyName));
      }
    };
  }
View Full Code Here

Examples of org.fest.swing.edt.GuiLazyLoadingDescription

    super(description(c));
    this.c = c;
  }

  private static Description description(final Component c) {
    return new GuiLazyLoadingDescription() {
      protected String loadDescription() {
        return concat(format(c), " to be enabled");
      }
    };
  }
View Full Code Here

Examples of org.fest.swing.edt.GuiLazyLoadingDescription

      }
    }, timeout);
  }

  private static Description untilValueIsEqualTo(final JProgressBar progressBar, final int expected) {
    return new GuiLazyLoadingDescription() {
      protected String loadDescription() {
        return concat("value of ", format(progressBar), " to be equal to ", expected);
      }
    };
  }
View Full Code Here

Examples of org.fest.swing.edt.GuiLazyLoadingDescription

      }
    }, timeout);
  }

  private static Description untilIsDeterminate(final JProgressBar progressBar) {
    return new GuiLazyLoadingDescription() {
      protected String loadDescription() {
        return concat(format(progressBar), " to be in determinate mode");
      }
    };
  }
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.