Here you can find the source of assertEqualsToStringBuilder(final StringBuilder errorMessageHolder, final String currentEM, final Object expected, final Object actual)
public static void assertEqualsToStringBuilder(final StringBuilder errorMessageHolder, final String currentEM, final Object expected, final Object actual)
//package com.java2s; //License from project: Open Source License public class Main { public static void assertEqualsToStringBuilder(final StringBuilder errorMessageHolder, final String currentEM, final Object expected, final Object actual) { if (expected == null) { if (actual != null) { errorMessageHolder.append(currentEM); errorMessageHolder.append(": "); errorMessageHolder.append("expected: <null>"); errorMessageHolder.append("but was: <"); errorMessageHolder.append(actual); errorMessageHolder.append(">\n"); }// www . j ava 2s . c o m } else { if (!expected.equals(actual)) { errorMessageHolder.append(currentEM); errorMessageHolder.append(": "); errorMessageHolder.append("expected: <"); errorMessageHolder.append(expected); errorMessageHolder.append('>'); errorMessageHolder.append("but was: <"); errorMessageHolder.append(actual); errorMessageHolder.append(">\n"); } } } }