A B C D E F G H I J L M N O P R S T V W 

A

AbstractDatabaseRuleBuilder<B,R extends DatabaseTestcase> - Class in org.needle4j.junit
 
AbstractDatabaseRuleBuilder() - Constructor for class org.needle4j.junit.AbstractDatabaseRuleBuilder
 
AbstractDBOperation - Class in org.needle4j.db.operation
An abstract implementation of DBOperation with common jdbc operations.
AbstractDBOperation(JdbcConfiguration) - Constructor for class org.needle4j.db.operation.AbstractDBOperation
 
AbstractNeedleProcessor - Class in org.needle4j.processor
 
AbstractNeedleProcessor(InjectionConfiguration) - Constructor for class org.needle4j.processor.AbstractNeedleProcessor
 
AbstractNeedleRuleBuilder<B,R extends NeedleTestcase> - Class in org.needle4j.junit
 
AbstractNeedleRuleBuilder() - Constructor for class org.needle4j.junit.AbstractNeedleRuleBuilder
 
AbstractNeedleTestcase - Class in org.needle4j.testng
 
AbstractNeedleTestcase(InjectionProvider<?>...) - Constructor for class org.needle4j.testng.AbstractNeedleTestcase
Creates an instance of NeedleTestcase with optional additional injection provider.
AbstractRuleBuilder<B,R> - Class in org.needle4j.junit
 
AbstractRuleBuilder() - Constructor for class org.needle4j.junit.AbstractRuleBuilder
 
AbstractTestdataBuilder<T> - Class in org.needle4j.db.testdata
An abstract implementation of TestdataBuilder.
AbstractTestdataBuilder(EntityManager) - Constructor for class org.needle4j.db.testdata.AbstractTestdataBuilder
Creates a new TestdataBuilder with persistence.
AbstractTestdataBuilder() - Constructor for class org.needle4j.db.testdata.AbstractTestdataBuilder
Creates a new TestdataBuilder without persistence.
addAnnotation(Class<? extends Annotation>...) - Method in class org.needle4j.junit.AbstractNeedleRuleBuilder
 
addGlobalInjectionAnnotation(Set<Class<Annotation>>) - Method in class org.needle4j.injection.InjectionConfiguration
 
addInjectedObject(Object, Object) - Method in class org.needle4j.NeedleContext
 
addInjectionProvider(InjectionProvider<?>...) - Method in class org.needle4j.injection.InjectionConfiguration
 
addObjectUnderTest(String, Object, ObjectUnderTest) - Method in class org.needle4j.NeedleContext
 
addProcessor(NeedleProcessor...) - Method in class org.needle4j.processor.ChainedNeedleProcessor
 
addProvider(InjectionProvider<?>...) - Method in class org.needle4j.junit.AbstractNeedleRuleBuilder
 
addSupplier(InjectionProviderInstancesSupplier...) - Method in class org.needle4j.junit.AbstractNeedleRuleBuilder
 
after() - Method in class org.needle4j.testng.DatabaseTestcase
Execute tear down database operation, if configured.
afterNeedleTestcase() - Method in class org.needle4j.testng.AbstractNeedleTestcase
 
Annotations - Class in org.needle4j.common
 
apply(T) - Method in interface org.needle4j.common.Predicate
 
apply(Statement, FrameworkMethod, Object) - Method in class org.needle4j.junit.DatabaseRule
 
apply(Statement, FrameworkMethod, Object) - Method in class org.needle4j.junit.NeedleRule
Before evaluation of the base statement, the test instance will initialized.
apply(Statement, Description) - Method in class org.needle4j.junit.testrule.DatabaseTestRule
 
apply(Statement, Description) - Method in class org.needle4j.junit.testrule.NeedleTestRule
 
apply(Annotation) - Method in class org.needle4j.predicate.IsSupportedAnnotationPredicate
 
applyAny(Annotation...) - Method in class org.needle4j.predicate.IsSupportedAnnotationPredicate
 
assertIsQualifier(Class<? extends Annotation>) - Static method in class org.needle4j.common.Annotations
 

B

before() - Method in class org.needle4j.testng.DatabaseTestcase
Execute setup database operation, if configured.
beforeNeedleTestcase() - Method in class org.needle4j.testng.AbstractNeedleTestcase
 
build() - Method in interface org.needle4j.common.Builder
 
build() - Method in interface org.needle4j.db.testdata.TestdataBuilder
Creates a new instance of generic type.
build() - Method in class org.needle4j.junit.AbstractRuleBuilder
 
buildAndSave() - Method in class org.needle4j.db.testdata.AbstractTestdataBuilder
Creates a new instance of generic type and saves the instance.
buildAndSave() - Method in interface org.needle4j.db.testdata.TestdataBuilder
Creates a new instance of generic type and saves the instance.
Builder<T> - Interface in org.needle4j.common
 

C

CDIInstanceInjectionProvider - Class in org.needle4j.injection
 
CDIInstanceInjectionProvider(Class<?>, InjectionConfiguration) - Constructor for class org.needle4j.injection.CDIInstanceInjectionProvider
 
ChainedNeedleProcessor - Class in org.needle4j.processor
NeedleProcessor that calls chain of processors.
ChainedNeedleProcessor(NeedleProcessor...) - Constructor for class org.needle4j.processor.ChainedNeedleProcessor
 
