Example usage for org.eclipse.jdt.core.tests.util Util displayString

List of usage examples for org.eclipse.jdt.core.tests.util Util displayString

Introduction

In this page you can find the example usage for org.eclipse.jdt.core.tests.util Util displayString.

Prototype

public static String displayString(String inputString, int indent) 

Source Link

Document

Generate a display string from the given String.

Usage

From source file:org.eclipse.objectteams.otdt.tests.ModifyingResourceTests.java

License:Open Source License

protected void assertElementDescendants(String message, String expected, IJavaElement element)
        throws CoreException {
    String actual = expandAll(element);
    if (!expected.equals(actual)) {
        System.out.println(Util.displayString(actual, 4));
    }/* w w w .ja  va  2 s . co  m*/
    assertEquals(message, expected, actual);
}