Equivalent to
assert (o != null) : msg;
962221
public static <T> T checkNonNull(T t, String msg) {
        if (t == null)
            error(msg);
        return t;
    }
295506
protected void dbg(String msg, Throwable t) {
        System.out.println(msg + (t != null ? ("\n" + t.getMessage()) : "")
                + (t != null ? ("\n" + t.getStackTrace()) : ""));
    }
586574
public static <T> T assertNotNull(T argument, String msg) {
        if (argument == null) throw new IllegalArgumentException(msg);
        return argument;
    }
195025
static public void assertEquals(String message, long expected, long actual) {
        assertEquals(message, Long.valueOf(expected), Long.valueOf(actual));
    }
241491
public static void assertTree(String message, String rootText, String preorder, Tree tree)
    {
        assertNotNull("tree should be non-null", tree);
        assertEquals(message + " (asserting type of root)", rootText, tree.getText());
        assertPreordered(message, preorder, tree);
    }
260207
def assert_ge(left, right, message=None, extra=None):
    """"""
    assert left >= right, _assert_fail_message(message, left, right, "<", extra)
843693
public static void assertNotEmpty(final String pstring, final String pmessage) {
    if (pstring == null || pstring.length() == 0) {
      throw new IllegalArgumentException(pmessage);
    }
  }
1191036
def assertNone(expr, message=None):
    
    if expr is not None:
        raise TestStepFail(
            format_message(message) if message is not None else "Assert: %s != None" % str(expr))
1110267
function notEqual(actual, expected, message) {
    if (actual != expected) {
      this.pass(message);
    }
    else {
      this.fail({
        actual: actual,
        expected: expected,
        message: message,
        operator: "!=",
      });
    }
  }
778323
public static void checkNotNull(Object o, String msg, int arg1) {
        if (o == null) {
            throwNullPointerEx(msg, arg1);
        }
    }
429606
function assert(actual, expected, message) {
  if (toString.call(expected) === '[object RegExp]' && expected.test(actual)) {
    return;
  } else if (eql(actual, expected)) {
    return;
  }

  var pad = Array(5).join(' ');
  var msg = message + '\n\n'
    + pad + 'Actual:   ' + inspect(actual) + '\n'
    + pad + 'Expected: ' + inspect(expected) + '\n';

  return new AssertionError(msg, {
    actual: actual,
    expected: expected,
    showDiff: assert.showDiff
  });
}
90963
public static <T> T assertNotNull(T object, ExceptionType exceptionType, String message, Object... args) {
        if (object == null) {
            if (exceptionType == null) {
                exceptionType = ExceptionType.ILLEGAL_ARGUMENT;
            }

            throw exceptionType.newInstance(getMessage(message, args,
                                                       "[Assertion failed] - the argument is required; it must not be null"));
        }

        return object;
    }
431270
public static void assertNull(Object object) {
		if (imp != null && object != null) {
			imp.assertFailed(StringUtils.format("Expected 'null' but was '%s'", object));
		}
	}
1316953
public static void assertFalse(boolean condition, String message, Object... args) {
		verify(!condition, message, args);
	}
1201479
public static Validation<String> notEmpty(String msg) {
        return SimpleValidation.from(s -> null != s && !s.isEmpty(), msg);
    }
493710
private void assertNotNull(Object value, String message) throws IllegalArgumentException {
        if (value == null) {
            throw new IllegalArgumentException(message);
        }
    }
652878
public static <T> T checkNonNull(T t, Supplier<String> msg) {
        if (t == null)
            error(msg.get());
        return t;
    }