checkArgument(boolean, String, Object...) - Static method in class org.needle4j.common.Preconditions
Throws an IllegalArgumentException with formatted message if condition is not met.
checkState(boolean, String, Object...) - Static method in class org.needle4j.common.Preconditions
Throws an IllegalStateException with formatted message if condition is not met.
clone() - Method in class org.needle4j.configuration.NeedleConfiguration
 
ConfigurationLoader - Class in org.needle4j.configuration
 
createInstance(Class<T>, Object...) - Static method in class org.needle4j.reflection.ReflectionUtil
 
createMockComponent(Class<T>) - Method in class org.needle4j.mock.EasyMockProvider
Creates a mock object of a given class or interface.
createMockComponent(Class<T>) - Method in class org.needle4j.mock.MockitoProvider
Creates a mock object of a given class or interface.
createMockComponent(Class<T>) - Method in interface org.needle4j.mock.MockProvider
Creates a mock object of a given class or interface.
createSpyComponent(T) - Method in class org.needle4j.mock.MockitoProvider
Skipping creation, if the type is final or primitive.
createSpyComponent(T) - Method in interface org.needle4j.mock.SpyProvider
 

D

DatabaseRule - Class in org.needle4j.junit
The DatabaseRule provides access to the configured Database and execute optional configured DBOperation before and after a test.
DatabaseRule() - Constructor for class org.needle4j.junit.DatabaseRule
 
DatabaseRule(Class<?>...) - Constructor for class org.needle4j.junit.DatabaseRule
Deprecated.
DatabaseRule(DBOperation, Class<?>...) - Constructor for class org.needle4j.junit.DatabaseRule
Deprecated.
DatabaseRule(DBOperation) - Constructor for class org.needle4j.junit.DatabaseRule
 
DatabaseRule(String, DBOperation) - Constructor for class org.needle4j.junit.DatabaseRule
 
DatabaseRule(String) - Constructor for class org.needle4j.junit.DatabaseRule
 
databaseRule() - Static method in class org.needle4j.junit.NeedleBuilders
 
databaseRule(String) - Static method in class org.needle4j.junit.NeedleBuilders
 
DatabaseRuleBuilder - Class in org.needle4j.junit
 
DatabaseRuleBuilder() - Constructor for class org.needle4j.junit.DatabaseRuleBuilder
 
DatabaseTestcase - Class in org.needle4j.db
Base class for a database test case.
DatabaseTestcase() - Constructor for class org.needle4j.db.DatabaseTestcase
Creates an instance of DatabaseTestcase with the global configured persistence unit name and the global configured DBOperation.
DatabaseTestcase(DBOperation) - Constructor for class org.needle4j.db.DatabaseTestcase
Creates an instance of DatabaseTestcase with the global configured persistence unit name and overrides the global configured DBOperation with the given database operation.
DatabaseTestcase(String) - Constructor for class org.needle4j.db.DatabaseTestcase
Creates an instance of DatabaseTestcase with the given persistence unit name and the global configured DBOperation.
DatabaseTestcase(String, DBOperation) - Constructor for class org.needle4j.db.DatabaseTestcase
Creates an instance of DatabaseTestcase with the given persistence unit name and overrides the global configured DBOperation with the given database operation.
DatabaseTestcase(Class<?>...) - Constructor for class org.needle4j.db.DatabaseTestcase
Deprecated.
DatabaseTestcase(DBOperation, Class<?>...) - Constructor for class org.needle4j.db.DatabaseTestcase
Deprecated.
DatabaseTestcase - Class in org.needle4j.testng
 
DatabaseTestcase() - Constructor for class org.needle4j.testng.DatabaseTestcase
 
DatabaseTestcase(Class<?>...) - Constructor for class org.needle4j.testng.DatabaseTestcase
Deprecated.
DatabaseTestcase(DBOperation, Class<?>...) - Constructor for class org.needle4j.testng.DatabaseTestcase
Deprecated.
DatabaseTestcase(DBOperation) - Constructor for class org.needle4j.testng.DatabaseTestcase
 
DatabaseTestcase(String, DBOperation) - Constructor for class org.needle4j.testng.DatabaseTestcase
 
DatabaseTestcase(String) - Constructor for class org.needle4j.testng.DatabaseTestcase
 
databaseTestRule() - Static method in class org.needle4j.junit.NeedleBuilders
 
DatabaseTestRule - Class in org.needle4j.junit.testrule
 
DatabaseTestRule() - Constructor for class org.needle4j.junit.testrule.DatabaseTestRule
 
DatabaseTestRule(DBOperation) - Constructor for class org.needle4j.junit.testrule.DatabaseTestRule
 
DatabaseTestRule(String, DBOperation) - Constructor for class org.needle4j.junit.testrule.DatabaseTestRule
 
DatabaseTestRule(String) - Constructor for class org.needle4j.junit.testrule.DatabaseTestRule
 
DatabaseTestRuleBuilder - Class in org.needle4j.junit.testrule
 
DatabaseTestRuleBuilder() - Constructor for class org.needle4j.junit.testrule.DatabaseTestRuleBuilder
 
DBOperation - Interface in org.needle4j.db.operation
Database operations before and after test execution.
DefaultMockInjectionProvider - Class in org.needle4j.injection
 
DefaultMockInjectionProvider(Class<?>, InjectionConfiguration) - Constructor for class org.needle4j.injection.DefaultMockInjectionProvider
 
doRun(EntityManager) - Method in class org.needle4j.db.transaction.VoidRunnable
Hook method inside run().

E

EasyMockProvider - Class in org.needle4j.mock
An EasyMock specific MockProvider implementation.
EasyMockProvider() - Constructor for class org.needle4j.mock.EasyMockProvider
 
emptyRuleChain() - Static method in class org.needle4j.junit.NeedleBuilders
Returns a RuleChain without a TestRule.
equals(Object) - Method in class org.needle4j.db.configuration.PersistenceConfigurationFactory
 
executeInTransaction(Runnable<T>, boolean) - Method in class org.needle4j.db.transaction.TransactionHelper
Encapsulates execution of runnable.run() in transactions.
executeInTransaction(Runnable<T>) - Method in class org.needle4j.db.transaction.TransactionHelper
see executeInTransaction(runnable, clearAfterCommit) .
ExecuteScriptOperation - Class in org.needle4j.db.operation
Execute before and after sql scripts in test setup and tear down.
ExecuteScriptOperation(JdbcConfiguration) - Constructor for class org.needle4j.db.operation.ExecuteScriptOperation
 

F

FAKE - Static variable in interface org.needle4j.mock.SpyProvider
Just return the given instance.
forName(String) - Static method in class org.needle4j.reflection.ReflectionUtil
Returns the Class object associated with the class or interface with the given string name.
fromResource(String) - Method in class org.needle4j.junit.AbstractDatabaseRuleBuilder
 
fromResource(String) - Method in class org.needle4j.junit.AbstractRuleBuilder
 

G

get() - Static method in class org.needle4j.configuration.PropertyBasedConfigurationFactory
 
get(String) - Static method in class org.needle4j.configuration.PropertyBasedConfigurationFactory
 
get() - Method in interface org.needle4j.injection.InjectionProviderInstancesSupplier
Supplies a Set of InjectionProvider instances.
getAccessibleObject() - Method in class org.needle4j.injection.InjectionTargetInformation
Returns the AccessibleObject of the injection target.
getAllAnnotatedFields(Class<?>) - Static method in class org.needle4j.reflection.ReflectionUtil
 
getAllFields(Class<?>) - Static method in class org.needle4j.reflection.ReflectionUtil
 
getAllFieldsAssignableFrom(Class<?>, Class<?>) - Static method in class org.needle4j.reflection.ReflectionUtil
 
getAllFieldsAssinableFrom(Class<?>, Class<?>) - Static method in class org.needle4j.reflection.ReflectionUtil
Deprecated.
typo
getAllFieldsWithAnnotation(Class<?>, Class<? extends Annotation>) - Static method in class org.needle4j.reflection.ReflectionUtil
 
getAllFieldsWithAnnotation(Object, Class<? extends Annotation>) - Static method in class org.needle4j.reflection.ReflectionUtil
 
getAllFieldsWithSupportedAnnotation(Class<?>, IsSupportedAnnotationPredicate) - Static method in class org.needle4j.reflection.ReflectionUtil
 
getAllMethodsWithAnnotation(Class<?>, Class<? extends Annotation>) - Static method in class org.needle4j.reflection.ReflectionUtil
 
getAnnotatedTestcaseFields(Class<? extends Annotation>) - Method in class org.needle4j.NeedleContext
 
getAnnotation(Class<? extends Annotation>) - Method in class org.needle4j.injection.InjectionTargetInformation
Returns the Annotation object if an annotation for the specified type is present on the injection target, otherwise null.
getAnnotations() - Method in class org.needle4j.injection.InjectionTargetInformation
Returns an array of all annotations present on the injection target.
getChainedNeedleProcessor() - Method in class org.needle4j.injection.InjectionConfiguration
 
getClasses(String...) - Static method in class org.needle4j.reflection.ReflectionUtil
 
getCustomInjectionAnnotations() - Method in class org.needle4j.configuration.NeedleConfiguration
Returns the configured custom Annotation classes for default mock injections.
getCustomInjectionProviderClasses() - Method in class org.needle4j.configuration.NeedleConfiguration
Returns the configured custom InjectionProvider classes.
getCustomInjectionProviderInstancesSupplierClasses() - Method in class org.needle4j.configuration.NeedleConfiguration
 
getDBOperationClassName() - Method in class org.needle4j.configuration.NeedleConfiguration
Returns the configured database operation class name.
getEntityManager() - Method in class org.needle4j.db.configuration.PersistenceConfigurationFactory
Returns the EntityManager instance which is associated with the configured persistence context.
getEntityManager() - Method in class org.needle4j.db.DatabaseTestcase
Returns the EntityManager.
getEntityManager() - Method in class org.needle4j.db.transaction.TransactionHelper
 
getEntityManagerFactory() - Method in class org.needle4j.db.configuration.PersistenceConfigurationFactory
Returns the EntityManagerFactory.
getEntityManagerFactory() - Method in class org.needle4j.db.DatabaseTestcase
Returns the EntityManagerFactory.
getField(Class<?>, String) - Static method in class org.needle4j.reflection.ReflectionUtil
 
getFieldValue(Object, Class<?>, String) - Static method in class org.needle4j.reflection.ReflectionUtil
Get the value of a given field on a given object via reflection.
getFieldValue(Object, Field) - Static method in class org.needle4j.reflection.ReflectionUtil
Get the value of a given field on a given object via reflection.
getFieldValue(Object, String) - Static method in class org.needle4j.reflection.ReflectionUtil
Get the value of a given field on a given object via reflection.
getGenericTypeParameter() - Method in class org.needle4j.injection.InjectionTargetInformation
 
getHibernateCfgFilename() - Method in class org.needle4j.configuration.NeedleConfiguration
Returns the name of the configured hibernate.cfg file
getInjectedObject(Class<?>) - Method in class org.needle4j.db.DatabaseTestcase
 
getInjectedObject(Class<?>) - Method in class org.needle4j.injection.DefaultMockInjectionProvider
 
getInjectedObject(Class<?>) - Method in interface org.needle4j.injection.InjectionProvider
Provides an instance of T.
getInjectedObject(Class<?>) - Method in class org.needle4j.injection.MockProviderInjectionProvider
 
getInjectedObject(Object) - Method in class org.needle4j.NeedleContext
 
getInjectedObject(Object) - Method in class org.needle4j.NeedleTestcase
Returns the injected object for the given key, or null if no object was injected with the given key.
getInjectedObjects() - Method in class org.needle4j.NeedleContext
 
getInjectionIntoAnnotationProcessor() - Method in class org.needle4j.injection.InjectionConfiguration
 
getInjectionProvider() - Method in class org.needle4j.injection.InjectionConfiguration
 
getJdbcDriver() - Method in class org.needle4j.configuration.NeedleConfiguration
 
getJdbcDriver() - Method in class org.needle4j.db.operation.JdbcConfiguration
Returns the name of the JDBC driver to be used to connect to the database.
getJdbcPassword() - Method in class org.needle4j.configuration.NeedleConfiguration
 
getJdbcPassword() - Method in class org.needle4j.db.operation.JdbcConfiguration
Returns the password to be used to connect to the database.
getJdbcUrl() - Method in class org.needle4j.configuration.NeedleConfiguration
 
getJdbcUrl() - Method in class org.needle4j.db.operation.JdbcConfiguration
Returns the JDBC connection url to be used to connect to the database
getJdbcUser() - Method in class org.needle4j.configuration.NeedleConfiguration
 
getJdbcUser() - Method in class org.needle4j.db.operation.JdbcConfiguration
Returns the user name to be used to connect to the database.
getKey() - Method in class org.needle4j.common.MapEntry
 
getKey(InjectionTargetInformation) - Method in class org.needle4j.db.DatabaseTestcase
 
getKey(InjectionTargetInformation) - Method in class org.needle4j.injection.CDIInstanceInjectionProvider
 
getKey(InjectionTargetInformation) - Method in class org.needle4j.injection.DefaultMockInjectionProvider
 
getKey(InjectionTargetInformation) - Method in interface org.needle4j.injection.InjectionProvider
Returns a key object, which identifies the provided object.
getKey(InjectionTargetInformation) - Method in class org.needle4j.injection.MockProviderInjectionProvider
 
getKey(InjectionTargetInformation) - Method in class org.needle4j.injection.ResourceMockInjectionProvider
 
getMethod(Class<?>, String, Class<?>...) - Static method in class org.needle4j.reflection.ReflectionUtil
 
getMethods(Class<?>) - Static method in class org.needle4j.reflection.ReflectionUtil
 
getMockAnnotationProcessor() - Method in class org.needle4j.injection.InjectionConfiguration
 
getMockProvider() - Method in class org.needle4j.injection.InjectionConfiguration
 
getMockProvider() - Method in class org.needle4j.NeedleTestcase
Returns an instance of the configured MockProvider
getMockProviderClassName() - Method in class org.needle4j.configuration.NeedleConfiguration
Returns the name of the configured mock provider class
getObjectsUnderTest() - Method in class org.needle4j.NeedleContext
 
getObjectsUnderTestIds() - Method in class org.needle4j.NeedleContext
 
getObjectUnderTest(String) - Method in class org.needle4j.NeedleContext
 
getObjectUnderTestAnnotation(String) - Method in class org.needle4j.NeedleContext
 
getPersistenceunitName() - Method in class org.needle4j.configuration.NeedleConfiguration
Returns the configured jpa persistence unit name.
getPostConstructProcessor() - Method in class org.needle4j.injection.InjectionConfiguration
 
getSpyAnnotation() - Method in class org.needle4j.mock.MockitoProvider
 
getSpyAnnotation() - Method in interface org.needle4j.mock.SpyProvider
 
getSpyProvider() - Method in class org.needle4j.injection.InjectionConfiguration
 
getTest() - Method in class org.needle4j.NeedleContext
 
getTestcaseInjectionProcessor() - Method in class org.needle4j.injection.InjectionConfiguration
 
