Comments (4)
Observer mocks are meant to be strict (as mentioned in http://ocmock.org/reference/#observer-mocks). Is that not the case? Does the observer receive an unexpected notification and not complain? That would be a bug.
from ocmock.
Ah, I missed that. Guess I need to have more caffeine before reading documentation.
from ocmock.
Partly my fault, too. The design isn't very symmetric. In the new syntax class mocks, partial mocks, and protocol mocks are all created "nice" by default while observer mocks are strict by default. In hindsight I don't know how I end up there.
from ocmock.
sry for re-using this issue, but how do I implement rejecting a specific notification I don't want to receive?
from ocmock.
Related Issues (20)
- Unable to access class methods +(void) while I am write down test case for my own framework -(void) instance methods are working fine using OCMock HOT 2
- OCMock not loading for macOS test target
- OCMStub an instance mthod not work as expected HOT 4
- When I OCMProtocolMock a protocol(This protocol has a method),How can I invoke the real implementation of the method HOT 4
- Mac Catalyst Support HOT 1
- Incompatible function pointer types HOT 2
- A question about the andDo function
- Developer Account agnostic build scripts HOT 1
- Do not require xcpretty HOT 1
- ReadOnly Mock HOT 1
- OCMPartialMock initialized with NSConstantArray is crashing on Xcode 14.0b3 HOT 3
- `va_arg()` causes `EXC_BAD_ACCESS` in mocked objects HOT 5
- OCMVerify with CMTime argument fails on m1 mac. HOT 2
- Error in partial mock documentation HOT 1
- Release 3.9.2 not on Cocoapods HOT 2
- Request to provide Privacy Manifest file for OCMOCK SDK HOT 1
- `OCMVerifier.h` is not part of the public watchOS interface
- Xcode 15.3 build error on Intel Macs
- .andThrow(anException) will not throw the provided anException
- OCMock partial mocks crash when used with objc_direct methods that directly access instance variables.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ocmock.