org.lexevs.dao.database.ibatis.entity
Class IbatisEntityDaoTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.dbunit.DatabaseTestCase
              extended by org.dbunit.DBTestCase
                  extended by org.dbunit.DataSourceBasedDBTestCase
                      extended by org.lexevs.dao.test.LexEvsDbUnitTestBase
                          extended by org.lexevs.dao.database.ibatis.entity.IbatisEntityDaoTest
All Implemented Interfaces:
junit.framework.Test

@TransactionConfiguration(transactionManager="transactionManager",
                          defaultRollback=false)
@Transactional
public class IbatisEntityDaoTest
extends org.lexevs.dao.test.LexEvsDbUnitTestBase

The Class IbatisEntityDaoTest.

Author:
Kevin Peterson

Field Summary
 
Fields inherited from class org.lexevs.dao.test.LexEvsDbUnitTestBase
databaseType, dataSource, lexEvsDatabaseOperations, methodCachingProxy, prefixResolver, primaryKeyIncrementer, systemVariables
 
Constructor Summary
IbatisEntityDaoTest()
           
 
Method Summary
 void insertAssociationEntity()
           
 void insertCodingScheme()
          Insert coding scheme.
 void insertEntity()
          Insert entity.
 void insertEntityWithException()
          Insert entity.
 void insertHistoryEntity()
          Insert entity.
 void testDefaultIsActiveEntity()
           
 void testEntityCount()
          Test entity count.
 void testEntityDefinition()
          Test lazy load presentations.
 void testEntityPresentations()
          Test lazy load presentations.
 void testGetAllEntitiesByUids()
          Test lazy load presentations.
 void testGetAllEntitiesOfCodingScheme()
          Test get all entities of coding scheme.
 void testGetAllEntitiesOfCodingSchemeWithLimit()
          Test get all entities of coding scheme with limit.
 void testGetAllEntitiesOfCodingSchemeWithLimitAndStart()
          Test get all entities of coding scheme with limit and start.
 void testGetAssociationEntity()
           
 void testGetEntityAssociationEntity()
           
 void testGetEntityUId()
           
 void testGetEntityWithEverything()
           
 void testGetEntityWithTwoTypes()
           
 void testGetHistoryEntity()
          Test lazy load presentations.
 void testGetHistoryEntityWithTwoInHistory()
           
 void testUpdateEntityEntityDescription()
           
 
Methods inherited from class org.lexevs.dao.test.LexEvsDbUnitTestBase
checkSetUp, getDataSet, getDataSource, setSystemProp, setUp, tearDown
 
Methods inherited from class org.dbunit.DataSourceBasedDBTestCase
newDatabaseTester
 
Methods inherited from class org.dbunit.DBTestCase
getConnection
 
Methods inherited from class org.dbunit.DatabaseTestCase
closeConnection, getDatabaseTester, getOperationListener, getSetUpOperation, getTearDownOperation, setUpDatabaseConfig
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IbatisEntityDaoTest

public IbatisEntityDaoTest()
Method Detail

insertCodingScheme

public void insertCodingScheme()
Insert coding scheme.


testDefaultIsActiveEntity

public void testDefaultIsActiveEntity()

insertEntity

public void insertEntity()
Insert entity.


insertAssociationEntity

public void insertAssociationEntity()

insertHistoryEntity

public void insertHistoryEntity()
Insert entity.


insertEntityWithException

@Transactional
public void insertEntityWithException()
Insert entity.


testGetAllEntitiesOfCodingScheme

@Transactional
public void testGetAllEntitiesOfCodingScheme()
Test get all entities of coding scheme.


testGetAllEntitiesOfCodingSchemeWithLimit

@Transactional
public void testGetAllEntitiesOfCodingSchemeWithLimit()
Test get all entities of coding scheme with limit.


testGetAllEntitiesOfCodingSchemeWithLimitAndStart

@Transactional
public void testGetAllEntitiesOfCodingSchemeWithLimitAndStart()
Test get all entities of coding scheme with limit and start.


testEntityPresentations

@Transactional
public void testEntityPresentations()
Test lazy load presentations.


testGetAllEntitiesByUids

@Transactional
public void testGetAllEntitiesByUids()
Test lazy load presentations.


testGetEntityUId

public void testGetEntityUId()

testEntityDefinition

@Transactional
public void testEntityDefinition()
Test lazy load presentations.


testEntityCount

@Transactional
public void testEntityCount()
Test entity count.


testGetHistoryEntity

@Transactional
public void testGetHistoryEntity()
Test lazy load presentations.


testGetHistoryEntityWithTwoInHistory

@Transactional
public void testGetHistoryEntityWithTwoInHistory()
                                          throws java.lang.InterruptedException
Throws:
java.lang.InterruptedException

testGetAssociationEntity

@Transactional
public void testGetAssociationEntity()

testGetEntityWithTwoTypes

@Transactional
public void testGetEntityWithTwoTypes()
                               throws java.lang.Exception
Throws:
java.lang.Exception

testGetEntityWithEverything

@Transactional
public void testGetEntityWithEverything()
                                 throws java.lang.Exception
Throws:
java.lang.Exception

testGetEntityAssociationEntity

@Transactional
public void testGetEntityAssociationEntity()

testUpdateEntityEntityDescription

@Transactional
public void testUpdateEntityEntityDescription()

Copyright: (c) 2004-2006 Mayo Foundation for Medical Education and Research (MFMER). All rights reserved. MAYO, MAYO CLINIC, and the triple-shield Mayo logo are trademarks and service marks of MFMER.