The list of methods to do Assert True are organized into topic(s).
void
assertTrue(boolean b) Throws an internal error if condition is not true.
if (!b) {
newInternal("assert failed");
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);
...