Package org.eclipse.swtbot.swt.finder.exceptions

Examples of org.eclipse.swtbot.swt.finder.exceptions.AssertionFailedException


   * @param object the value to test
   * @param message the message to include in the exception
   */
  public static void isNotNull(Object object, Object message) {
    if (object == null)
      throw new AssertionFailedException("null argument: " + message); //$NON-NLS-1$
  }
View Full Code Here


   * @param expression the outcode of the check
   * @param message the message to include in the exception
   */
  public static void isTrue(boolean expression, Object message) {
    if (!expression)
      throw new AssertionFailedException("assertion failed: " + message); //$NON-NLS-1$
  }
View Full Code Here

   * @param object the value to test
   * @param message the message to include in the exception
   */
  public static void isNotNull(Object object, Object message) {
    if (object == null)
      throw new AssertionFailedException("null argument: " + message); //$NON-NLS-1$
  }
View Full Code Here

   * @param expression the outcode of the check
   * @param message the message to include in the exception
   */
  public static void isTrue(boolean expression, Object message) {
    if (!expression)
      throw new AssertionFailedException("assertion failed: " + message); //$NON-NLS-1$
  }
View Full Code Here

   * @param message the message to include in the exception
   */
  public static void isNotEmpty(Object... toCheck) {
    Assert.isNotNull(toCheck);
    if (toCheck.length == 0) {
      throw new AssertionFailedException("List cannot be empty or null.");
    }
  }
View Full Code Here

TOP

Related Classes of org.eclipse.swtbot.swt.finder.exceptions.AssertionFailedException

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.