| |
|
| java.lang.Object org.ow2.easybeans.tests.entity.TestEntityManager01
TestEntityManager01 | public class TestEntityManager01 (Code) | | Verifies if the methods remove and persist from EntityManager are working
properly. The items 3.2.1 e 3.2.2 (Persistence doc)
author: Gisele Pinheiro Souza author: Eduardo Studzinski Estima de Castro |
Field Summary | |
final public static String | ALTERNATIVE_ENTITY_NAME The entity bean alternative name that is used during the tests. | final public static String | ENTITY_NAME The entity bean name that is used during the tests. | final public static int | PRIMARY_KEY The entity bean primary key that is used during the tests. |
Method Summary | |
public void | setup() Creates the stateless bean used during the tests. | public void | testContains() Tests if the contains method in the EntityManager works well. | public void | testMerge() Tests if the EntityManager can make a merge with a detached entity. | public void | testRefresh() Tests if the EntityManager can make a refresh. |
ALTERNATIVE_ENTITY_NAME | final public static String ALTERNATIVE_ENTITY_NAME(Code) | | The entity bean alternative name that is used during the tests.
|
ENTITY_NAME | final public static String ENTITY_NAME(Code) | | The entity bean name that is used during the tests.
|
PRIMARY_KEY | final public static int PRIMARY_KEY(Code) | | The entity bean primary key that is used during the tests.
|
setup | public void setup() throws Exception(Code) | | Creates the stateless bean used during the tests.
throws: Exception - if an error occurs during the lookup. |
testContains | public void testContains()(Code) | | Tests if the contains method in the EntityManager works well.
|
testMerge | public void testMerge()(Code) | | Tests if the EntityManager can make a merge with a detached entity.
|
testRefresh | public void testRefresh()(Code) | | Tests if the EntityManager can make a refresh.
|
|
|
|