List of utility methods to do Assert True
void | assertTrue(boolean b) Throws an internal error if condition is not true. if (!b) { newInternal("assert failed"); |
void | assertTrue(boolean b, String msgTemplate, Object... params) assert True if (!b) { throw new IllegalArgumentException(getMsg("Assert fail: not true.", msgTemplate, params)); |
void | assertTrue(boolean condition) assert True assert condition;
|
void | assertTrue(boolean condition) assert True if (!condition) { throw new IllegalArgumentException(); |
void | assertTrue(boolean condition, String argName, String message) assert True if (!condition) { throw new IllegalArgumentException(argName + ": " + message); |
void | assertTrue(boolean condition, String message) Solleva una @link(IllegalArgumentException) con message message in caso di condition false if (!condition) { throw new IllegalArgumentException(message); |
void | assertTrue(boolean condition, String message) assert True if (!condition) {
fail(message);
|
void | assertTrue(boolean condition, String msg) Helper method to assert the condition is satisfied. if (!condition) { if (msg != null) { throw new RuntimeException(msg); } else { throw new RuntimeException(); |
void | assertTrue(boolean evalResult, Object... messages) assert True if (!evalResult) { StringBuilder buf = new StringBuilder(); for (Object message : messages) { buf.append(message.toString()); buf.append(", "); if (buf.length() > 0) { buf.setLength(buf.length() - 2); ... |
void | assertTrue(boolean express) assert True assertTrue(express, "[Assertion failed] - This expression must be true.");
|