Skip navigation links
A B C D E G I J L M O P R S T U V 

A

AbstractDatabase - Class in org.wamblee.test.persistence
Abstract database class providing the creation of the datasource, preventing duplicate starts of the same database, and checking for connection leaks when the database is stopped.
AbstractDatabase() - Constructor for class org.wamblee.test.persistence.AbstractDatabase
Constructs the database.
AbstractDatabaseProvider - Class in org.wamblee.test.persistence
Base class for database providers.
AbstractDatabaseProvider() - Constructor for class org.wamblee.test.persistence.AbstractDatabaseProvider
 
accept(String) - Method in class org.wamblee.test.persistence.CompositeJpaTables
 
add(ITableFilterSimple) - Method in class org.wamblee.test.persistence.CompositeJpaTables
Adds a table filter.
addBinding(Binding) - Method in class org.wamblee.test.inject.JavaEETestInjectorFactory
Adds another custom injection binding.
addEntityManagerBinding(EntityManager) - Method in class org.wamblee.test.inject.JavaEETestInjectorFactory
Adds default entity manager binding.
addResource(TransactionResource) - Method in class org.wamblee.test.transactions.SimpleTransactionManager
Adds a resource to manage.

B

BeanManagerSetup - Class in org.wamblee.test.cdi
Simple wrapper class for creating a bean manager in a Java SE environment This class wraps an existing implementation of CDI.
BeanManagerSetup() - Constructor for class org.wamblee.test.cdi.BeanManagerSetup
Constructs the setup class.
begin() - Method in class org.wamblee.test.persistence.JpaBuilder
 
begin() - Method in class org.wamblee.test.transactions.SimpleUserTransaction
 
begin() - Method in interface org.wamblee.test.transactions.TransactionResource
Begins a transaction.
Binding<T> - Class in org.wamblee.test.inject
This class represents an injection binding.
Binding(Class<T>, Class<? extends Annotation>, Object) - Constructor for class org.wamblee.test.inject.Binding
Constructs the binding.

C

CAPABILIITIES - Static variable in class org.wamblee.test.persistence.DerbyDatabaseProvider
Capabilities of this type of database.
CAPABILIITIES - Static variable in class org.wamblee.test.persistence.ExternalDatabaseProvider
Capabilities of this type of database.
CAPABILITY_EXTERNAL - Static variable in interface org.wamblee.test.persistence.DatabaseProvider
Capability that all databases that are external have.
CAPABILITY_IN_MEMORY - Static variable in interface org.wamblee.test.persistence.DatabaseProvider
Capability that all databases that run inmemory have.
cleanDatabase(ITableFilterSimple) - Method in class org.wamblee.test.persistence.DatabaseUtils
Cleans a number of database tables.
commit(EntityManager) - Method in class org.wamblee.test.persistence.JpaBuilder
 
commit() - Method in class org.wamblee.test.transactions.SimpleUserTransaction
 
commit(T) - Method in interface org.wamblee.test.transactions.TransactionResource
Commits the transaction.
CompositeJpaCustomizer - Class in org.wamblee.test.persistence
Composite JPA customizer that applies the customizations from several JPA customizers.
CompositeJpaCustomizer(List<JpaCustomizer>) - Constructor for class org.wamblee.test.persistence.CompositeJpaCustomizer
Construcst the customizer.
CompositeJpaTables - Class in org.wamblee.test.persistence
Composite JPA tables.
CompositeJpaTables() - Constructor for class org.wamblee.test.persistence.CompositeJpaTables
Construcst the tables.
contains(String) - Method in interface org.wamblee.test.persistence.DatabaseUtils.TableSet
 
countResultSet(ResultSet) - Method in class org.wamblee.test.persistence.DatabaseUtils
Counts the results in a result set.
create(Class) - Method in class org.wamblee.test.inject.JavaEETestInjectorFactory
 
create() - Method in interface org.wamblee.test.persistence.DatabaseProvider
Creates a database instance that represents a running instance of that database.
create() - Method in class org.wamblee.test.persistence.DerbyDatabaseProvider
 
create() - Method in class org.wamblee.test.persistence.ExternalDatabaseProvider
 
