FEST-Assert 2.x open!

12 views
Skip to first unread message

Alex Ruiz

unread,
Mar 22, 2011, 2:29:56 AM3/22/11
to easytes...@googlegroups.com
Hey guys!

I just open up the FEST-Assert 2.x prototype project: https://github.com/alexruiz/fest-assert-2.x

Sorry for the delay. Things got a little busy from my side :D

There are some major changes in this projects (I hope I'm not missing any)
  1. More and smaller packages: code is better organized
  2. Classes in package "internal" are singletons that perform the "heavy lifting," so we can reuse them when creating custom Conditions
  3. Fluent classes are pretty thin, they just delegate to the classes in #2
  4. assertThat(Iterator) is gone. As Ansgar pointed out, it can create confusion about when the Iterator is consumed. I'll be adding a utility "asList(Iterator<?> iterator) so users can copy the contents of an Iterator to a List and then call "assertThat(List)"
  5. "onProperty" has been replaced with Properties.extractProperty(String).on(Collection) and Properties.extractProperty(String).on(Object[]) (org.fest.assertions.groups.Properties.) The main reason is the change in context in the fluent interface, which I find very confusing. I'll be changing the method name to Joel's suggestion: selectProperty :)
  6. Mockito instead of EasyMock
  7. Testing is a lot simpler IMHO. We no longer need to test that an assertion method works 1. without description, 2. with description, 3. with "overriding error message," and 4. description and "overriding error message"
I seriously think we should move to the 2.x for our development. I'm open to keeping 1.x alive. The only thing is, if we add something new to 1.x, we need to added to 2.x as well.

Please let me know what you think.

Many thanks!
-Alex

Joel Costigliola

unread,
Mar 23, 2011, 5:28:58 AM3/23/11
to easytes...@googlegroups.com
That is very good news ! :D
I like very much package reorganization, it is easier to navigate into code.
Making test code simpler is great, when I start contributing to Fest Assert I found very repetitive to test decription/error message overriding.
Mockito is also a good choice.

Thanks !

--
You received this message because you are subscribed to the Google Groups "easytesting-dev" group.
To post to this group, send email to easytes...@googlegroups.com.
To unsubscribe from this group, send email to easytesting-d...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/easytesting-dev?hl=en.

Reply all
Reply to author
Forward
0 new messages