What's the equivalent of EasyMock.aryEq function in OCMOCK

Discussion of the OCMock framework. If you have patches we would prefer you to send them to the mailing list, but attaching them to a topic is possible, too.

What's the equivalent of EasyMock.aryEq function in OCMOCK

Postby niangsou » 20 Jun 2013, 10:40

hi,
i have a problem when i try to implemente some tests in IOS using OCMOCK; Indeed, i need the equivalent of easy mock ary eq to expect byte array argument is equal to the given array.
here's an exemple:
invoked: openConnectionWithJavaLangByteArray:[0xffffffa0, 0x0, 0x0, 0x0, 0x0, 0x10, 0x10, 0x10]
expected: openConnectionWithJavaLangByteArray:[0xffffffa0, 0x0, 0x0, 0x0, 0x0, 0x10, 0x10, 0x10]
the buffers argument are same but we need , like when implementing in java to use ary eq to compare the equality of these two buffers.
any help?
thanks.
niangsou
 

Re: What's the equivalent of EasyMock.aryEq function in OCMO

Postby erik » 25 Jun 2013, 20:40

What is the signature of your openConnectionWithJavaLangByteArray: method? In particular what's the type of the argument?
erik
 
Posts: 90
Joined: 10 Oct 2009, 15:22
Location: Hamburg, Germany


Return to OCMock