create(UserTransactionCallback, List<TransactionResource>) - Method in class org.wamblee.test.transactions.DefaultUserTransactionFactory
 
create(UserTransactionCallback, List<TransactionResource>) - Method in interface org.wamblee.test.transactions.UserTransactionFactory
 
createConnection() - Method in class org.wamblee.test.persistence.DerbyDatabase
 
createDataSource() - Method in class org.wamblee.test.persistence.AbstractDatabase
This method must be called from the start method.
createDbTester(ITableFilterSimple) - Method in class org.wamblee.test.persistence.DatabaseUtils
Creates database tester.
createDbTester(String[]) - Method in class org.wamblee.test.persistence.DatabaseUtils
Creates database tester.
createFactory() - Method in class org.wamblee.test.persistence.JpaBuilder
Creates a new entity manager factory.
customize(PersistenceUnitDescription, Map<String, String>) - Method in class org.wamblee.test.persistence.CompositeJpaCustomizer
 
customize(PersistenceUnitDescription, Map<String, String>) - Method in interface org.wamblee.test.persistence.JpaCustomizer
Customizes the persistence unit through properties.

D

Database - Interface in org.wamblee.test.persistence
Represents a database.
DatabaseBuilder - Class in org.wamblee.test.persistence
DatabaseBuilder is used from unit test to obtain a reference to a database from unit test.
DatabaseDescription - Class in org.wamblee.test.persistence
Description of a specific database.
DatabaseDescription(String[], String, String) - Constructor for class org.wamblee.test.persistence.DatabaseDescription
Constructs the description.
DatabaseProvider - Interface in org.wamblee.test.persistence
Database provider.
DatabaseStarter - Class in org.wamblee.test.persistence
This class is used for starting the database as a main program.
DatabaseStarter(Class) - Constructor for class org.wamblee.test.persistence.DatabaseStarter
Constructs the database starter.
DatabaseStarter() - Constructor for class org.wamblee.test.persistence.DatabaseStarter
Constructs a database starter with the derby database.
DatabaseUtils - Class in org.wamblee.test.persistence
Database utilities is a simple support class for common tasks in working with databases.
DatabaseUtils(DataSource) - Constructor for class org.wamblee.test.persistence.DatabaseUtils
Constructs the database utils.
DatabaseUtils.JdbcUnitOfWork<T> - Interface in org.wamblee.test.persistence
Represents a unit of work (transaction).
DatabaseUtils.TableSet - Interface in org.wamblee.test.persistence
Represents a set of tables.
DatabaseUtils.TableSetOperation - Interface in org.wamblee.test.persistence
Operation to be executed on a set of tables for each table individually.
DB_CAPABILITIES_PROP - Static variable in class org.wamblee.test.persistence.DatabaseBuilder
Environmment variable by which capabilities of the requested database can be defined
DB_PASSWORD_PROP - Static variable in class org.wamblee.test.persistence.ExternalDatabase
System property/environment variable that defines the database password.
DB_URL_PROP - Static variable in class org.wamblee.test.persistence.ExternalDatabase
System property/environment variable that defines the database URL.
DB_USER_PROP - Static variable in class org.wamblee.test.persistence.ExternalDatabase
System property/environment variable that defines the database user.
DefaultUserTransactionFactory - Class in org.wamblee.test.transactions
Transaction factory implementation that creates SimpleUserTransaction objects.
DefaultUserTransactionFactory() - Constructor for class org.wamblee.test.transactions.DefaultUserTransactionFactory
Constructs the factory.
DerbyDatabase - Class in org.wamblee.test.persistence
Derby database setup.
DerbyDatabase() - Constructor for class org.wamblee.test.persistence.DerbyDatabase
Constructs derby database class to allow creation of derby database instances.
DerbyDatabase(boolean) - Constructor for class org.wamblee.test.persistence.DerbyDatabase
 
DerbyDatabaseProvider - Class in org.wamblee.test.persistence
Derby database provider.
DerbyDatabaseProvider() - Constructor for class org.wamblee.test.persistence.DerbyDatabaseProvider
Creates a new DerbyDatabaseProvider object.
doStart() - Method in class org.wamblee.test.persistence.AbstractDatabase
To be implemented by subclasses to start the database.
doStart() - Method in class org.wamblee.test.persistence.DerbyDatabase
 
