Skip to content

Commit

Permalink
Merge pull request #77 from Philzen/patch-1
Browse files Browse the repository at this point in the history
Fix typo in overridable configure() method
  • Loading branch information
juherr authored May 23, 2024
2 parents d1051d5 + 5236df0 commit 3e3967d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/asciidoc/docs/dependency_injection.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ package com.example;
public class ParentModule extends AbstractModule {
@Override
protected void conigure() {
protected void configure() {
bind(MyService.class).toProvider(MyServiceProvider.class);
bind(MyContext.class).to(MyContextImpl.class).in(Singleton.class);
}
Expand Down Expand Up @@ -284,4 +284,4 @@ As you see `ParentModule` declares binding for `MyService` and `MyContext` class
* MyService - binding taken from ParentModule
* MySession - binding taken from TestModule

This configuration ensures you that all tests in this suite will be run with same session instance, the `MyContextImpl` object is only created once per suite, this give you possibility to configure common environment state for all tests in suite.
This configuration ensures you that all tests in this suite will be run with same session instance, the `MyContextImpl` object is only created once per suite, this give you possibility to configure common environment state for all tests in suite.

0 comments on commit 3e3967d

Please sign in to comment.