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

A

AbstractDBOperation - Class in de.akquinet.jbosscc.needle.db.operation
An abstract implementation of DBOperation with common jdbc operations.
AbstractDBOperation(JdbcConfiguration) - Constructor for class de.akquinet.jbosscc.needle.db.operation.AbstractDBOperation
 
AbstractNeedleTestcase - Class in de.akquinet.jbosscc.needle.testng
 
AbstractNeedleTestcase(InjectionProvider<?>...) - Constructor for class de.akquinet.jbosscc.needle.testng.AbstractNeedleTestcase
Creates an instance of NeedleTestcase with optional additional injection provider.
AbstractTestdataBuilder<T> - Class in de.akquinet.jbosscc.needle.db.testdata
An abstract implementation of TestdataBuilder.
AbstractTestdataBuilder(EntityManager) - Constructor for class de.akquinet.jbosscc.needle.db.testdata.AbstractTestdataBuilder
Creates a new TestdataBuilder with persistence.
AbstractTestdataBuilder() - Constructor for class de.akquinet.jbosscc.needle.db.testdata.AbstractTestdataBuilder
Creates a new TestdataBuilder without persistence.
addInjectedObject(Object, Object) - Method in class de.akquinet.jbosscc.needle.NeedleContext
 
addInjectionProvider(InjectionProvider<?>...) - Method in class de.akquinet.jbosscc.needle.injection.InjectionConfiguration
 
addInjectionProvider(InjectionProvider<?>...) - Method in class de.akquinet.jbosscc.needle.NeedleTestcase
 
addObjectUnderTest(String, Object) - Method in class de.akquinet.jbosscc.needle.NeedleContext
 
after() - Method in class de.akquinet.jbosscc.needle.db.DatabaseTestcase
Execute tear down database operation, if configured.
after() - Method in class de.akquinet.jbosscc.needle.testng.DatabaseTestcase
Execute tear down database operation, if configured.
afterNeedleTestcase() - Method in class de.akquinet.jbosscc.needle.testng.AbstractNeedleTestcase
 
apply(Statement, FrameworkMethod, Object) - Method in class de.akquinet.jbosscc.needle.junit.DatabaseRule
 
apply(Statement, FrameworkMethod, Object) - Method in class de.akquinet.jbosscc.needle.junit.NeedleRule
Before evaluation of the base statement, the test instance will initialized.
apply(Statement, Description) - Method in class de.akquinet.jbosscc.needle.junit.testrule.DatabaseTestRule
 
apply(Statement, Description) - Method in class de.akquinet.jbosscc.needle.junit.testrule.NeedleTestRule
 

B

before() - Method in class de.akquinet.jbosscc.needle.db.DatabaseTestcase
Execute setup database operation, if configured.
before() - Method in class de.akquinet.jbosscc.needle.testng.DatabaseTestcase
Execute setup database operation, if configured.
beforeNeedleTestcase() - Method in class de.akquinet.jbosscc.needle.testng.AbstractNeedleTestcase
 
build() - Method in interface de.akquinet.jbosscc.needle.db.testdata.TestdataBuilder
Creates a new instance of type T
buildAndSave() - Method in class de.akquinet.jbosscc.needle.db.testdata.AbstractTestdataBuilder
Creates a new instance of type T and saves the instance.
buildAndSave() - Method in interface de.akquinet.jbosscc.needle.db.testdata.TestdataBuilder
Creates a new instance of type T and saves the instance.

C

closeConnection() - Method in class de.akquinet.jbosscc.needle.db.operation.AbstractDBOperation
Close the connection to the database.
commit() - Method in class de.akquinet.jbosscc.needle.db.operation.AbstractDBOperation
Commits the current transaction.
ConfigurationLoader - Class in de.akquinet.jbosscc.needle.configuration
 
createInstance(Class<T>, Object...) - Static method in class de.akquinet.jbosscc.needle.reflection.ReflectionUtil
 
createMockComponent(Class<T>) - Method in class de.akquinet.jbosscc.needle.mock.EasyMockProvider
Creates a mock object of a given class or interface.
createMockComponent(Class<T>) - Method in class de.akquinet.jbosscc.needle.mock.MockitoProvider
Creates a mock object of a given class or interface.
createMockComponent(Class<T>) - Method in interface de.akquinet.jbosscc.needle.mock.MockProvider
Creates a mock object of a given class or interface.

D

DatabaseRule - Class in de.akquinet.jbosscc.needle.junit
The DatabaseRule provides access to the configured Database and execute optional configured DBOperation before and after a test.
DatabaseRule() - Constructor for class de.akquinet.jbosscc.needle.junit.DatabaseRule
 
DatabaseRule(Class<?>...) - Constructor for class de.akquinet.jbosscc.needle.junit.DatabaseRule
Deprecated. 
DatabaseRule(DBOperation, Class<?>...) - Constructor for class de.akquinet.jbosscc.needle.junit.DatabaseRule
Deprecated. 
DatabaseRule(DBOperation) - Constructor for class de.akquinet.jbosscc.needle.junit.DatabaseRule
 
DatabaseRule(String, DBOperation) - Constructor for class de.akquinet.jbosscc.needle.junit.DatabaseRule
 
DatabaseRule(String) - Constructor for class de.akquinet.jbosscc.needle.junit.DatabaseRule
 
DatabaseTestcase - Class in de.akquinet.jbosscc.needle.db
Base class for a database test case.
DatabaseTestcase() - Constructor for class de.akquinet.jbosscc.needle.db.DatabaseTestcase
Creates an instance of DatabaseTestcase with the global configured persistence unit name and the global configured DBOperation.
DatabaseTestcase(DBOperation) - Constructor for class de.akquinet.jbosscc.needle.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 de.akquinet.jbosscc.needle.db.DatabaseTestcase
Creates an instance of DatabaseTestcase with the given persistence unit name and the global configured DBOperation.
DatabaseTestcase(String, DBOperation) - Constructor for class de.akquinet.jbosscc.needle.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 de.akquinet.jbosscc.needle.db.DatabaseTestcase
Deprecated. 
DatabaseTestcase(DBOperation, Class<?>...) - Constructor for class de.akquinet.jbosscc.needle.db.DatabaseTestcase
Deprecated. 
DatabaseTestcase - Class in de.akquinet.jbosscc.needle.testng
 
DatabaseTestcase() - Constructor for class de.akquinet.jbosscc.needle.testng.DatabaseTestcase
 
DatabaseTestcase(Class<?>...) - Constructor for class de.akquinet.jbosscc.needle.testng.DatabaseTestcase
Deprecated. 
DatabaseTestcase(DBOperation, Class<?>...) - Constructor for class de.akquinet.jbosscc.needle.testng.DatabaseTestcase
Deprecated. 
DatabaseTestcase(DBOperation) - Constructor for class de.akquinet.jbosscc.needle.testng.DatabaseTestcase
 
DatabaseTestcase(String, DBOperation) - Constructor for class de.akquinet.jbosscc.needle.testng.DatabaseTestcase
 
DatabaseTestcase(String) - Constructor for class de.akquinet.jbosscc.needle.testng.DatabaseTestcase
 
DatabaseTestRule - Class in de.akquinet.jbosscc.needle.junit.testrule
 
DatabaseTestRule() - Constructor for class de.akquinet.jbosscc.needle.junit.testrule.DatabaseTestRule
 
DatabaseTestRule(DBOperation) - Constructor for class de.akquinet.jbosscc.needle.junit.testrule.DatabaseTestRule
 
DatabaseTestRule(String, DBOperation) - Constructor for class de.akquinet.jbosscc.needle.junit.testrule.DatabaseTestRule
 
DatabaseTestRule(String) - Constructor for class de.akquinet.jbosscc.needle.junit.testrule.DatabaseTestRule
 
DBOperation - Interface in de.akquinet.jbosscc.needle.db.operation
Database operations before and after test execution.
de.akquinet.jbosscc.needle - package de.akquinet.jbosscc.needle
 
de.akquinet.jbosscc.needle.annotation - package de.akquinet.jbosscc.needle.annotation
 
de.akquinet.jbosscc.needle.common - package de.akquinet.jbosscc.needle.common
 
de.akquinet.jbosscc.needle.configuration - package de.akquinet.jbosscc.needle.configuration
 
de.akquinet.jbosscc.needle.db - package de.akquinet.jbosscc.needle.db
 
de.akquinet.jbosscc.needle.db.configuration - package de.akquinet.jbosscc.needle.db.configuration
 
de.akquinet.jbosscc.needle.db.operation - package de.akquinet.jbosscc.needle.db.operation
 
de.akquinet.jbosscc.needle.db.operation.h2 - package de.akquinet.jbosscc.needle.db.operation.h2
 
de.akquinet.jbosscc.needle.db.operation.hsql - package de.akquinet.jbosscc.needle.db.operation.hsql
 
de.akquinet.jbosscc.needle.db.testdata - package de.akquinet.jbosscc.needle.db.testdata
 
de.akquinet.jbosscc.needle.db.transaction - package de.akquinet.jbosscc.needle.db.transaction
 
de.akquinet.jbosscc.needle.injection - package de.akquinet.jbosscc.needle.injection
 
de.akquinet.jbosscc.needle.junit - package de.akquinet.jbosscc.needle.junit
 
de.akquinet.jbosscc.needle.junit.testrule - package de.akquinet.jbosscc.needle.junit.testrule
 
de.akquinet.jbosscc.needle.mock - package de.akquinet.jbosscc.needle.mock
 
de.akquinet.jbosscc.needle.postconstruct - package de.akquinet.jbosscc.needle.postconstruct
 
de.akquinet.jbosscc.needle.reflection - package de.akquinet.jbosscc.needle.reflection
 
de.akquinet.jbosscc.needle.testng - package de.akquinet.jbosscc.needle.testng
 
DefaultMockInjectionProvider - Class in de.akquinet.jbosscc.needle.injection
 
DefaultMockInjectionProvider(Class<?>, MockProvider) - Constructor for class de.akquinet.jbosscc.needle.injection.DefaultMockInjectionProvider
 
deleteContent(List<String>, Statement) - Method in class de.akquinet.jbosscc.needle.db.operation.hsql.HSQLDeleteOperation
Deletes all contents from the given tables.
disableReferentialIntegrity(Statement) - Method in class de.akquinet.jbosscc.needle.db.operation.hsql.HSQLDeleteOperation
Disables the referential constraints of the database, e.g foreign keys.
doRun(EntityManager) - Method in class de.akquinet.jbosscc.needle.db.transaction.VoidRunnable
Hook method inside run().

E

EasyMockProvider - Class in de.akquinet.jbosscc.needle.mock
An EasyMock specific MockProvider implementation.
EasyMockProvider() - Constructor for class de.akquinet.jbosscc.needle.mock.EasyMockProvider
 
enableReferentialIntegrity(Statement) - Method in class de.akquinet.jbosscc.needle.db.operation.hsql.HSQLDeleteOperation
Enables the referential constraints of the database, e.g foreign keys.
ensureEntityManager() - Method in class de.akquinet.jbosscc.needle.db.testdata.AbstractTestdataBuilder
Ensure the TestdataBuilder is constructed with an EntityManager
equals(Object) - Method in class de.akquinet.jbosscc.needle.db.configuration.PersistenceConfigurationFactory
 
executeInTransaction(Runnable<T>, boolean) - Method in class de.akquinet.jbosscc.needle.db.transaction.TransactionHelper
Encapsulates execution of runnable.run() in transactions.
executeInTransaction(Runnable<T>) - Method in class de.akquinet.jbosscc.needle.db.transaction.TransactionHelper
see executeInTransaction(runnable, clearAfterCommit) .
executeScript(String, Statement) - Method in class de.akquinet.jbosscc.needle.db.operation.AbstractDBOperation
Execute the given sql script.
ExecuteScriptOperation - Class in de.akquinet.jbosscc.needle.db.operation
Execute before and after sql scripts in test setup and tear down.
ExecuteScriptOperation(JdbcConfiguration) - Constructor for class de.akquinet.jbosscc.needle.db.operation.ExecuteScriptOperation
 

F

forName(String) - Static method in class de.akquinet.jbosscc.needle.reflection.ReflectionUtil
Returns the Class object associated with the class or interface with the given string name.

G

getAccessibleObject() - Method in class de.akquinet.jbosscc.needle.injection.InjectionTargetInformation
Returns the AccessibleObject of the injection target.
getAllAnnotatedFields(Class<?>) - Static method in class de.akquinet.jbosscc.needle.reflection.ReflectionUtil
 
getAllFields(Class<?>) - Static method in class de.akquinet.jbosscc.needle.reflection.ReflectionUtil
 
getAllFieldsAssinableFrom(Class<?>, Class<?>) - Static method in class de.akquinet.jbosscc.needle.reflection.ReflectionUtil
 
getAllFieldsWithAnnotation(Class<?>, Class<? extends Annotation>) - Static method in class de.akquinet.jbosscc.needle.reflection.ReflectionUtil
 
getAllFieldsWithAnnotation(Object, Class<? extends Annotation>) - Static method in class de.akquinet.jbosscc.needle.reflection.ReflectionUtil
 
getAnnotatedTestcaseFields(Class<? extends Annotation>) - Method in class de.akquinet.jbosscc.needle.NeedleContext
 
getAnnotation(Class<? extends Annotation>) - Method in class de.akquinet.jbosscc.needle.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 de.akquinet.jbosscc.needle.injection.InjectionTargetInformation
Returns an array of all annotations present on the injection target.
getClasses(String...) - Static method in class de.akquinet.jbosscc.needle.reflection.ReflectionUtil
 
getConnection() - Method in class de.akquinet.jbosscc.needle.db.operation.AbstractDBOperation
Returns the sql connection object.
getCustomInjectionAnnotations() - Static method in class de.akquinet.jbosscc.needle.configuration.NeedleConfiguration
Returns the configured custom Annotation classes for default mock injections.
getCustomInjectionProviderClasses() - Static method in class de.akquinet.jbosscc.needle.configuration.NeedleConfiguration
Returns the configured custom InjectionProvider classes.
getDBOperationClassName() - Static method in class de.akquinet.jbosscc.needle.configuration.NeedleConfiguration
Returns the configured database operation class name.
getEntityManager() - Method in class de.akquinet.jbosscc.needle.db.configuration.PersistenceConfigurationFactory
Returns the EntityManager instance which is associated with the configured persistence context.
getEntityManager() - Method in class de.akquinet.jbosscc.needle.db.DatabaseTestcase
Returns the EntityManager.
getEntityManager() - Method in class de.akquinet.jbosscc.needle.db.testdata.AbstractTestdataBuilder
Returns the EntityManager or null.
getEntityManager() - Method in class de.akquinet.jbosscc.needle.db.transaction.TransactionHelper
 
getEntityManager() - Method in class de.akquinet.jbosscc.needle.testng.AbstractNeedleTestcase
Returns the EntityManager, if the test is constructed with a DatabaseTestcase instance or null otherwise.
getEntityManagerFactory() - Method in class de.akquinet.jbosscc.needle.db.configuration.PersistenceConfigurationFactory
Returns the EntityManagerFactory.
getEntityManagerFactory() - Method in class de.akquinet.jbosscc.needle.db.DatabaseTestcase
Returns the EntityManagerFactory.
getField(Class<?>, String) - Static method in class de.akquinet.jbosscc.needle.reflection.ReflectionUtil
 
getFieldValue(Object, Class<?>, String) - Static method in class de.akquinet.jbosscc.needle.reflection.ReflectionUtil
Get the value of a given field on a given object via reflection.
getFieldValue(Object, Field) - Static method in class de.akquinet.jbosscc.needle.reflection.ReflectionUtil
Get the value of a given field on a given object via reflection.
getFieldValue(Object, String) - Static method in class de.akquinet.jbosscc.needle.reflection.ReflectionUtil
Get the value of a given field on a given object via reflection.
getHibernateCfgFilename() - Static method in class de.akquinet.jbosscc.needle.configuration.NeedleConfiguration
Returns the name of the configured hibernate.cfg file
getId() - Method in class de.akquinet.jbosscc.needle.db.testdata.AbstractTestdataBuilder
Returns an integer value from a static counter.
getInjectedObject(Class<?>) - Method in class de.akquinet.jbosscc.needle.db.DatabaseTestcase
 
getInjectedObject(Class<?>) - Method in class de.akquinet.jbosscc.needle.injection.DefaultMockInjectionProvider
 
getInjectedObject(Class<?>) - Method in interface de.akquinet.jbosscc.needle.injection.InjectionProvider
Provides an instance of T.
getInjectedObject(Class<?>) - Method in class de.akquinet.jbosscc.needle.injection.MockProviderInjectionProvider
 
getInjectedObject(Object) - Method in class de.akquinet.jbosscc.needle.NeedleContext
 
getInjectedObject(Object) - Method in class de.akquinet.jbosscc.needle.NeedleTestcase
Returns the injected object for the given key, or null if no object was injected with the given key.
getInjectedObjects() - Method in class de.akquinet.jbosscc.needle.NeedleContext
 
getInjectionProvider() - Method in class de.akquinet.jbosscc.needle.injection.InjectionConfiguration
 
getJdbcDriver() - Static method in class de.akquinet.jbosscc.needle.configuration.NeedleConfiguration
 
getJdbcDriver() - Method in class de.akquinet.jbosscc.needle.db.operation.JdbcConfiguration
Returns the name of the JDBC driver to be used to connect to the database.
getJdbcPassword() - Static method in class de.akquinet.jbosscc.needle.configuration.NeedleConfiguration
 
getJdbcPassword() - Method in class de.akquinet.jbosscc.needle.db.operation.JdbcConfiguration
Returns the password to be used to connect to the database.
getJdbcUrl() - Static method in class de.akquinet.jbosscc.needle.configuration.NeedleConfiguration
 
getJdbcUrl() - Method in class de.akquinet.jbosscc.needle.db.operation.JdbcConfiguration
Returns the JDBC connection url to be used to connect to the database
getJdbcUser() - Static method in class de.akquinet.jbosscc.needle.configuration.NeedleConfiguration
 
getJdbcUser() - Method in class de.akquinet.jbosscc.needle.db.operation.JdbcConfiguration
Returns the user name to be used to connect to the database.
getKey() - Method in class de.akquinet.jbosscc.needle.common.MapEntry
 
getKey(InjectionTargetInformation) - Method in class de.akquinet.jbosscc.needle.db.DatabaseTestcase
 
getKey(InjectionTargetInformation) - Method in class de.akquinet.jbosscc.needle.injection.DefaultMockInjectionProvider
 
getKey(InjectionTargetInformation) - Method in interface de.akquinet.jbosscc.needle.injection.InjectionProvider
Returns a key object, which identifies the provided object.
getKey(InjectionTargetInformation) - Method in class de.akquinet.jbosscc.needle.injection.MockProviderInjectionProvider
 
getKey(InjectionTargetInformation) - Method in class de.akquinet.jbosscc.needle.injection.ResourceMockInjectionProvider
 
getMethod(Class<?>, String, Class<?>...) - Static method in class de.akquinet.jbosscc.needle.reflection.ReflectionUtil
 
getMethods(Class<?>) - Static method in class de.akquinet.jbosscc.needle.reflection.ReflectionUtil
 
getMockProvider() - Method in class de.akquinet.jbosscc.needle.injection.InjectionConfiguration
 
