diff --git a/src/main/asciidoc/docs/dependency_injection.adoc b/src/main/asciidoc/docs/dependency_injection.adoc index f71e82f..024e1cc 100644 --- a/src/main/asciidoc/docs/dependency_injection.adoc +++ b/src/main/asciidoc/docs/dependency_injection.adoc @@ -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); } @@ -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. \ No newline at end of file +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.