title: JUnit: Is it possible to output multi-line messages in any of the assert functions?
body: <p>I tried to get a multi-line message when there's an assert. e.g. I have the following code:</p>
  
  <hr>
  
  <p>errLog = "ERROR! Account Name not found in result \n Expected Result: " + acctName + "\n" + "Actual Result: " + output + "\n"; </p>
  
  <p>assertTrue(errLog, output.contains(accountType));</p>
  
  <hr>
  
  <p><em>Where output is retrieved from the application during runtime and acctName is some data got passed in.</em>
  <p>
  The result I got is: <br>
  ERROR! Account Name not found in result   Expected Result: Name123 Actual Result: My name is Name456  type:junit.framework.AssertionFailedError
  <p>
  The result I expected is: <BR>
  ERROR! Account Name not found in result <br>
  Expected Result: Name123<BR>
  Actual Result: My name is Name456 <br>
  type:junit.framework.AssertionFailedError<br></p>
  
  <p>I've looked up everywhere online but it seemed like every example I read is only for output single line message. So, is it not possible to do multi-line messages using the existing assert functions? I know I can probably rewrite the assert function to accomodate what I need but as a newbie in JUnit, I guess it doesn't hurt to ask around first. <strong>Thanks in advance</strong></p>