public class HK2TestUtilities
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static ServiceLocatorFactory |
factory |
Constructor and Description |
---|
HK2TestUtilities() |
Modifier and Type | Method and Description |
---|---|
static ServiceLocator |
create(java.lang.String name,
HK2TestModule... modules) |
static ServiceLocator |
create(java.lang.String name,
ServiceLocator parent,
HK2TestModule... modules)
Will create a ServiceLocator after doing test-specific bindings from the TestModule
|
private static final ServiceLocatorFactory factory
public static ServiceLocator create(java.lang.String name, HK2TestModule... modules)
public static ServiceLocator create(java.lang.String name, ServiceLocator parent, HK2TestModule... modules)
name
- The name of the service locator to create. Should be unique per test, otherwise
this method will fail.parent
- The parent locator this one should have. May be nullmodules
- The test modules, that will do test specific bindings. May be null