I’ve just released ScalaMock 2.2, with the following improvements over 2.1:
- Add support for repeated parameters (varargs)
- Basic parameterised class support
ScalaMock is a native Scala mocking framework which, as well as traits (interfaces) and functions, can also mock:
- Classes
- Singleton and companion objects (static methods)
- Object creation (constructor invocation)
- Polymorphic (type parameterised) methods
- Classes with private constructors
- Final classes and classes with final methods
- Operators (methods with symbolic names)
- Overloaded methods
