Page 1 of 1

Off Topic: OCMock: Categories and Protocols

Posted: Wed Feb 09, 2005 7:11 pm
by jimmy
Hello. Could not find anywhere else on the site to give feedback/comments on OCMock.

I am having fun using it with OCUnit and OCMock in my first obj-C test driven devel project. (I am relatively new to obj-c).

In hte java mock objects tools, I would probably create interfaces to mock. In Obj-c, I would like to mock protocols (formal or informal) so that my design can be more loosely coupled (instead of requiring that some interface be a concrete class).

Is there an easy way to mock informal protocols (NSObject categories) or formal protocols in OCMock?

Regardless, it is a great tool accomplished with minimal coding.

cheers

jimmy

Posted: Thu Feb 10, 2005 12:10 am
by erik
Hi Jimmy, I'm the author of OCMock. You can reach me at erik@mulle-kybernetik.com.

We now also have a dedicated forum for OCMock. You can find it here:

http://www.mulle-kybernetik.com/forum/viewforum.php?f=4