Re: [easytesting] Missing description text from exception

7 views
Skip to first unread message

Mark Derricutt

unread,
Mar 14, 2013, 9:00:33 PM3/14/13
to easyt...@googlegroups.com
Antony Stubbs wrote:

        Assertions.assertThat(false).isTrue().as("Description
test").describedAs("blah");


Tony San!

Add you .as() and/or .describedAs() -BEFORE- calling the actual .isTrue() assertion.

Mark

Alex Ruiz

unread,
Mar 15, 2013, 10:39:40 AM3/15/13
to easytesting
Yeah...the API is confusing as it is now. One of the changes that I'm making in 2.0 is to include the description in the assertion, so it is clear where it is being applied:

assertThat(false, as("Description")).isTrue()


--
You received this message because you are subscribed to the Google Groups "easytesting" group.
To unsubscribe from this group and stop receiving emails from it, send an email to easytesting...@googlegroups.com.
To post to this group, send email to easyt...@googlegroups.com.
Visit this group at http://groups.google.com/group/easytesting?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply all
Reply to author
Forward
0 new messages