Issue Details (XML | Word | Printable)

Key: FEST-59
Type: New Feature New Feature
Status: Resolved Resolved
Resolution: Fixed
Priority: Minor Minor
Assignee: Alex Ruiz
Reporter: Alex Ruiz
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
FEST

Add ListAssert (issue 113)

Created: 05/Mar/09 02:56 PM   Updated: 30/Mar/09 03:01 AM   Resolved: 30/Mar/09 03:00 AM
Return to search
Component/s: Assert
Affects Version/s: FEST-Assert 1.1
Fix Version/s: FEST-Assert 1.1

Time Tracking:
Not Specified

File Attachments: 1. Zip Archive mylyn-context.zip (107 kB)



 Description  « Hide

From Konstantin Scheglov:

I need to check not just generic java.util.Collection, but java.util.List, and this List should have only specified elements and in particular order. Nearest (convenient) approximation now is "containtsOnly", but it still worries me that my test does not check as much as it could.

Can you add ListAssert with additional method equals(Object...elements), or something like this?


Original report: Issue 113 (Google Code)



Alex Ruiz made changes - 12/Mar/09 04:57 PM
Field Original Value New Value
Description From Konstantin Scheglov:

I need to check not just generic {{java.util.Collection}}, but {{java.util.List}}, and this {{List}} should have only specified elements and in particular order. Nearest (convenient) approximation now is "containtsOnly", but it still worries me that my test does not check as much as it could.

Can you add {{ListAssert}} with additional method {{equals(Object...elements)}}, or something like this?

----

Original reports at [Issue 113 (Google Code)|http://code.google.com/p/fest/issues/detail?id=113] & [FEST-51 (Project Kenai)|http://kenai.com/jira/browse/FEST-51].
From Konstantin Scheglov:

I need to check not just generic {{java.util.Collection}}, but {{java.util.List}}, and this {{List}} should have only specified elements and in particular order. Nearest (convenient) approximation now is "containtsOnly", but it still worries me that my test does not check as much as it could.

Can you add {{ListAssert}} with additional method {{equals(Object...elements)}}, or something like this?

----

Original report: [Issue 113 (Google Code)|http://code.google.com/p/fest/issues/detail?id=113]
Alex Ruiz made changes - 29/Mar/09 03:44 PM
Assignee Alex Ruiz [ alexruiz ]
Alex Ruiz made changes - 29/Mar/09 03:44 PM
Status Open [ 1 ] In Progress [ 3 ]
Alex Ruiz added a comment - 30/Mar/09 03:00 AM

ListAssert and all requested methods have been implemented, with the exception of 'containsOrder(Object)'. I haven't found a way to implement it. If a patch is submitted, I'll be glad to include it.


Alex Ruiz made changes - 30/Mar/09 03:00 AM
Resolution Fixed [ 1 ]
Status In Progress [ 3 ] Resolved [ 5 ]
Alex Ruiz made changes - 30/Mar/09 03:01 AM
Attachment mylyn-context.zip [ 41033 ]