Most popular Mocking framework for unit tests written in Java
java
testing
mock
test-automation
mocking
mockito
testing-tools
mock-library
java-library
test-driven-development
mocks
mocking-framework
-
Updated
Sep 1, 2020 - Java


I have a library that I generate all of my mocks into that is imported in my unit tests. When mocking a protocol, the generated mock object doesn't have an initializer declared. This means is uses the default initializer, which would be fine, except the default
init()method is internal. I can get around this by importing my mock library@testable, but I'd suggest that protocol mocks for publi