Expect a()to allow only methods b()andc()
mockery.checking(new Expectations() {{
one(mockObject).a();
allowing(mockObject).b();
allowing(mockObject).c();
}});
Expect a()to allow all other methods.
mockery.checking(new Expectations() {{
one(mockObject).a();
allowing(mockObject);
}});
source
share