public class TopiaDAOTest extends Object
TopiaDAO.
Last update : $Date: 2013-10-25 16:48:13 +0200 (Fri, 25 Oct 2013) $
By : $Author: athimel $| Modifier and Type | Field and Description |
|---|---|
protected TopiaTestTopiaPersistenceContext |
context |
protected PersonDAO |
dao |
TopiaDatabase |
db |
| Constructor and Description |
|---|
TopiaDAOTest() |
| Modifier and Type | Method and Description |
|---|---|
protected Person |
createPerson(String name) |
protected void |
createPersons(int number) |
void |
findAllLazyByQuery() |
void |
iterateOnTopiaDAO() |
void |
setup() |
void |
testCreateAndFindInTransaction()
Test de creer une entité et de verifier qu'elle est
présente dans la persistence au sein de la transaction.
|
public final TopiaDatabase db
protected TopiaTestTopiaPersistenceContext context
protected PersonDAO dao
public void setup()
throws org.nuiton.topia.TopiaException
org.nuiton.topia.TopiaExceptionpublic void testCreateAndFindInTransaction()
throws Exception
Exception - if any exception while testpublic void findAllLazyByQuery()
throws org.nuiton.topia.TopiaException
org.nuiton.topia.TopiaExceptionpublic void iterateOnTopiaDAO()
throws org.nuiton.topia.TopiaException
org.nuiton.topia.TopiaExceptionprotected void createPersons(int number)
throws org.nuiton.topia.TopiaException
org.nuiton.topia.TopiaExceptionCopyright © 2004–2013 CodeLutin. All rights reserved.