groovy-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Deng, Lea" <Lea.D...@ccc.govt.nz>
Subject multiple line assertion comment
Date Wed, 13 Jan 2016 02:49:19 GMT
Hi,

I'm trying to display the comment for a failed assertion into multiple lines. But '\n' does
not work.
The comment for the failed assertion is still in one line in the test case logging.

Any suggestion would be appreciated.
Many thanks,
Lea

String comment = 'these items are NOT found in Pathway response: '+'\n'+ notFoundList.toString()
String comment1 = "  lea  "
assert notFoundList.isEmpty(),comment


  *   -> java.lang.AssertionError: these items are NOT found in Pathway response: [leaMockUpCode,
another mock up decision, NOTPAP, Publicly notified at applicant's request, leaMadeUp, lea
mock decision]. Expression: notFoundList.isEmpty()




Kind Regards
Lea Deng

Creating connections to make IT easier for everyone

Lead Test Analyst
IT Regulatory Services Team
Christchurch City Council
New Zealand
DDI: +64 (3) 941 88 55
Extn: 8855
lea.deng@ccc.govt.nz<mailto:lea.deng@ccc.govt.nz>

**********************************************************************
This electronic email and any files transmitted with it are intended
solely for the use of the individual or entity to whom they are addressed.

The views expressed in this message are those of the individual sender
and may not necessarily reflect the views of the Christchurch City Council.

If you are not the correct recipient of this email please advise the
sender and delete.

Christchurch City Council
http://www.ccc.govt.nz
**********************************************************************

Mime
View raw message