Index

A B C D E F G H I J O P R S T V 
All Classes and Interfaces|All Packages|Constant Field Values

A

after() - Method in class org.jvnet.hk2.testing.junit.ServiceLocatorTestRule
Shuts down and cleans up the ServiceLocator created by this ServiceLocatorTestRule.
apply(Statement, Description) - Method in class org.jvnet.hk2.testing.junit.ServiceLocatorTestRule
Overrides the ExternalResource.apply(Statement, Description) method to save the supplied Description so that other methods in this class can refer to it.

B

before() - Method in class org.jvnet.hk2.testing.junit.HK2Runner
This will generate the default testLocator for this test class, which will search the package of the test itself for classes annotated with @Service.
before() - Method in class org.jvnet.hk2.testing.junit.ServiceLocatorTestRule
bind(DynamicConfiguration) - Method in class org.jvnet.hk2.testing.junit.ServiceLocatorTestRule
Called at the appropriate time by the ServiceLocatorTestRule.configureServiceLocator(ServiceLocator, Description) method in case subclasses wish to add services to the ServiceLocator being configured.

C

Classes - Annotation Interface in org.jvnet.hk2.testing.junit.annotations
A set of classes that should be analyzed as services, whether they declare @Service or not.
ClassVisitorImpl - Class in org.jvnet.hk2.testing.junit.internal
 
ClassVisitorImpl(ServiceLocator, boolean, Set<String>) - Constructor for class org.jvnet.hk2.testing.junit.internal.ClassVisitorImpl
Creates this with the config to add to if this is a service
configure(DynamicConfiguration) - Method in interface org.jvnet.hk2.testing.junit.HK2TestModule
Allows the test to easily configure their test
configureServiceLocator(ServiceLocator, Description) - Method in class org.jvnet.hk2.testing.junit.ServiceLocatorTestRule
Configures the supplied ServiceLocator for use by the test described by the supplied Description.
create(String, ServiceLocator, HK2TestModule...) - Static method in class org.jvnet.hk2.testing.junit.HK2TestUtilities
Will create a ServiceLocator after doing test-specific bindings from the TestModule
create(String, HK2TestModule...) - Static method in class org.jvnet.hk2.testing.junit.HK2TestUtilities
 
createServiceLocator(Description) - Method in class org.jvnet.hk2.testing.junit.ServiceLocatorTestRule
Creates and returns a ServiceLocator suitable for the JUnit test described by the supplied Description.

D

DEFAULT_INHABITANT_PATH - Static variable in annotation interface org.jvnet.hk2.testing.junit.annotations.InhabitantFiles
 

E

ErrorServiceImpl - Class in org.jvnet.hk2.testing.junit.internal
 
ErrorServiceImpl() - Constructor for class org.jvnet.hk2.testing.junit.internal.ErrorServiceImpl
 
Excludes - Annotation Interface in org.jvnet.hk2.testing.junit.annotations
A set of implementations that should be excluded from being added to testLocator.

F

filter(Filter) - Method in class org.jvnet.hk2.testing.junit.HK2JunitRunner
 

G

getClasspath() - Method in class org.jvnet.hk2.testing.junit.ServiceLocatorTestRule
Returns a String representing the classpath to use to search for classes.
getDescription() - Method in class org.jvnet.hk2.testing.junit.HK2JunitRunner
 
getServiceLocator() - Method in class org.jvnet.hk2.testing.junit.internal.TestServiceLocator
 
getServiceLocatorIsolation() - Method in class org.jvnet.hk2.testing.junit.ServiceLocatorTestRule
getServiceLocatorName(Description) - Method in class org.jvnet.hk2.testing.junit.ServiceLocatorTestRule
Returns a name for a ServiceLocator that is appropriate for the supplied Description.

H

HK2JunitRunner - Class in org.jvnet.hk2.testing.junit
Runner class for having injected services inside of tests using the @RunWith annotation.
HK2JunitRunner(Class<?>) - Constructor for class org.jvnet.hk2.testing.junit.HK2JunitRunner
 
HK2Runner - Class in org.jvnet.hk2.testing.junit
This class should be extended by test classes in order to get an automatically filled in ServiceLocator.
HK2Runner() - Constructor for class org.jvnet.hk2.testing.junit.HK2Runner
 
HK2TestModule - Interface in org.jvnet.hk2.testing.junit
 
HK2TestUtilities - Class in org.jvnet.hk2.testing.junit
These are other useful test utilities that can be used
HK2TestUtilities() - Constructor for class org.jvnet.hk2.testing.junit.HK2TestUtilities
 

I

InhabitantFiles - Annotation Interface in org.jvnet.hk2.testing.junit.annotations
A set of locator inhabitant files to search for in the classpath.
initialize() - Method in class org.jvnet.hk2.testing.junit.HK2Runner
This method initializes the service locator with services.
initialize() - Method in class org.jvnet.hk2.testing.junit.internal.TestServiceLocator
This method initializes the service locator with services.
initialize(String, List<String>, List<Class<?>>) - Method in class org.jvnet.hk2.testing.junit.HK2Runner
This method initializes the service locator with services from the given list of packages (in "." format) and with the set of classes given.
initialize(String, List<String>, List<Class<?>>) - Method in class org.jvnet.hk2.testing.junit.internal.TestServiceLocator
This method initializes the service locator with services from the given list of packages (in "." format) and with the set of classes given.
initialize(String, List<String>, List<Class<?>>, Set<String>) - Method in class org.jvnet.hk2.testing.junit.HK2Runner
This method initializes the service locator with services from the given list of packages (in "." format) and with the set of classes given.
initialize(String, List<String>, List<Class<?>>, Set<String>) - Method in class org.jvnet.hk2.testing.junit.internal.TestServiceLocator
This method initializes the service locator with services from the given list of packages (in "." format) and with the set of classes given.
initialize(String, List<String>, List<Class<?>>, Set<String>, Set<String>) - Method in class org.jvnet.hk2.testing.junit.HK2Runner
This method initializes the service locator with services from the given list of packages (in "." format) and with the set of classes given.
initialize(String, List<String>, List<Class<?>>, Set<String>, Set<String>) - Method in class org.jvnet.hk2.testing.junit.internal.TestServiceLocator
This method initializes the service locator with services from the given list of packages (in "." format) and with the set of classes given.
initializeOnBefore() - Method in class org.jvnet.hk2.testing.junit.internal.TestServiceLocator
 
isLookup(Injectee) - Method in class org.jvnet.hk2.testing.junit.internal.JustInTimeInjectionResolverImpl
Returns true if the supplied Injectee represents a service lookup rather than a true injection point.
isVerbose() - Method in class org.jvnet.hk2.testing.junit.ServiceLocatorTestRule
Returns true if this ServiceLocatorTestRule should output additional information to System.out.

J

JustInTimeInjectionResolverImpl - Class in org.jvnet.hk2.testing.junit.internal
 
JustInTimeInjectionResolverImpl() - Constructor for class org.jvnet.hk2.testing.junit.internal.JustInTimeInjectionResolverImpl
 
JustInTimeInjectionResolverImpl(Collection<?>) - Constructor for class org.jvnet.hk2.testing.junit.internal.JustInTimeInjectionResolverImpl
 
justInTimeResolution(Injectee) - Method in class org.jvnet.hk2.testing.junit.internal.JustInTimeInjectionResolverImpl
 

O

onFailure(ErrorInformation) - Method in class org.jvnet.hk2.testing.junit.internal.ErrorServiceImpl
 
org.jvnet.hk2.testing.junit - package org.jvnet.hk2.testing.junit
 
org.jvnet.hk2.testing.junit.annotations - package org.jvnet.hk2.testing.junit.annotations
 
org.jvnet.hk2.testing.junit.internal - package org.jvnet.hk2.testing.junit.internal
 

P

Packages - Annotation Interface in org.jvnet.hk2.testing.junit.annotations
The list of packages (in "." format, i.e.
PER_TEST - Enum constant in enum class org.jvnet.hk2.testing.junit.ServiceLocatorTestRule.ServiceLocatorIsolation
A ServiceLocatorTestRule.ServiceLocatorIsolation indicating that the desired isolation level is per JUnit test method.
PER_TEST_CLASS - Enum constant in enum class org.jvnet.hk2.testing.junit.ServiceLocatorTestRule.ServiceLocatorIsolation
A ServiceLocatorTestRule.ServiceLocatorIsolation indicating that the desired isolation level is per JUnit test class.
performDependencyInjection(ServiceLocator, T) - Method in class org.jvnet.hk2.testing.junit.ServiceLocatorTestRule
Performs HK2 dependency injection on this ServiceLocatorTestRule and the supplied test instance, using the supplied ServiceLocator as needed.

R

run(RunNotifier) - Method in class org.jvnet.hk2.testing.junit.HK2JunitRunner
 

S

ServiceLocatorTestRule<T> - Class in org.jvnet.hk2.testing.junit
An ExternalResource (and a Binder) that sets up and tears down an HK2 ServiceLocator on a per-test-class or per-test-method basis.
ServiceLocatorTestRule(T) - Constructor for class org.jvnet.hk2.testing.junit.ServiceLocatorTestRule
Creates a new ServiceLocatorTestRule on behalf of the supplied JUnit test in ServiceLocatorTestRule.ServiceLocatorIsolation.PER_TEST isolation in non-verbose mode.
ServiceLocatorTestRule(T, boolean) - Constructor for class org.jvnet.hk2.testing.junit.ServiceLocatorTestRule
Creates a new ServiceLocatorTestRule on behalf of the supplied JUnit test in ServiceLocatorTestRule.ServiceLocatorIsolation.PER_TEST isolation with the supplied verbosity.
ServiceLocatorTestRule(T, ServiceLocatorTestRule.ServiceLocatorIsolation) - Constructor for class org.jvnet.hk2.testing.junit.ServiceLocatorTestRule
Creates a new ServiceLocatorTestRule on behalf of the supplied JUnit test in the given ServiceLocatorTestRule.ServiceLocatorIsolation in non-verbose mode.
ServiceLocatorTestRule(T, ServiceLocatorTestRule.ServiceLocatorIsolation, boolean) - Constructor for class org.jvnet.hk2.testing.junit.ServiceLocatorTestRule
Creates a new ServiceLocatorTestRule on behalf of the supplied JUnit test in the given ServiceLocatorTestRule.ServiceLocatorIsolation.
ServiceLocatorTestRule.ServiceLocatorIsolation - Enum Class in org.jvnet.hk2.testing.junit
An enum describing possible ServiceLocator isolation levels for JUnit tests.
setVerbosity(boolean) - Method in class org.jvnet.hk2.testing.junit.HK2Runner
 
setVerbosity(boolean) - Method in class org.jvnet.hk2.testing.junit.internal.TestServiceLocator
 
shutdownAndDestroyServiceLocator(Description) - Method in class org.jvnet.hk2.testing.junit.ServiceLocatorTestRule
Blindly calls the ServiceLocator.shutdown() and ServiceLocatorFactory.destroy(ServiceLocator) methods on this ServiceLocatorTestRule's associated ServiceLocator if it is discovered to be non-null.

T

testLocator - Variable in class org.jvnet.hk2.testing.junit.HK2Runner
Test classes can use this service locator as their private test locator
TestServiceLocator - Class in org.jvnet.hk2.testing.junit.internal
This class should be extended by test classes in order to get an automatically filled in ServiceLocator.
TestServiceLocator(Object) - Constructor for class org.jvnet.hk2.testing.junit.internal.TestServiceLocator
This will generate the default testLocator for this test class, which will search the package of the test itself for classes annotated with @Service.
THIS_PACKAGE - Static variable in annotation interface org.jvnet.hk2.testing.junit.annotations.Packages
This special value indicates the same package as the package in which the test itself resides

V

value() - Element in annotation interface org.jvnet.hk2.testing.junit.annotations.Classes
A list of classes that should be added to testLocator as services
value() - Element in annotation interface org.jvnet.hk2.testing.junit.annotations.Excludes
The fully qualified class names of any service implementations that should NOT automatically be added via package scanning or from inhabitant files read
value() - Element in annotation interface org.jvnet.hk2.testing.junit.annotations.InhabitantFiles
The name of inhabitant files to find in the classpath of the test.
value() - Element in annotation interface org.jvnet.hk2.testing.junit.annotations.Packages
Returns the set of packages (with dot separator) that should be scanned for hk2 services.
valueOf(String) - Static method in enum class org.jvnet.hk2.testing.junit.ServiceLocatorTestRule.ServiceLocatorIsolation
Returns the enum constant of this class with the specified name.
values() - Static method in enum class org.jvnet.hk2.testing.junit.ServiceLocatorTestRule.ServiceLocatorIsolation
Returns an array containing the constants of this enum class, in the order they are declared.
visit(int, int, String, String, String, String[]) - Method in class org.jvnet.hk2.testing.junit.internal.ClassVisitorImpl
 
visitAnnotation(String, boolean) - Method in class org.jvnet.hk2.testing.junit.internal.ClassVisitorImpl
 
visitEnd() - Method in class org.jvnet.hk2.testing.junit.internal.ClassVisitorImpl
 
A B C D E F G H I J O P R S T V 
All Classes and Interfaces|All Packages|Constant Field Values