Esempio n. 1
0
 /**
  * Throws always an AssertException with the given message. Use this method for code segments
  * which are not expected to be reached.
  *
  * @param msg message for exception
  */
 public static void notReached(String msg) {
   verify(false, msg);
 }
Esempio n. 2
0
 /**
  * Checks if the given condition is true. if it is, nothing happens and the method returns without
  * any action. Otherwise an AssertException is thrown.
  *
  * @param b result of verify
  */
 public static void verify(boolean b) {
   verify(b, "Assertion failed"); // $NON-NLS-1$
 }