doStart() - Method in class org.wamblee.test.persistence.ExternalDatabase
 
doStop() - Method in class org.wamblee.test.persistence.AbstractDatabase
To be implemented by subclasses to stop the database.
doStop() - Method in class org.wamblee.test.persistence.DerbyDatabase
Stops the derby database and cleans up all derby files.
doStop() - Method in class org.wamblee.test.persistence.ExternalDatabase
 
dropTable(String) - Method in class org.wamblee.test.persistence.DatabaseUtils
Drops a table.
dropTables(ITableFilterSimple) - Method in class org.wamblee.test.persistence.DatabaseUtils
Drops tables.

E

emptyTable(String) - Method in class org.wamblee.test.persistence.DatabaseUtils
Deprecated.
emptyTables(ITableFilterSimple) - Method in class org.wamblee.test.persistence.DatabaseUtils
Deprecated.
execute(Connection) - Method in interface org.wamblee.test.persistence.DatabaseUtils.JdbcUnitOfWork
Executes statement within a transaction.
execute(String) - Method in interface org.wamblee.test.persistence.DatabaseUtils.TableSetOperation
Executes on a table.
execute(JpaBuilder.JpaUnitOfWork<T>) - Method in class org.wamblee.test.persistence.JpaBuilder
Executes a unit of work.
execute(JpaBuilder.JpaUnitOfWork<T>, TransactionResultCallback) - Method in class org.wamblee.test.persistence.JpaBuilder
Executes a unit of work.
execute(EntityManager) - Method in interface org.wamblee.test.persistence.JpaBuilder.JpaUnitOfWork
Executes the unit of work.
executeInTransaction(DatabaseUtils.JdbcUnitOfWork<T>) - Method in class org.wamblee.test.persistence.DatabaseUtils
Executes a unit of work within a transaction.
executeOnTables(ITableFilterSimple, DatabaseUtils.TableSetOperation) - Method in class org.wamblee.test.persistence.DatabaseUtils
Executes an operation on a set of tables.
executeQuery(Connection, String) - Method in class org.wamblee.test.persistence.DatabaseUtils
Executes an SQL query.
executeQuery(Connection, String, Object) - Method in class org.wamblee.test.persistence.DatabaseUtils
Executes a query with a single argument.
executeQuery(Connection, String, Object[]) - Method in class org.wamblee.test.persistence.DatabaseUtils
Executes a query.
executeSql(String) - Method in class org.wamblee.test.persistence.DatabaseUtils
Executes an SQL statement within a transaction.
executeSql(String, Object) - Method in class org.wamblee.test.persistence.DatabaseUtils
Executes an SQL statement within a transaction.
executeSql(String, Object[]) - Method in class org.wamblee.test.persistence.DatabaseUtils
Executes an sql statement.
executeUpdate(Connection, String, Object...) - Method in class org.wamblee.test.persistence.DatabaseUtils
Executes an update.
ExternalDatabase - Class in org.wamblee.test.persistence
Database that encapsulates connection to an external database.
ExternalDatabase() - Constructor for class org.wamblee.test.persistence.ExternalDatabase
 
ExternalDatabaseProvider - Class in org.wamblee.test.persistence
Database provider for an external database.
ExternalDatabaseProvider() - Constructor for class org.wamblee.test.persistence.ExternalDatabaseProvider
 

G

getActiveConnections() - Method in class org.wamblee.test.persistence.AbstractDatabase
 
getActiveConnections() - Method in interface org.wamblee.test.persistence.Database
Gets the number of active connections from the pool.
getBeanManager() - Method in class org.wamblee.test.cdi.BeanManagerSetup
Gets the bean manager.
getCapabilities() - Method in class org.wamblee.test.persistence.AbstractDatabaseProvider
 
getCapabilities() - Method in class org.wamblee.test.persistence.DerbyDatabaseProvider
 
getCapabilities() - Method in class org.wamblee.test.persistence.ExternalDatabaseProvider
 
