Examples of AssumptionViolatedException


Examples of org.junit.internal.AssumptionViolatedException

   * Assume a minimum {@link JavaVersion} is running.
   * @param version the minimum version for the test to run
   */
  public static void atLeast(JavaVersion version) {
    if (!JavaVersion.runningVersion().isAtLeast(version)) {
      throw new AssumptionViolatedException("Requires JDK " + version + " but running "
          + JavaVersion.runningVersion());
    }
  }
View Full Code Here

Examples of org.junit.internal.AssumptionViolatedException

   * Assume that a particular {@link TestGroup} has been specified.
   * @param group the group that must be specified.
   */
  public static void group(TestGroup group) {
    if (!GROUPS.contains(group)) {
      throw new AssumptionViolatedException("Requires unspecified group " + group
          + " from " + GROUPS);
    }
  }
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.