Package ch.powerunit.exception

Examples of ch.powerunit.exception.AssumptionError


   *
   * @param msg
   *            a message
   */
  default void skip(String msg) {
    throw new AssumptionError(msg);
  }
View Full Code Here


      matching.describeMismatch(obj, message);
      if (assertion) {
        throw new AssertionError((msg == null ? "" : msg + "\n")
            + message.toString());
      } else {
        throw new AssumptionError((msg == null ? "" : msg + "\n")
            + message.toString());
      }
    }
  }
View Full Code Here

    }
    if (assertion) {
      throw new AssertionError((msg == null ? "" : msg + "\n")
          + "An exception was expected, but none was thrown");
    } else {
      throw new AssumptionError((msg == null ? "" : msg + "\n")
          + "An exception was expected, but none was thrown");
    }
  }
View Full Code Here

                test -> {
                  Statement<TestContext<Object>, Throwable> stest;
                  if (test.getValue().isAnnotationPresent(
                      Ignore.class)) {
                    stest = p -> {
                      throw new AssumptionError(
                          "Test method is annotated with @Ignore");
                    };
                  } else {
                    Statement<TestContext<Object>, Throwable> itest = p -> {
                      Statement
View Full Code Here

     *
     * @param msg
     *            a message
     */
    default void skip(String msg) {
        throw new AssumptionError(msg);
    }
View Full Code Here

            matching.describeMismatch(obj, message);
            if (assertion) {
                throw new AssertionError((msg == null ? "" : msg + "\n")
                        + message.toString());
            } else {
                throw new AssumptionError((msg == null ? "" : msg + "\n")
                        + message.toString());
            }
        }
    }
View Full Code Here

        }
        if (assertion) {
            throw new AssertionError((msg == null ? "" : msg + "\n")
                    + "An exception was expected, but none was thrown");
        } else {
            throw new AssumptionError((msg == null ? "" : msg + "\n")
                    + "An exception was expected, but none was thrown");
        }
    }
View Full Code Here

                                test -> {
                                    Statement<TestContext<Object>, Throwable> stest;
                                    if (test.getValue().isAnnotationPresent(
                                            Ignore.class)) {
                                        stest = p -> {
                                            throw new AssumptionError(
                                                    "Test method is annotated with @Ignore");
                                        };
                                    } else {
                                        Statement<TestContext<Object>, Throwable> itest = p -> {
                                            Statement
View Full Code Here

TOP

Related Classes of ch.powerunit.exception.AssumptionError

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.