Off Topic: OCMock: Categories and Protocols
Posted: Wed Feb 09, 2005 7:11 pm
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
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