I'm using JMock to test the behavior of a class using an object. I want to test that the method a()
is called. However, b()
and c()
also are called on the object too. Therefore if my expectations expect a()
, it must also expect b()
and c()
to make the test pass. Is there a way to test only for a certain method, and allow anything else?
相关问题
- Delete Messages from a Topic in Apache Kafka
- Jackson Deserialization not calling deserialize on
- How to maintain order of key-value in DataFrame sa
- StackExchange API - Deserialize Date in JSON Respo
- Difference between Types.INTEGER and Types.NULL in
Expect
a()
allow only methodsb()
&c()
Expect
a()
allow all other methods.