Hi Medhi, That's a great suggestion. I really like to use the Mockito (http://code.google.com/p/mockito/) framework in my tests, it has a fluent interface that is really easy and comfortable to work with.
Adrian. Sent from my iPad On Nov 20, 2010, at 12:08 AM, mehdi houshmand <med1...@gmail.com> wrote: > Hi, > > I've been working on unit testing some of the classes in FOP and I > think FOP could benefit from using a mocking framework. The goal is > obviously that every class has a complimentary test class to test > behaviour and state and mocking a class is a good way to emulate an > object. I shan't make this into a lecture on the benefits, I've > enclosed a good URL as to some of the benefits, but I wanted to put it > to the community for feedback. This would mean including an extra > JAR(s) file in the libs/ directory (obviously we'll have to be careful > with licenses), but I'm just floating the idea if anyone has any > preferred frameworks please do suggest pros/cons. > > http://martinfowler.com/articles/mocksArentStubs.html > > Thanks > > Mehdi