In updateSearchTerm method, the test code works well as I expected. But there also has an async block inside updateSearchTerm which is a black box for test code, so I don't know when the block will be invoked. Sometimes when test runs successfully, but async block will call back and crash with the following callstack:
I used OCPartialMockObject to verify whether some method invoked. such as
In updateSearchTerm method, the test code works well as I expected. But there also has an async block inside updateSearchTerm which is a black box for test code, so I don't know when the block will be invoked. Sometimes when test runs successfully, but async block will call back and crash with the following callstack:
currentSearchTerm is a private property of DataProvider. it random fails and I have tried by calling "stopMocking", which is no use.
So how does OCPartialMockObject release, and why it can not find private setter method?
OCMockito version: 5.1.2 OCMock version: '3.4.3'.