Index

A C D E F G H I M N O P R S T V 
All Classes and Interfaces|All Packages

A

add(Type) - Method in class org.jvnet.testing.hk2mockito.internal.cache.MemberCache
 
answer() - Element in annotation interface org.jvnet.testing.hk2mockito.MC
Specifies default answers to interactions.

C

ConcurrentMapFactory - Class in org.jvnet.testing.hk2mockito.internal.cache
ConcurrentHashMap provider.
ConcurrentMapFactory() - Constructor for class org.jvnet.testing.hk2mockito.internal.cache.ConcurrentMapFactory
 
createOrFindService(Injectee, ServiceHandle<?>) - Method in class org.jvnet.testing.hk2mockito.internal.MockitoService
Given an injectee create and cache or resolve the service associated with it.

D

dispose(Map) - Method in class org.jvnet.testing.hk2mockito.internal.cache.ConcurrentMapFactory
 

E

equals(Object) - Method in class org.jvnet.testing.hk2mockito.internal.MockitoCacheKey
 
extraInterfaces() - Element in annotation interface org.jvnet.testing.hk2mockito.MC
Specifies extra interfaces the mock should implement.

F

field() - Element in annotation interface org.jvnet.testing.hk2mockito.MC
If the collaborator service being injected is a field of the SUT, this value should indicate the name of the field.
field() - Element in annotation interface org.jvnet.testing.hk2mockito.SC
If the collaborator service being injected is a field of the SUT, this value should indicate the name of the field.
findOrCreateCollaborator(int, String, Injectee, ServiceHandle<?>) - Method in class org.jvnet.testing.hk2mockito.internal.MockitoService
Given metadata about collaborator and an injectee create or resolve the collaborating service.
findOrCreateSUT(Injectee, ServiceHandle<?>) - Method in class org.jvnet.testing.hk2mockito.internal.MockitoService
Given an SUT annotation and an injectee resolve the service associated with the injectee and use the metadata in the SUT annotation to possibly create a mockito spy.

G

get(Type) - Method in class org.jvnet.testing.hk2mockito.internal.cache.MemberCache
 
get(Type) - Method in class org.jvnet.testing.hk2mockito.internal.cache.ParentCache
 

H

hashCode() - Method in class org.jvnet.testing.hk2mockito.internal.MockitoCacheKey
 
HK2Mockito - Annotation Interface in org.jvnet.testing.hk2mockito.internal
Qualifier for internal services.
HK2MockitoInjectionResolver - Class in org.jvnet.testing.hk2mockito
This class is a custom resolver that creates or finds services and wraps in a spy.

I

isConstructorParameterIndicator() - Method in class org.jvnet.testing.hk2mockito.HK2MockitoInjectionResolver
 
isMethodParameterIndicator() - Method in class org.jvnet.testing.hk2mockito.HK2MockitoInjectionResolver
 

M

MC - Annotation Interface in org.jvnet.testing.hk2mockito
@MC (Mock Collaborator) annotation is used on fields and methods of a Test class to inject a mock of the @SUT's collaborating services.
MemberCache - Class in org.jvnet.testing.hk2mockito.internal.cache
A cache service for tracking spy injectees and spy services.
MockitoCacheKey - Class in org.jvnet.testing.hk2mockito.internal
Cache key for spies created.
MockitoCacheKey(Type, Object) - Constructor for class org.jvnet.testing.hk2mockito.internal.MockitoCacheKey
 
MockitoService - Class in org.jvnet.testing.hk2mockito.internal
A helper service for creating SUT, SC, MC or regular service.

N

name() - Element in annotation interface org.jvnet.testing.hk2mockito.MC
Specifies mock name.
newKey(Type, Object) - Method in class org.jvnet.testing.hk2mockito.internal.ObjectFactory
 
newMock(Class<?>, MockSettings) - Method in class org.jvnet.testing.hk2mockito.internal.ObjectFactory
 
newSpy(Object) - Method in class org.jvnet.testing.hk2mockito.internal.ObjectFactory
 

O

ObjectFactory - Class in org.jvnet.testing.hk2mockito.internal
A factory class used to create various objects.
ObjectFactory() - Constructor for class org.jvnet.testing.hk2mockito.internal.ObjectFactory
 
org.jvnet.testing.hk2mockito - package org.jvnet.testing.hk2mockito
 
org.jvnet.testing.hk2mockito.internal - package org.jvnet.testing.hk2mockito.internal
 
org.jvnet.testing.hk2mockito.internal.cache - package org.jvnet.testing.hk2mockito.internal.cache
 

P

ParentCache - Class in org.jvnet.testing.hk2mockito.internal.cache
Cache service used to track parent child relationship between injectees and their parent.
provide() - Method in class org.jvnet.testing.hk2mockito.internal.cache.ConcurrentMapFactory
 
put(Type, Type) - Method in class org.jvnet.testing.hk2mockito.internal.cache.ParentCache
 

R

resolve(Injectee, ServiceHandle<?>) - Method in class org.jvnet.testing.hk2mockito.HK2MockitoInjectionResolver
 

S

SC - Annotation Interface in org.jvnet.testing.hk2mockito
@SC (Service Collaborator) annotation is used on fields and methods of a Test class to inject spies of the @SUT's collaborating services.
SUT - Annotation Interface in org.jvnet.testing.hk2mockito
@SUT (Service Under Test) is an annotation used on fields and methods of a Test class to inject a spy of the real service.

T

toString() - Method in class org.jvnet.testing.hk2mockito.internal.MockitoCacheKey
 

V

value() - Element in annotation interface org.jvnet.testing.hk2mockito.MC
If the collaborator service being injected is a constructor or method parameter of the SUT, this value should indicate the index of the parameter.
value() - Element in annotation interface org.jvnet.testing.hk2mockito.SC
If the collaborator service being injected is a constructor or method parameter of the SUT, this value should indicate the index of the parameter.
value() - Element in annotation interface org.jvnet.testing.hk2mockito.SUT
Indicates whether a spy should be created.
A C D E F G H I M N O P R S T V 
All Classes and Interfaces|All Packages