Here you can find the source of assertFailed(Object expression, Object message)
public static void assertFailed(Object expression, Object message)
//package com.java2s; public class Main { public static void assertFailed(Object expression, Object message) { if (message == null || "".equals(message)) { throw new AssertionError("Expression: " + expression); } else {//from www . j a v a 2 s .c o m throw new AssertionError("" + message + ". Expression: " + expression); } } }