Say in an integration test I have the following:
@BQApp(value = TEST_CLASS)
static final BQRuntime app = Bootique.app("--run")
.autoLoadModules()
.module(db.moduleWithTestDataSource("default"))))
.createRuntime();
How would I overwrite a binding provided by one of the auto loaded modules ?
i.e. one the (auto loaded) modules has:
binder.bind(Client.class).to(ClientImpl.class).inSingletonScope();
for the test I want to provide my own mock implementation:
binder.bind(Client.class).to(MockClientImpl.class).inSingletonScope();
Thanks.