Hamcrest Java 1.2 Released

89 views
Skip to first unread message

Steve Freeman

unread,
May 21, 2009, 6:43:58 PM5/21/09
to hamcre...@googlegroups.com, hamcre...@googlegroups.com
OK, I can't stand the waiting any more, so I've declared 1.2 a release.

Enjoy

S.

The top items are:
- added mismatch reporting
- cleaned up some API, especially around collections
- added FeatureMatcher

Issues included are:

23 hamcrest-java XPath matcher should provide namespace support
24 IsCollectionContaining doesn't support subtypes
27 Checked allOf/anyOf (avoid non-reifiable type array)
28 Wrong signature for allOf/anyOf
29 Untyped instanceOf breaks jMock parameter matching
31 Compiler error when using assertThat and polymorphism
34 Combine matchers with infix "and" and "or"
40 CHANGES.txt lists two 1.1 releases
43 Compile errors on hasSize
45 Add IsEmptyString matcher
47 generic map matchers broken
49 JavaLangMatcherAssertTest fails incorrectly
52 retarget instanceOf() and any()
54 TypeSafeMatcher should provide a safe implementation describeMismatch
56 FeatureMatcher
59 IsIterableContainingInOrder matches the elements of a collection
exactly but -InAnyOrder does not
60 IsIterableContainingInAnyOrder should work for collections of any
size
61 hasProperty should name of missing property
64 containsInAnyOrder has different behaviour depending on order of
required elements in iterable to match
67 Should we remove the multiple factory methods on the iterator
matches?
68 instanceOf matcher doesn't report actual type of class when match
fails
70 Javadoc for FeatureMatcher gives wrong method name for subclasses
to implement
74 Mismatch description for FeatureMatcher should use
mismatchDescription of submatcher
75 hasItem should report mismatches
77 OrderingComparison is describing mismatches backwards
78 IsArray factory is not properly annotated


rwallace

unread,
May 26, 2009, 2:23:42 PM5/26/09
to Hamcrest Java Users
Awesome job guys! The only thing holding me back from making the jump
is getting it into the maven central repository.

Thanks for the great work!
Rich

Steve Freeman

unread,
May 26, 2009, 5:02:58 PM5/26/09
to hamcre...@googlegroups.com
Someone else will have to step up to that one :)

S.

On 26 May 2009, at 19:23, rwallace wrote:
> Awesome job guys! The only thing holding me back from making the jump
> is getting it into the maven central repository.

Steve Freeman
Winner of the Agile Alliance Gordon Pask award 2006

http://www.m3p.co.uk

M3P Limited.
Registered office. 2 Church Street, Burnham, Bucks, SL1 7HZ.
Company registered in England & Wales. Number 03689627


Richard Wallace

unread,
May 28, 2009, 1:26:25 PM5/28/09
to hamcre...@googlegroups.com
At the risk of sounding like a pest, could we also get the JavaDocs
deployed and linked to on the site? It seems the common way is to
create a branch and host it in svn (at least that's what mockito
appears to do <http://mockito.googlecode.com/svn/branches/1.7/javadoc/index.html?org/mockito/Mockito.html>).

Rich
Reply all
Reply to author
Forward
0 new messages