getContextualEntityManager() - Method in class org.wamblee.test.persistence.JpaBuilder
Gets a contextual reference to an entity manager that delegates to the appropriate (current) one which is active for the current transaction.
getCustomizer() - Static method in class org.wamblee.test.persistence.JpaCustomizerBuilder
Gets the customizer to use.
getDatabase(String...) - Static method in class org.wamblee.test.persistence.DatabaseBuilder
Gets the first database that has all required capabilities.
getDataSource() - Method in class org.wamblee.test.persistence.JpaTester
Gets the datasource.
getDb() - Method in class org.wamblee.test.persistence.JpaTester
Gets the database.
getDbUtils() - Method in class org.wamblee.test.persistence.JpaTester
Gets the database utilities.
getDescription() - Method in interface org.wamblee.test.persistence.DatabaseProvider
Gets the description for the database.
getDescription() - Method in class org.wamblee.test.persistence.DerbyDatabaseProvider
 
getDescription() - Method in class org.wamblee.test.persistence.ExternalDatabaseProvider
 
getExternalJdbcUrl() - Method in interface org.wamblee.test.persistence.Database
Gets the external Jdbc URL to connect to this database from other JVMs.
getExternalJdbcUrl() - Method in class org.wamblee.test.persistence.DerbyDatabase
 
getExternalJdbcUrl() - Method in class org.wamblee.test.persistence.ExternalDatabase
 
getInitialContext(Hashtable<?, ?>) - Method in class org.wamblee.test.jndi.StubInitialContextFactory
 
getJdbcUrl() - Method in interface org.wamblee.test.persistence.Database
Gets the Jdbc Url to connect to this database.
getJdbcUrl() - Method in class org.wamblee.test.persistence.DerbyDatabase
 
getJdbcUrl() - Method in class org.wamblee.test.persistence.ExternalDatabase
 
getJndiName() - Method in class org.wamblee.test.persistence.PersistenceUnitDescription
 
getJpaBuilder() - Method in class org.wamblee.test.persistence.JpaTester
Gets the jpa builder.
getJpaTables() - Method in class org.wamblee.test.persistence.CompositeJpaCustomizer
 
getJpaTables() - Method in interface org.wamblee.test.persistence.JpaCustomizer
Gets the tables specific to the JPA provider.
getPassword() - Method in interface org.wamblee.test.persistence.Database
Gets the password to connect to the database.
getPassword() - Method in class org.wamblee.test.persistence.DerbyDatabase
Gets the password.
getPassword() - Method in class org.wamblee.test.persistence.ExternalDatabase
 
getPersistenceUnit() - Method in class org.wamblee.test.persistence.JpaTester
Gets the persistence unit.
getProperty(String) - Method in class org.wamblee.test.persistence.AbstractDatabase
 
getProxy(T) - Method in class org.wamblee.test.transactions.TransactionProxyFactory
 
getStatus() - Method in class org.wamblee.test.transactions.SimpleUserTransaction
 
getSupportedDatabases() - Static method in class org.wamblee.test.persistence.DatabaseBuilder
Gets a list of available databases.
getTableNames(ITableFilterSimple) - Method in class org.wamblee.test.persistence.DatabaseUtils
Returns table names based on a table filter.
getTableSize(String) - Method in class org.wamblee.test.persistence.DatabaseUtils
Gets the table size.
getTransaction() - Method in class org.wamblee.test.transactions.SimpleTransactionManager
Gets the user transaction.
getTransactionScopedEntityManager() - Method in class org.wamblee.test.transactions.TransactionProxyFactory
 
getUnitName() - Method in class org.wamblee.test.persistence.PersistenceUnitDescription
Persistence unit name.
getUsername() - Method in interface org.wamblee.test.persistence.Database
Gets the username to connect to the database.
getUsername() - Method in class org.wamblee.test.persistence.DerbyDatabase
Gets the user name.
getUsername() - Method in class org.wamblee.test.persistence.ExternalDatabase
 

I

initialize() - Method in class org.wamblee.test.cdi.BeanManagerSetup
Must be called to initialize the bean manager.
inject(Object) - Method in class org.wamblee.test.inject.Binding
 
inject(Object) - Method in class org.wamblee.test.inject.JavaEETestInjector
 

J

JavaEETestInjector - Class in org.wamblee.test.inject
Injector that performs additional injection on top of the injections that are standard available (e.g.
JavaEETestInjector(Class, List<Binding>, Injector) - Constructor for class org.wamblee.test.inject.JavaEETestInjector
Constructs the injector.
JavaEETestInjectorFactory - Class in org.wamblee.test.inject
The test injector factory provides dependency injection of a contextual entity manager using the support/inject mini framework.
JavaEETestInjectorFactory(InjectorFactory) - Constructor for class org.wamblee.test.inject.JavaEETestInjectorFactory
Constructs the factory.
JavaEETestInjectorFactory() - Constructor for class org.wamblee.test.inject.JavaEETestInjectorFactory
Constructs the factory with the default injector factory obtained from InjectorBuilder.getInjector().
JpaBuilder - Class in org.wamblee.test.persistence
Utility for building an appropriately configured EntityManagerFactory.
JpaBuilder(String, String, String, PersistenceUnitDescription) - Constructor for class org.wamblee.test.persistence.JpaBuilder
Constructs the builder.
JpaBuilder.JpaUnitOfWork<T> - Interface in org.wamblee.test.persistence
Callback interface to execute some JPA code within a transaction with the entitymanager to use provided as input.
JpaCustomizer - Interface in org.wamblee.test.persistence
JPA customizer is used to customize properties for a given JPA implementation.
JpaCustomizerBuilder - Class in org.wamblee.test.persistence
JPA customizer builder implements the ServiceLoader based mechanism for looking up JPA customizers.
JpaCustomizerBuilder() - Constructor for class org.wamblee.test.persistence.JpaCustomizerBuilder
 
JpaTester - Class in org.wamblee.test.persistence
This class is the entry point for JPA tests.
JpaTester(PersistenceUnitDescription) - Constructor for class org.wamblee.test.persistence.JpaTester
Constructs the tester.

L

LoggingTransactionResultCallback - Class in org.wamblee.test.persistence
Logging the result of a transaction.
LoggingTransactionResultCallback(Level) - Constructor for class org.wamblee.test.persistence.LoggingTransactionResultCallback
 

M

main(String[]) - Static method in class org.wamblee.test.persistence.DatabaseStarter
Execution as a main program.

O

org.wamblee.test.cdi - package org.wamblee.test.cdi
Test support for unit with CDI in a Java SE environment.
org.wamblee.test.inject - package org.wamblee.test.inject
Test support for testing with dependency injection with the support/inject mini framework.
org.wamblee.test.jndi - package org.wamblee.test.jndi
This package provides utilities for JNDI testing.
org.wamblee.test.persistence - package org.wamblee.test.persistence
This package provides test library for database testing in general and JPA testing specifically.
org.wamblee.test.transactions - package org.wamblee.test.transactions
This package provides basic support utilities for testing with transactions.

P

PersistenceUnitDescription - Class in org.wamblee.test.persistence
Describes a persistence unit.
PersistenceUnitDescription(String, String) - Constructor for class org.wamblee.test.persistence.PersistenceUnitDescription
Constructs the description.

R

register() - Static method in class org.wamblee.test.jndi.StubInitialContextFactory
This method must be called to register this initial context factory as the default implementation for JNDI.
RequireTransactionStatus - Class in org.wamblee.test.persistence
Specific transaction result callback to require a specific transaction result.
RequireTransactionStatus(TransactionResult) - Constructor for class org.wamblee.test.persistence.RequireTransactionStatus
Constructs the callback.
rollback(EntityManager) - Method in class org.wamblee.test.persistence.JpaBuilder
 
rollback() - Method in class org.wamblee.test.transactions.SimpleUserTransaction
 
rollback(T) - Method in interface org.wamblee.test.transactions.TransactionResource
Rolls back a transaction.

S

setRollbackOnly() - Method in class org.wamblee.test.transactions.SimpleUserTransaction
 
setTransactionTimeout(int) - Method in class org.wamblee.test.transactions.SimpleUserTransaction
 
shutdown() - Method in class org.wamblee.test.cdi.BeanManagerSetup
Cleans up the bean manager.
SimpleTransactionManager - Class in org.wamblee.test.transactions
Simple transaction manager provides a simple mechanism to manage transactions in test code through the UserTransaction object.
SimpleTransactionManager(UserTransactionFactory) - Constructor for class org.wamblee.test.transactions.SimpleTransactionManager
Constructs the transaction manager.
SimpleUserTransaction - Class in org.wamblee.test.transactions
Represents a user transaction spanning a number of resources.
SimpleUserTransaction(UserTransactionCallback, TransactionResource<?>...) - Constructor for class org.wamblee.test.transactions.SimpleUserTransaction
Constructs the transaction.
start() - Method in class org.wamblee.test.persistence.AbstractDatabase
Starts the database.
start() - Method in interface org.wamblee.test.persistence.Database
Starts a database.
start() - Method in class org.wamblee.test.persistence.DatabaseStarter
Starts the database.
start() - Method in class org.wamblee.test.persistence.DatabaseUtils
Starts the database utils.
start() - Method in class org.wamblee.test.persistence.JpaBuilder
Starts the builder, which in particular, mocks JNDI, binds the datasource the JNDI where the persistence unit expects it, creates the entity manager factory, and forces creation of the database schema.
start() - Method in class org.wamblee.test.persistence.JpaTester
Starts the tester.
status(TransactionResult) - Method in class org.wamblee.test.persistence.LoggingTransactionResultCallback
 
status(TransactionResult) - Method in class org.wamblee.test.persistence.RequireTransactionStatus
 
status(TransactionResult) - Method in interface org.wamblee.test.persistence.TransactionResultCallback
Result notification.
stop() - Method in class org.wamblee.test.persistence.AbstractDatabase
Stops the database and tests for connection leaks.
stop() - Method in interface org.wamblee.test.persistence.Database
Stops a database.
stop() - Method in class org.wamblee.test.persistence.DatabaseUtils
Stops the database utils, closing any JDBC connections that were created by this utility.
stop() - Method in class org.wamblee.test.persistence.JpaBuilder
Stops the entity manager factory and disables JNDI mocking.
stop() - Method in class org.wamblee.test.persistence.JpaTester
Stops the tester.
StubInitialContextFactory - Class in org.wamblee.test.jndi
Test initial context factory used for testing software in a Java SE environnment that uses JNDI to retrieve objects.
StubInitialContextFactory() - Constructor for class org.wamblee.test.jndi.StubInitialContextFactory
 
supportsCapabilities(String[]) - Method in class org.wamblee.test.persistence.AbstractDatabaseProvider
Standard implementation of the capabalities check.
supportsCapabilities(String[]) - Method in interface org.wamblee.test.persistence.DatabaseProvider
Determines if the database has all capabilities that are requested.

T

toString() - Method in class org.wamblee.test.persistence.DatabaseDescription
 
transactionFinished() - Method in interface org.wamblee.test.transactions.UserTransactionCallback
 
TransactionProxyFactory<T> - Class in org.wamblee.test.transactions
This utility makes sure that each invocation on a certain interface is carried out within a JPA unit of work.
TransactionProxyFactory(JpaBuilder, Class<T>) - Constructor for class org.wamblee.test.transactions.TransactionProxyFactory
Constructs the transaction proxy.
TransactionResource<T> - Interface in org.wamblee.test.transactions
Interfaces to be implemented by resources that want to participate in transactions managed through SimpleTransactionManager.
TransactionResult - Enum in org.wamblee.test.transactions
Transaction result.
TransactionResultCallback - Interface in org.wamblee.test.persistence
Callback to notify the test of the result of the transaction.

U

unregister() - Static method in class org.wamblee.test.jndi.StubInitialContextFactory
Unregisters the initial context factory
UserTransactionCallback - Interface in org.wamblee.test.transactions
 
UserTransactionFactory - Interface in org.wamblee.test.transactions
Factory used to create transactions.

V

valueOf(String) - Static method in enum org.wamblee.test.transactions.TransactionResult
Returns the enum constant of this type with the specified name.
values() - Static method in enum org.wamblee.test.transactions.TransactionResult
Returns an array containing the constants of this enum type, in the order they are declared.
A B C D E G I J L M O P R S T U V 
Skip navigation links

Copyright © 2022. All rights reserved.