| java.lang.Object org.ow2.easybeans.tests.entity.TestEntityManagerFlush
TestEntityManagerFlush | public class TestEntityManagerFlush (Code) | | Verifies if the methods related with flush(flush(), getFlushMode(),
setFlushMode()) from EntityManager are working properly. The items 3.2.3
(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 | testVerifyDefaultValue() Verifies when the persistence context default value is AUTO. | public void | testVerifyFlushAuto() Verifies if the container manages the synchronization to the database
when the flush mode is AUTO. | public void | testVerifyFlushCommit() Verifies if the container manages the synchronization to the database
when the flush mode is COMMIT. |
setup | public void setup() throws Exception(Code) | | Creates the stateful bean used during the tests.
throws: Exception - if an error occurs during the lookup. |
testVerifyDefaultValue | public void testVerifyDefaultValue()(Code) | | Verifies when the persistence context default value is AUTO.
|
testVerifyFlushAuto | public void testVerifyFlushAuto()(Code) | | Verifies if the container manages the synchronization to the database
when the flush mode is AUTO. In this case, the flush must be made after
query methods.
|
testVerifyFlushCommit | public void testVerifyFlushCommit()(Code) | | Verifies if the container manages the synchronization to the database
when the flush mode is COMMIT. In this case, the flush must be made when
the container makes the commit.
|
|
|