| |
|
| java.lang.Object org.ow2.easybeans.tests.entity.TestPersistenceContext
TestPersistenceContext | public class TestPersistenceContext (Code) | | Verifies if the transaction-scope persistence context and the extended
persistence context are making the correct management of the references. The
items 5.6(Persistence doc)
author: Gisele Pinheiro Souza author: Eduardo Studzinski Estima de Castro |
Method Summary | |
public void | setup() Creates the stateful bean used during the tests. | public void | testExtendedPersistenceContext() Tests if two beans created in the same extended persistence context have
the same references. | public void | testTransactionPersistenceContext() Tests if two beans created in the same transaction-scoped persistence
context have different references. |
setup | public void setup() throws Exception(Code) | | Creates the stateful bean used during the tests.
throws: Exception - if an error occurs during the lookup. |
testExtendedPersistenceContext | public void testExtendedPersistenceContext()(Code) | | Tests if two beans created in the same extended persistence context have
the same references.
|
testTransactionPersistenceContext | public void testTransactionPersistenceContext()(Code) | | Tests if two beans created in the same transaction-scoped persistence
context have different references.
|
|
|
|