Here you can find the source of assertTrue(boolean condition, String message)
public static void assertTrue(boolean condition, String message)
//package com.java2s; /*//from w ww . jav a2 s.co m * #%L * JsInterop.xyz * %% * Copyright (C) 2015 Norbert S?ndor * %% * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * #L% */ public class Main { public static void assertTrue(boolean condition) { assertTrue(condition, null); } public static void assertTrue(boolean condition, String message) { if (!condition) { fail(message); } } public static void fail(String message) { throw new AssertionError(message); } }