getTransactionHelper() - Method in class org.needle4j.db.DatabaseTestcase
Returns an instance of TransactionHelper
getType() - Method in class org.needle4j.injection.InjectionTargetInformation
Returns the class object from the injection target.
getValue() - Method in class org.needle4j.common.MapEntry
 

H

H2DeleteOperation - Class in org.needle4j.db.operation.h2
Delete everything from the DB: This cannot be done with the JPA, because the order of deletion matters.
H2DeleteOperation(JdbcConfiguration) - Constructor for class org.needle4j.db.operation.h2.H2DeleteOperation
 
handleInjectionProvider(Collection<InjectionProvider<?>>, InjectionTargetInformation) - Method in class org.needle4j.injection.InjectionConfiguration
 
hashCode() - Method in class org.needle4j.db.configuration.PersistenceConfigurationFactory
 
HSQLDeleteOperation - Class in org.needle4j.db.operation.hsql
Delete everything from the DB: This cannot be done with the JPA, because the order of deletion matters.
HSQLDeleteOperation(JdbcConfiguration) - Constructor for class org.needle4j.db.operation.hsql.HSQLDeleteOperation
 

I

InjectInto - Annotation Type in org.needle4j.annotation
Is used to inject an instance into a specific ObjectUnderTest instance.
InjectIntoMany - Annotation Type in org.needle4j.annotation
Is used to inject an instance into multiple ObjectUnderTest instances.
InjectionAnnotationProcessor - Class in org.needle4j.injection
 
InjectionAnnotationProcessor(IsSupportedAnnotationPredicate) - Constructor for class org.needle4j.injection.InjectionAnnotationProcessor
 
InjectionConfiguration - Class in org.needle4j.injection
 
InjectionConfiguration() - Constructor for class org.needle4j.injection.InjectionConfiguration
 
InjectionConfiguration(NeedleConfiguration) - Constructor for class org.needle4j.injection.InjectionConfiguration
 
InjectionProvider<T> - Interface in org.needle4j.injection
Provides an instances of T and verifies an injection target.
InjectionProviderInstancesSupplier - Interface in org.needle4j.injection
Supplies a Set of InjectionProvider instances.
InjectionProviders - Class in org.needle4j.injection
Utility class for creating InjectionProviders with default behavior.
InjectionTargetInformation - Class in org.needle4j.injection
Provides information about the injection target.
InjectionTargetInformation(Class<?>, Field) - Constructor for class org.needle4j.injection.InjectionTargetInformation
Creates an instance of InjectionTargetInformation for Field injection.
InjectionTargetInformation(Class<?>, Method, Type, Annotation[]) - Constructor for class org.needle4j.injection.InjectionTargetInformation
Creates an instance of InjectionTargetInformation for Method injection.
InjectionTargetInformation(Class<?>, Constructor<?>, Type, Annotation[]) - Constructor for class org.needle4j.injection.InjectionTargetInformation
Creates an instance of InjectionTargetInformation for Constructor injection.
InjectionVerifier - Interface in org.needle4j.injection
 
invokeMethod(Object, Class<?>, String, Object...) - Static method in class org.needle4j.reflection.ReflectionUtil
Invoke a given method with given arguments on a given object via reflection.
invokeMethod(Method, Object, Object...) - Static method in class org.needle4j.reflection.ReflectionUtil
 
invokeMethod(Object, String, Object...) - Static method in class org.needle4j.reflection.ReflectionUtil
Invoke a given method with given arguments on a given object via reflection.
isAnnotationPresent(Class<? extends Annotation>) - Method in class org.needle4j.injection.InjectionTargetInformation
Returns true if an annotation for the specified type is present on the injection target, else false.
isAnnotationSupported(Class<? extends Annotation>) - Method in class org.needle4j.injection.InjectionConfiguration
 
isQualifier(Class<? extends Annotation>) - Static method in class org.needle4j.common.Annotations
 
isSpyRequested(Field) - Method in class org.needle4j.mock.MockitoProvider
 
isSpyRequested(Field) - Method in interface org.needle4j.mock.SpyProvider
 
IsSupportedAnnotationPredicate - Class in org.needle4j.predicate
Evaluates if an annotation is supported.
IsSupportedAnnotationPredicate(InjectionConfiguration) - Constructor for class org.needle4j.predicate.IsSupportedAnnotationPredicate
 

J

JdbcConfiguration - Class in org.needle4j.db.operation
JDBC configuration properties.
JdbcConfiguration(String, String, String, String) - Constructor for class org.needle4j.db.operation.JdbcConfiguration
Creates an instance of JdbcConfiguration

L

loadAllObjects(Class<T>) - Method in class org.needle4j.db.transaction.TransactionHelper
Returns all objects of the given class in persistence context.
loadObject(Class<T>, Object) - Method in class org.needle4j.db.transaction.TransactionHelper
Finds and returns the object of the given id in the persistence context.
loadObject(EntityManager, Class<T>, Object) - Method in class org.needle4j.db.transaction.TransactionHelper
 
loadResource(String) - Static method in class org.needle4j.configuration.ConfigurationLoader
Returns an input stream for reading the specified resource.
lookupClass(Class<T>, String) - Static method in class org.needle4j.reflection.ReflectionUtil
 
lookupMockProviderClass(String) - Static method in class org.needle4j.injection.InjectionConfiguration
 

M

MapEntry<K,V> - Class in org.needle4j.common
 
MapEntry(K, V) - Constructor for class org.needle4j.common.MapEntry
 
Mock - Annotation Type in org.needle4j.annotation
Allows shorthand mock creation with the configured MockProvider Example: public void Test { @Rule public NeedleRule needle = new NeedleRule(); @Mock private Queue queue; @Test public void test(){ ... } }
MockAnnotationProcessor - Class in org.needle4j.mock
 
MockAnnotationProcessor(InjectionConfiguration) - Constructor for class org.needle4j.mock.MockAnnotationProcessor
 
MockitoProvider - Class in org.needle4j.mock
A Mockito specific MockProvider implementation.
MockitoProvider() - Constructor for class org.needle4j.mock.MockitoProvider
 
MockProvider - Interface in org.needle4j.mock
Interface for abstraction of a specific mock provider.
MockProviderInjectionProvider - Class in org.needle4j.injection
 
MockProviderInjectionProvider(MockProvider) - Constructor for class org.needle4j.injection.MockProviderInjectionProvider
 

N

NeedleBuilders - Class in org.needle4j.junit
Allows static factory method access to selected needle components.
NeedleConfiguration - Class in org.needle4j.configuration
 
NeedleConfiguration() - Constructor for class org.needle4j.configuration.NeedleConfiguration
 
NeedleContext - Class in org.needle4j
 
NeedleContext(Object) - Constructor for class org.needle4j.NeedleContext
 
needleMockitoRule() - Static method in class org.needle4j.junit.NeedleBuilders
 
needleMockitoTestRule(Object) - Static method in class org.needle4j.junit.NeedleBuilders
 
NeedleProcessor - Interface in org.needle4j.processor
 
needleRule() - Static method in class org.needle4j.junit.NeedleBuilders
 
needleRule(String) - Static method in class org.needle4j.junit.NeedleBuilders
 
NeedleRule - Class in org.needle4j.junit
JUnit MethodRule for the initialization of the test.
NeedleRule() - Constructor for class org.needle4j.junit.NeedleRule
 
NeedleRule(InjectionProvider<?>...) - Constructor for class org.needle4j.junit.NeedleRule
 
NeedleRuleBuilder - Class in org.needle4j.junit
 
NeedleRuleBuilder() - Constructor for class org.needle4j.junit.NeedleRuleBuilder
 
NeedleTestcase - Class in org.needle4j
Abstract test case to process and initialize all fields annotated with ObjectUnderTest.
needleTestRule(Object) - Static method in class org.needle4j.junit.NeedleBuilders
 
NeedleTestRule - Class in org.needle4j.junit.testrule
JUnit TestRule for the initialization of the test.
NeedleTestRule(Object, InjectionProvider<?>...) - Constructor for class org.needle4j.junit.testrule.NeedleTestRule
 
NeedleTestRuleBuilder - Class in org.needle4j.junit.testrule
Builder that created a new NeedleTestRule.
NeedleTestRuleBuilder(Object) - Constructor for class org.needle4j.junit.testrule.NeedleTestRuleBuilder
Create new instance.

O

ObjectUnderTest - Annotation Type in org.needle4j.annotation
Is used to specify an object under test.
ObjectUnderTestInstantiationException - Exception in org.needle4j
Thrown when an ObjectUnderTest instantiation fails, e.g. if the associated class object has no corresponding constructor or the class is abstract, a primitive type or an interface.
ObjectUnderTestInstantiationException() - Constructor for exception org.needle4j.ObjectUnderTestInstantiationException
 
ObjectUnderTestInstantiationException(String, Throwable) - Constructor for exception org.needle4j.ObjectUnderTestInstantiationException
 
ObjectUnderTestInstantiationException(String) - Constructor for exception org.needle4j.ObjectUnderTestInstantiationException
 
ObjectUnderTestInstantiationException(Throwable) - Constructor for exception org.needle4j.ObjectUnderTestInstantiationException
 
org.needle4j - package org.needle4j
 
org.needle4j.annotation - package org.needle4j.annotation
 
org.needle4j.common - package org.needle4j.common
 
org.needle4j.configuration - package org.needle4j.configuration
 
org.needle4j.db - package org.needle4j.db
 
org.needle4j.db.configuration - package org.needle4j.db.configuration
 
org.needle4j.db.operation - package org.needle4j.db.operation
 
org.needle4j.db.operation.h2 - package org.needle4j.db.operation.h2
 
org.needle4j.db.operation.hsql - package org.needle4j.db.operation.hsql
 
org.needle4j.db.testdata - package org.needle4j.db.testdata
 
org.needle4j.db.transaction - package org.needle4j.db.transaction
 
org.needle4j.injection - package org.needle4j.injection
 
org.needle4j.junit - package org.needle4j.junit
 
org.needle4j.junit.testrule - package org.needle4j.junit.testrule
 
org.needle4j.mock - package org.needle4j.mock
 
org.needle4j.postconstruct - package org.needle4j.postconstruct
 
org.needle4j.predicate - package org.needle4j.predicate
 
org.needle4j.processor - package org.needle4j.processor
 
org.needle4j.reflection - package org.needle4j.reflection
 
org.needle4j.testng - package org.needle4j.testng
 
outerRule(TestRule) - Static method in class org.needle4j.junit.NeedleBuilders
Returns a RuleChain with a single TestRule.

P

persist(T, EntityManager) - Method in class org.needle4j.db.transaction.TransactionHelper
 
persist(T) - Method in class org.needle4j.db.transaction.TransactionHelper
 
PersistenceConfigurationFactory - Class in org.needle4j.db.configuration
Factory to create and access the configured persistence context.
PersistenceConfigurationFactory(String) - Constructor for class org.needle4j.db.configuration.PersistenceConfigurationFactory
 
PersistenceConfigurationFactory(Class<?>[]) - Constructor for class org.needle4j.db.configuration.PersistenceConfigurationFactory
 
PostConstructProcessor - Class in org.needle4j.postconstruct
Handles execution of postConstruction methods of instances marked with ObjectUnderTest.postConstruct() Note: Behavior in an inheritance hierarchy is not defined by the common annotations specification
PostConstructProcessor(Set<Class<?>>) - Constructor for class org.needle4j.postconstruct.PostConstructProcessor
 
Preconditions - Class in org.needle4j.common
Utility class for checks and verifications.
Predicate<T> - Interface in org.needle4j.common
We really should include guava to avoid redundant code.
process(NeedleContext) - Method in class org.needle4j.injection.InjectionAnnotationProcessor
 
process(NeedleContext) - Method in class org.needle4j.injection.TestcaseInjectionProcessor
 
process(NeedleContext) - Method in class org.needle4j.mock.MockAnnotationProcessor
 
process(NeedleContext) - Method in class org.needle4j.postconstruct.PostConstructProcessor
calls process(instance) for each object under test, only if field is marked with ObjectUnderTest(postConstruct=true), else ignored.
process(NeedleContext) - Method in class org.needle4j.processor.ChainedNeedleProcessor
 
process(NeedleContext) - Method in interface org.needle4j.processor.NeedleProcessor
 
PropertyBasedConfigurationFactory - Class in org.needle4j.configuration
 
providerForInstance(T) - Static method in class org.needle4j.injection.InjectionProviders
InjectionProvider that provides a singleton instance of type T whenever injection is required.
providerForNamedInstance(String, T) - Static method in class org.needle4j.injection.InjectionProviders
InjectionProvider that provides a singleton instance of type T for every injection point that is annotated with a Named qualifier with value "name".
providerForQualifiedInstance(Class<? extends Annotation>, T) - Static method in class org.needle4j.injection.InjectionProviders
InjectionProvider that provides a singleton instance of type T for every injection point that is annotated with the given qualifier.
providersForInstancesSuppliers(InjectionProviderInstancesSupplier...) - Static method in class org.needle4j.injection.InjectionProviders
Create array of providers from given suppliers.
providersToArray(Collection<InjectionProvider<?>>) - Static method in class org.needle4j.injection.InjectionProviders
Create array of InjectionProviders for given collection.
providersToSet(InjectionProvider<?>...) - Static method in class org.needle4j.injection.InjectionProviders
 

R

ReflectionUtil - Class in org.needle4j.reflection
 
resetToDefault(Object...) - Method in class org.needle4j.mock.EasyMockProvider
Resets the given mock objects and turns them to a mock with default behavior.
resetToDefault(Object) - Method in class org.needle4j.mock.EasyMockProvider
Resets the given mock object and turns them to a mock with default behavior.
resetToNice(Object...) - Method in class org.needle4j.mock.EasyMockProvider
Resets the given mock objects and turns them to a mock with nice behavior.
resetToNice(Object) - Method in class org.needle4j.mock.EasyMockProvider
Resets the given mock object and turns them to a mock with nice behavior.
resetToStrict(Object...) - Method in class org.needle4j.mock.EasyMockProvider
Resets the given mock objects and turns them to a mock with strict behavior.
resetToStrict(Object) - Method in class org.needle4j.mock.EasyMockProvider
Resets the given mock object and turns them to a mock with strict behavior.
ResourceMockInjectionProvider - Class in org.needle4j.injection
 
ResourceMockInjectionProvider(InjectionConfiguration) - Constructor for class org.needle4j.injection.ResourceMockInjectionProvider
 
run(EntityManager) - Method in interface org.needle4j.db.transaction.Runnable
Operation to be automatically called inside executeInTransaction().
run(EntityManager) - Method in class org.needle4j.db.transaction.VoidRunnable
Operation to be automatically called inside executeInTransaction().
Runnable<T> - Interface in org.needle4j.db.transaction
Interface for passing algorithms to executeInTransaction().

S

saveObject(T) - Method in class org.needle4j.db.transaction.TransactionHelper
Saves the given object in the database.
setCustomInjectionAnnotations(Set<Class<Annotation>>) - Method in class org.needle4j.configuration.NeedleConfiguration
 
setCustomInjectionProviderClasses(Set<Class<InjectionProvider<?>>>) - Method in class org.needle4j.configuration.NeedleConfiguration
 
setCustomInjectionProviderInstancesSupplierClasses(Set<Class<InjectionProviderInstancesSupplier>>) - Method in class org.needle4j.configuration.NeedleConfiguration
 
