コード例 #1
0
ファイル: Assert.java プロジェクト: hdwkboy/jubula.core
 /**
  * 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);
 }
コード例 #2
0
ファイル: Assert.java プロジェクト: hdwkboy/jubula.core
 /**
  * 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$
 }