Is it possible to create a mock object that implements multiple interfaces with EasyMock?

后端 未结 6 2022
清酒与你
清酒与你 2020-12-30 18:35

Is it possible to create a mock object that implements several interfaces with EasyMock?

For example, interface Foo and interface Closeable

6条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-30 19:27

    have you considered something like:

    interface Bar extends Foo, Closeable {
    }
    

    and then mock interface Bar?

提交回复
热议问题