| Package | Description |
|---|---|
| com.oneandone.ejbcdiunit.persistence |
| Modifier and Type | Class and Description |
|---|---|
class |
SinglePersistenceFactory
Convenience class for tests using only one persistence context in tests named: "testdb".
|
class |
TestPersistenceFactory
Persistencefactory with default Handling useable for Cdi-Unit tests with persistence unit "test" Also produces EntityManager, DataSource and
UserTransaction annotated with Qualifier @Default To simplify testing, this TestPersistenceFactory does not require persistence.xml.
|
| Modifier and Type | Method and Description |
|---|---|
PersistenceFactory |
TestTransactionBase.getPersistenceFactory() |
| Modifier and Type | Method and Description |
|---|---|
void |
SimulatedTransactionManager.takePart(PersistenceFactory persistenceFactory)
Let the PersistenceContext take part in the current transaction.
|
| Constructor and Description |
|---|
TestTransaction(PersistenceFactory persistenceFactory,
javax.ejb.TransactionAttributeType transactionAttribute)
Deprecated.
|
TestTransactionBase(PersistenceFactory persistenceFactory,
javax.ejb.TransactionAttributeType transactionAttribute,
TestTransactionBase embedding)
Start a Transaction according to
TransactionAttributeType as AutoCloseable to make sure at the
end of the block the transaction is handled accordingly |
Copyright © 2017–2018. All rights reserved.