setDBOperationClassName(String) - Method in class org.needle4j.configuration.NeedleConfiguration
 
setField(Field, Object, Object) - Static method in class org.needle4j.reflection.ReflectionUtil
 
setField(String, Object, Object) - Static method in class org.needle4j.reflection.ReflectionUtil
 
setFieldValue(Object, Class<?>, String, Object) - Static method in class org.needle4j.reflection.ReflectionUtil
Changing the value of a given field.
setFieldValue(Object, String, Object) - Static method in class org.needle4j.reflection.ReflectionUtil
Changing the value of a given field.
setHibernateCfgFilename(String) - Method in class org.needle4j.configuration.NeedleConfiguration
 
setJdbcDriver(String) - Method in class org.needle4j.configuration.NeedleConfiguration
 
setJdbcPassword(String) - Method in class org.needle4j.configuration.NeedleConfiguration
 
setJdbcUrl(String) - Method in class org.needle4j.configuration.NeedleConfiguration
 
setJdbcUser(String) - Method in class org.needle4j.configuration.NeedleConfiguration
 
setMockProviderClassName(String) - Method in class org.needle4j.configuration.NeedleConfiguration
 
setPersistenceunitName(String) - Method in class org.needle4j.configuration.NeedleConfiguration
 
setUpOperation() - Method in interface org.needle4j.db.operation.DBOperation
Execute the database operation in test setup.
setUpOperation() - Method in class org.needle4j.db.operation.ExecuteScriptOperation
Execute before.sql script in test setup.
setUpOperation() - Method in class org.needle4j.db.operation.hsql.HSQLDeleteOperation
Execute the database operation in test setup.
setValue(Object) - Method in class org.needle4j.common.MapEntry
 
SPY_ANNOTATION_FQN - Static variable in class org.needle4j.mock.MockitoProvider
 
SpyProvider - Interface in org.needle4j.mock
Interface to abstract the creation of spy() instances, if the used framework allows to do so.
supplierForInjectionProviders(InjectionProvider<?>...) - Static method in class org.needle4j.injection.InjectionProviders
Creates a new Supplier.
supplierForInjectionProviders(Set<InjectionProvider<?>>) - Static method in class org.needle4j.injection.InjectionProviders
 

T

tearDownOperation() - Method in interface org.needle4j.db.operation.DBOperation
Execute the database operation in test tear down.
tearDownOperation() - Method in class org.needle4j.db.operation.ExecuteScriptOperation
Execute after.sql script in test tear down.
tearDownOperation() - Method in class org.needle4j.db.operation.hsql.HSQLDeleteOperation
Execute the database operation in test tear down.
TestcaseInjectionProcessor - Class in org.needle4j.injection
 
TestcaseInjectionProcessor(InjectionConfiguration) - Constructor for class org.needle4j.injection.TestcaseInjectionProcessor
 
TestdataBuilder<T> - Interface in org.needle4j.db.testdata
Interface for a concrete TestDataBuilder implementation.
toString() - Method in class org.needle4j.configuration.NeedleConfiguration
 
TransactionHelper - Class in org.needle4j.db.transaction
Utility class to manage transactions conveniently.
TransactionHelper(EntityManager) - Constructor for class org.needle4j.db.transaction.TransactionHelper
 

V

verify(InjectionTargetInformation) - Method in class org.needle4j.db.DatabaseTestcase
 
verify(InjectionTargetInformation) - Method in class org.needle4j.injection.DefaultMockInjectionProvider
 
verify(InjectionTargetInformation) - Method in interface org.needle4j.injection.InjectionVerifier
Verifies the injection target.
verify(InjectionTargetInformation) - Method in class org.needle4j.injection.MockProviderInjectionProvider
 
VoidRunnable - Class in org.needle4j.db.transaction
Default implementation of Runnable.
VoidRunnable() - Constructor for class org.needle4j.db.transaction.VoidRunnable
 

W

withDBOperation(Class<? extends AbstractDBOperation>) - Method in class org.needle4j.junit.AbstractDatabaseRuleBuilder
 
withHibernateCfgFilename(String) - Method in class org.needle4j.junit.AbstractDatabaseRuleBuilder
 
withJdbcDriver(String) - Method in class org.needle4j.junit.AbstractDatabaseRuleBuilder
 
withJdbcPassword(String) - Method in class org.needle4j.junit.AbstractDatabaseRuleBuilder
 
withJdbcUrl(String) - Method in class org.needle4j.junit.AbstractDatabaseRuleBuilder
 
withJdbcUser(String) - Method in class org.needle4j.junit.AbstractDatabaseRuleBuilder
 
withMockProvider(Class<? extends MockProvider>) - Method in class org.needle4j.junit.AbstractNeedleRuleBuilder
 
withOuter(MethodRule) - Method in class org.needle4j.junit.NeedleRule
Encloses the added rule.
withOuter(MethodRule) - Method in class org.needle4j.junit.NeedleRuleBuilder
 
withPersistenceUnit(String) - Method in class org.needle4j.junit.AbstractDatabaseRuleBuilder
 
A B C D E F G H I J L M N O P R S T V W 

Copyright © 2014. All rights reserved.