public class MyTest { @Rule public final Junit4Mockery2 context = Junit4Mockery2.createFor(Mode.INTERFACES); }
The class also adds some convenience methods, and uses a factory method to make it explicit whether the context can mock only interfaces or interfaces and classes.
|
|