public class SpecHelper.ModuleBuilder extends Object
Modifier | Constructor and Description |
---|---|
protected |
ModuleBuilder(com.google.inject.Module module) |
Modifier and Type | Method and Description |
---|---|
com.google.inject.Injector |
create()
Terminal method of a builder.
|
SpecHelper.ModuleBuilder |
override(Class interfaceClass)
Specifies what interface to override with a mock.
|
SpecHelper.ModuleBuilder |
with(Class mockClass)
Specifies what mock to use to override a real service in a module.
|
public SpecHelper.ModuleBuilder override(Class interfaceClass)
interfaceClass
- class of an service interface to override by a mock.SpecHelper.ModuleBuilder
public SpecHelper.ModuleBuilder with(Class mockClass)
mockClass
- a mock service class to override a real service in the module as eager singletone.SpecHelper.ModuleBuilder
public com.google.inject.Injector create()
Copyright © 2019 JavaLite. All rights reserved.