Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

installTestModules should override previous bindings in the same scope #222

Closed
dlemures opened this issue Jun 13, 2017 · 1 comment
Closed
Assignees
Labels
Milestone

Comments

@dlemures
Copy link
Collaborator

If I have a testModule:

testModule {
  bind(A.class).to(B.class)
}

And a real module:

realModule{
  bind(A.class).to(C.class)
}

The testModule binding for A should override the one from realModule if testModule is installed using scope.installTestModules(testModule). The order used to install the modules should not matter.

Right now it does not happen:

scope.installModule(realModule);
scope.installTestModules(testModule); // does not override
@dlemures
Copy link
Collaborator Author

PR merged: #223

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant