Package org.jvnet.hk2.testing.junit
Class HK2TestUtilities
java.lang.Object
org.jvnet.hk2.testing.junit.HK2TestUtilities
These are other useful test utilities that can be used
- Author:
- jwells
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ServiceLocatorcreate(String name, ServiceLocator parent, HK2TestModule... modules) Will create a ServiceLocator after doing test-specific bindings from the TestModulestatic ServiceLocatorcreate(String name, HK2TestModule... modules)
-
Constructor Details
-
HK2TestUtilities
public HK2TestUtilities()
-
-
Method Details
-
create
-
create
Will create a ServiceLocator after doing test-specific bindings from the TestModule- Parameters:
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- Returns:
- A service locator with all the test specific bindings bound
-