Skip to content

[ISSUE] Suggested improvement to allow dependency overrides and internal injector configuration modification that differs from defaults #22

@lestephane

Description

@lestephane

Description

When I want to run tests against a lambda function handler directly (not against an individual use case), I typically have one InjectorConfiguration that is the canonical configuration, and need to override it selectively from within test cases.

If the backbone of my lambda function handler is a usecasemaid, I need to pass the configuration overrides to usecasemaid.

This is currently not possible.

Suggested improvement

add a withDependencyOverrides(...) to UseCaseMaidBuilder, that takes vararg InjectorConfigurations.

(inspired by: https://xvik.github.io/dropwizard-guicey/5.0.0/guide/guice/override/)

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions