Package org.junithelper.core.exception

Examples of org.junithelper.core.exception.JUnitHelperCoreException


    }
  }

  public void mustBeLessThanOrEqual(int arg, int upperLimit) {
    if (arg > upperLimit) {
      throw new JUnitHelperCoreException(name + " must not be less than or equal " + upperLimit + ".");
    }
  }
View Full Code Here


    }
  }

  public void mustBeGreaterThan(long arg, long lowerLimit) {
    if (arg <= lowerLimit) {
      throw new JUnitHelperCoreException(name + " must not be greater than " + lowerLimit + ".");
    }
  }
View Full Code Here

    }
  }

  public void mustBeGreaterThanOrEqual(long arg, long lowerLimit) {
    if (arg < lowerLimit) {
      throw new JUnitHelperCoreException(name + " must not be greater than or equal " + lowerLimit + ".");
    }
  }
View Full Code Here

    }
  }

  public void mustBeLessThan(long arg, long upperLimit) {
    if (arg >= upperLimit) {
      throw new JUnitHelperCoreException(name + " must not be less than " + upperLimit + ".");
    }
  }
View Full Code Here

    }
  }

  public void mustBeLessThanOrEqual(long arg, long upperLimit) {
    if (arg > upperLimit) {
      throw new JUnitHelperCoreException(name + " must not be less than or equal " + upperLimit + ".");
    }
  }
View Full Code Here

    }
  }

  public void mustBeGreaterThan(double arg, double lowerLimit) {
    if (arg <= lowerLimit) {
      throw new JUnitHelperCoreException(name + " must not be greater than " + lowerLimit + ".");
    }
  }
View Full Code Here

    }
  }

  public void mustBeGreaterThanOrEqual(double arg, double lowerLimit) {
    if (arg < lowerLimit) {
      throw new JUnitHelperCoreException(name + " must not be greater than or equal " + lowerLimit + ".");
    }
  }
View Full Code Here

    }
  }

  public void mustBeLessThan(double arg, double upperLimit) {
    if (arg >= upperLimit) {
      throw new JUnitHelperCoreException(name + " must not be less than " + upperLimit + ".");
    }
  }
View Full Code Here

    }
  }

  public void mustBeLessThanOrEqual(double arg, double upperLimit) {
    if (arg > upperLimit) {
      throw new JUnitHelperCoreException(name + " must not be less than or equal " + upperLimit + ".");
    }
  }
View Full Code Here

    private String name;

    private Assertion(String name) {
        if (name == null || name.length() == 0) {
            throw new JUnitHelperCoreException("assertion target name must not be empty.");
        }
        this.name = name;
    }
View Full Code Here

TOP

Related Classes of org.junithelper.core.exception.JUnitHelperCoreException

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.