2 dépôts
Mechanisms for swapping production dependency implementations with test-specific versions during automated test execution.
Distinct from Testing Frameworks: Distinct from general Testing Frameworks: focuses on the specific capability of swapping dependency bindings rather than test execution or assertion logic.
Explore 2 awesome GitHub repositories matching testing & quality assurance · Binding Replacements. Refine with filters or upvote what's useful.
Dagger is a compile-time dependency injection framework for Java and Android applications. It automates the construction and wiring of object graphs by generating static source code during the build process, which eliminates the need for reflection or runtime bytecode generation. The framework distinguishes itself by performing strict validation of the entire dependency structure before the application runs, ensuring that all required bindings are satisfied and identifying circular references early. It manages object lifecycles through scoped containers and supports lazy resolution, allowing
Swaps production dependency bindings with test-specific implementations to simplify the verification of code during automated testing.
Dagger is a compile-time dependency injection framework for Java and Android that automates object creation and lifecycle management. It functions as a static dependency injector and graph validator, resolving object requirements during the build process to avoid runtime reflection and prevent crashes caused by missing bindings. The framework distinguishes itself by using static analysis and code generation to produce factory classes at build time. It employs qualifier-based type differentiation to manage multiple implementations of the same type and provides scope-based lifecycle management
Enables replacing production implementations with substitute objects or mocks for isolated unit testing.