public class HK2TestUtilities extends Object
Constructor and Description |
---|
HK2TestUtilities() |
Modifier and Type | Method and Description |
---|---|
static ServiceLocator |
create(String name,
HK2TestModule... modules) |
static ServiceLocator |
create(String name,
ServiceLocator parent,
HK2TestModule... modules)
Will create a ServiceLocator after doing test-specific bindings from the TestModule
|
public static ServiceLocator create(String name, HK2TestModule... modules)
public static ServiceLocator create(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 nullCopyright © 2009-2017, Oracle and/or its affiliates. All Rights Reserved.