getMockProvider() - Method in class de.akquinet.jbosscc.needle.NeedleTestcase
Returns an instance of the configured MockProvider
getMockProviderClassName() - Static method in class de.akquinet.jbosscc.needle.configuration.NeedleConfiguration
Returns the configured mock provider class name
getObjectsUnderTest() - Method in class de.akquinet.jbosscc.needle.NeedleContext
 
getObjectUnderTest(String) - Method in class de.akquinet.jbosscc.needle.NeedleContext
 
getPersistenceunitName() - Static method in class de.akquinet.jbosscc.needle.configuration.NeedleConfiguration
Returns the configured jpa persistence unit name.
getPostConstructProcessor() - Method in class de.akquinet.jbosscc.needle.injection.InjectionConfiguration
 
getTableNames(Connection) - Method in class de.akquinet.jbosscc.needle.db.operation.AbstractDBOperation
Returns the names of all tables in the database by using DatabaseMetaData.
getTest() - Method in class de.akquinet.jbosscc.needle.NeedleContext
 
getTransactionHelper() - Method in class de.akquinet.jbosscc.needle.db.DatabaseTestcase
Returns an instance of TransactionHelper
getType() - Method in class de.akquinet.jbosscc.needle.injection.DefaultMockInjectionProvider
 
getType() - Method in class de.akquinet.jbosscc.needle.injection.InjectionTargetInformation
Returns the class object from the injection target.
getValue() - Method in class de.akquinet.jbosscc.needle.common.MapEntry
 

H

H2DeleteOperation - Class in de.akquinet.jbosscc.needle.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 de.akquinet.jbosscc.needle.db.operation.h2.H2DeleteOperation
 
handleInjectionProvider(Collection<InjectionProvider<?>>, InjectionTargetInformation) - Method in class de.akquinet.jbosscc.needle.injection.InjectionConfiguration
 
hasEntityManager() - Method in class de.akquinet.jbosscc.needle.db.testdata.AbstractTestdataBuilder
Returns whether the TestdataBuilder is constructed with an EntityManager
hashCode() - Method in class de.akquinet.jbosscc.needle.db.configuration.PersistenceConfigurationFactory
 
HSQLDeleteOperation - Class in de.akquinet.jbosscc.needle.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 de.akquinet.jbosscc.needle.db.operation.hsql.HSQLDeleteOperation
 

I

initInstance(Object) - Method in class de.akquinet.jbosscc.needle.NeedleTestcase
Inject dependencies into the given instance.
initTestcase(Object) - Method in class de.akquinet.jbosscc.needle.NeedleTestcase
Initialize all fields annotated with ObjectUnderTest.
InjectInto - Annotation Type in de.akquinet.jbosscc.needle.annotation
Is used to inject an instance into a specific ObjectUnderTest instance.
InjectIntoMany - Annotation Type in de.akquinet.jbosscc.needle.annotation
Is used to inject an instance into multiple ObjectUnderTest instances.
InjectionAnnotationProcessor - Class in de.akquinet.jbosscc.needle.injection
 
InjectionAnnotationProcessor() - Constructor for class de.akquinet.jbosscc.needle.injection.InjectionAnnotationProcessor
 
InjectionConfiguration - Class in de.akquinet.jbosscc.needle.injection
 
InjectionConfiguration() - Constructor for class de.akquinet.jbosscc.needle.injection.InjectionConfiguration
 
InjectionProvider<T> - Interface in de.akquinet.jbosscc.needle.injection
Provides an instances of T and verifies an injection target.
InjectionTargetInformation - Class in de.akquinet.jbosscc.needle.injection
Provides information about the injection target.
InjectionTargetInformation(Class<?>, Field) - Constructor for class de.akquinet.jbosscc.needle.injection.InjectionTargetInformation
Creates an instance of InjectionTargetInformation for Field injection.
InjectionTargetInformation(Class<?>, Method, Annotation[]) - Constructor for class de.akquinet.jbosscc.needle.injection.InjectionTargetInformation
Creates an instance of InjectionTargetInformation for Method injection.
InjectionTargetInformation(Class<?>, Constructor<?>, Annotation[]) - Constructor for class de.akquinet.jbosscc.needle.injection.InjectionTargetInformation
Creates an instance of InjectionTargetInformation for Constructor injection.
InjectionVerifier - Interface in de.akquinet.jbosscc.needle.injection
 
invokeMethod(Object, Class<?>, String, Object...) - Static method in class de.akquinet.jbosscc.needle.reflection.ReflectionUtil
Invoke a given method with given arguments on a given object via reflection.
invokeMethod(Method, Object, Object...) - Static method in class de.akquinet.jbosscc.needle.reflection.ReflectionUtil
 
invokeMethod(Object, String, Object...) - Static method in class de.akquinet.jbosscc.needle.reflection.ReflectionUtil
Invoke a given method with given arguments on a given object via reflection.
isAnnotationPresent(Class<? extends Annotation>) - Method in class de.akquinet.jbosscc.needle.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 de.akquinet.jbosscc.needle.injection.InjectionConfiguration
 

J

JdbcConfiguration - Class in de.akquinet.jbosscc.needle.db.operation
JDBC configuration properties.
JdbcConfiguration(String, String, String, String) - Constructor for class de.akquinet.jbosscc.needle.db.operation.JdbcConfiguration
Creates an instance of JdbcConfiguration

L

loadAllObjects(Class<T>) - Method in class de.akquinet.jbosscc.needle.db.transaction.TransactionHelper
Returns all objects of the given class in persistence context.
loadObject(Class<T>, Object) - Method in class de.akquinet.jbosscc.needle.db.transaction.TransactionHelper
Finds and returns the object of the given id in the persistence context.
loadObject(EntityManager, Class<T>, Object) - Method in class de.akquinet.jbosscc.needle.db.transaction.TransactionHelper
 
loadResource(String) - Static method in class de.akquinet.jbosscc.needle.configuration.ConfigurationLoader
Returns an input stream for reading the specified resource.

M

MapEntry<K,V> - Class in de.akquinet.jbosscc.needle.common
 
MapEntry(K, V) - Constructor for class de.akquinet.jbosscc.needle.common.MapEntry
 
Mock - Annotation Type in de.akquinet.jbosscc.needle.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 de.akquinet.jbosscc.needle.mock
 
MockAnnotationProcessor() - Constructor for class de.akquinet.jbosscc.needle.mock.MockAnnotationProcessor
 
MockitoProvider - Class in de.akquinet.jbosscc.needle.mock
A Mockito specific MockProvider implementation.
MockitoProvider() - Constructor for class de.akquinet.jbosscc.needle.mock.MockitoProvider
 
MockProvider - Interface in de.akquinet.jbosscc.needle.mock
Interface for abstraction of a specific mock provider.
MockProviderInjectionProvider - Class in de.akquinet.jbosscc.needle.injection
 
MockProviderInjectionProvider(MockProvider) - Constructor for class de.akquinet.jbosscc.needle.injection.MockProviderInjectionProvider
 

N

NeedleConfiguration - Class in de.akquinet.jbosscc.needle.configuration
Loads an holds the configuration of needle.
NeedleContext - Class in de.akquinet.jbosscc.needle
 
NeedleContext(Object) - Constructor for class de.akquinet.jbosscc.needle.NeedleContext
 
NeedleRule - Class in de.akquinet.jbosscc.needle.junit
JUnit MethodRule for the initialization of the test.
NeedleRule() - Constructor for class de.akquinet.jbosscc.needle.junit.NeedleRule
 
NeedleRule(InjectionProvider<?>...) - Constructor for class de.akquinet.jbosscc.needle.junit.NeedleRule
 
NeedleTestcase - Class in de.akquinet.jbosscc.needle
Abstract test case to process and initialize all fields annotated with ObjectUnderTest.
NeedleTestcase(InjectionProvider<?>...) - Constructor for class de.akquinet.jbosscc.needle.NeedleTestcase
Create an instance of NeedleTestcase with optional additional injection provider.
NeedleTestRule - Class in de.akquinet.jbosscc.needle.junit.testrule
JUnit TestRule for the initialization of the test.
NeedleTestRule(Object, InjectionProvider<?>...) - Constructor for class de.akquinet.jbosscc.needle.junit.testrule.NeedleTestRule
 

