Package org.javalite.activeweb
Class SpecHelper.ModuleBuilder
java.lang.Object
org.javalite.activeweb.SpecHelper.ModuleBuilder
- Enclosing class:
- SpecHelper
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncom.google.inject.Injector
create()
Terminal method of a builder.Specifies what interface to override with a mock.Specifies what mock to use to override a real service in a module.
-
Constructor Details
-
ModuleBuilder
protected ModuleBuilder(com.google.inject.Module module)
-
-
Method Details
-
override
Specifies what interface to override with a mock.- Parameters:
interfaceClass
- class of an service interface to override by a mock.- Returns:
- instance of
SpecHelper.ModuleBuilder
-
with
Specifies what mock to use to override a real service in a module.- Parameters:
mockClass
- a mock service class to override a real service in the module as eager singletone.- Returns:
- instance of
SpecHelper.ModuleBuilder
-
create
public com.google.inject.Injector create()Terminal method of a builder. Use to generate an instance of Injector.- Returns:
- properly configured instance of injector, with all
-