Here you can find the source of assertNotNull(final String message, final Object object)
public static void assertNotNull(final String message, final Object object)
//package com.java2s; //License from project: LGPL public class Main { public static void assertNotNull(final String message, final Object object) { assertTrue(message, object != null); }/* w ww . j a v a 2 s . c om*/ public static void assertNotNull(final Object object) { assertNotNull(null, object); } public static void assertTrue(final String message, final boolean condition) { if (!condition) { fail(message); } } public static void assertTrue(final boolean condition) { assertTrue(null, condition); } public static void fail(final Object message) { if (message == null) { throw new AssertionError(); } throw new AssertionError(message); } }