O

ObjectUnderTest - Annotation Type in de.akquinet.jbosscc.needle.annotation
Is used to specify an object under test.
ObjectUnderTestInstantiationException - Exception in de.akquinet.jbosscc.needle
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 de.akquinet.jbosscc.needle.ObjectUnderTestInstantiationException
 
ObjectUnderTestInstantiationException(String, Throwable) - Constructor for exception de.akquinet.jbosscc.needle.ObjectUnderTestInstantiationException
 
ObjectUnderTestInstantiationException(String) - Constructor for exception de.akquinet.jbosscc.needle.ObjectUnderTestInstantiationException
 
ObjectUnderTestInstantiationException(Throwable) - Constructor for exception de.akquinet.jbosscc.needle.ObjectUnderTestInstantiationException
 
openConnection() - Method in class de.akquinet.jbosscc.needle.db.operation.AbstractDBOperation
Establish a connection to the given database.

P

persist(T, EntityManager) - Method in class de.akquinet.jbosscc.needle.db.transaction.TransactionHelper
 
persist(T) - Method in class de.akquinet.jbosscc.needle.db.transaction.TransactionHelper
 
PersistenceConfigurationFactory - Class in de.akquinet.jbosscc.needle.db.configuration
Factory to create and access the configured persistence context.
PersistenceConfigurationFactory(String) - Constructor for class de.akquinet.jbosscc.needle.db.configuration.PersistenceConfigurationFactory
 
PersistenceConfigurationFactory(Class<?>[]) - Constructor for class de.akquinet.jbosscc.needle.db.configuration.PersistenceConfigurationFactory
 
PostConstructProcessor - Class in de.akquinet.jbosscc.needle.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 de.akquinet.jbosscc.needle.postconstruct.PostConstructProcessor
 
process(NeedleContext) - Method in class de.akquinet.jbosscc.needle.injection.InjectionAnnotationProcessor
 
process(NeedleContext, InjectionConfiguration) - Method in class de.akquinet.jbosscc.needle.injection.TestcaseInjectionProcessor
 
process(NeedleContext, InjectionConfiguration) - Method in class de.akquinet.jbosscc.needle.mock.MockAnnotationProcessor
 
process(ObjectUnderTest, Object) - Method in class de.akquinet.jbosscc.needle.postconstruct.PostConstructProcessor
calls process(instance) only if field is marked with

R

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

S

saveObject(T) - Method in class de.akquinet.jbosscc.needle.db.transaction.TransactionHelper
Saves the given object in the database.
setField(Field, Object, Object) - Static method in class de.akquinet.jbosscc.needle.reflection.ReflectionUtil
 
setField(String, Object, Object) - Static method in class de.akquinet.jbosscc.needle.reflection.ReflectionUtil
 
setFieldValue(Object, Class<?>, String, Object) - Static method in class de.akquinet.jbosscc.needle.reflection.ReflectionUtil
Changing the value of a given field.
setFieldValue(Object, String, Object) - Static method in class de.akquinet.jbosscc.needle.reflection.ReflectionUtil
Changing the value of a given field.
setUpOperation() - Method in interface de.akquinet.jbosscc.needle.db.operation.DBOperation
Execute the database operation in test setup.
setUpOperation() - Method in class de.akquinet.jbosscc.needle.db.operation.ExecuteScriptOperation
Execute before.sql script in test setup.
setUpOperation() - Method in class de.akquinet.jbosscc.needle.db.operation.hsql.HSQLDeleteOperation
Execute the database operation in test setup.
setValue(Object) - Method in class de.akquinet.jbosscc.needle.common.MapEntry
 

T

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

V

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

W

withOuter(MethodRule) - Method in class de.akquinet.jbosscc.needle.junit.NeedleRule
Encloses the added rule.

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

Copyright © 2013 akquinet AG. All Rights Reserved.