Class ServiceLocatorTestRule<T>

java.lang.Object
org.junit.rules.ExternalResource
org.jvnet.hk2.testing.junit.ServiceLocatorTestRule<T>
Type Parameters:
T - the type of JUnit test this ServiceLocatorTestRule is related to; consider making it an instance of Binder
All Implemented Interfaces:
Binder, org.junit.rules.TestRule

public class ServiceLocatorTestRule<T> extends org.junit.rules.ExternalResource implements Binder
An ExternalResource (and a Binder) that sets up and tears down an HK2 ServiceLocator on a per-test-class or per-test-method basis.
Since:
2.4.0-b33
See Also: