Here you can find the source of assertTrue(final String message, final boolean condition)
public static void assertTrue(final String message, final boolean condition)
//package com.java2s; //License from project: LGPL public class Main { public static void assertTrue(final String message, final boolean condition) { if (!condition) { fail(message);/* ww w.j a v a2s . co m*/ } } 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); } }