org.lexevs.dao.database.service.codingscheme
Class VersionableEventCodingSchemeServiceTest

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.service.codingscheme.VersionableEventCodingSchemeServiceTest
All Implemented Interfaces:
junit.framework.Test

public class VersionableEventCodingSchemeServiceTest
extends org.lexevs.dao.test.LexEvsDbUnitTestBase

The Class VersionableEventCodingSchemeServiceTest.

Author:
Kevin Peterson

Nested Class Summary
static class VersionableEventCodingSchemeServiceTest.TestAnnotatedCodingSchemeService
           
 
Field Summary
 
Fields inherited from class org.lexevs.dao.test.LexEvsDbUnitTestBase
databaseType, dataSource, lexEvsDatabaseOperations, methodCachingProxy, prefixResolver, primaryKeyIncrementer, systemVariables
 
Constructor Summary
VersionableEventCodingSchemeServiceTest()
           
 
Method Summary
 void insertCodingScheme()
          Insert coding scheme.
 void insertCodingSchemeWithLocalName()
          Insert coding scheme with local name.
 void testErrorCallbackCodingSchemeService()
          Test insert coding scheme with everything.
 void testErrorCallbackCodingSchemeServiceNonAnnotatedException()
           
 void testErrorCallbackCodingSchemeServiceWithRollback()
           
 void testInsertCodingSchemeWithEntityAndProperty()
          Test insert coding scheme with entity and property.
 void testInsertCodingSchemeWithEverything()
          Test insert coding scheme with everything.
 void updateCodingSchemeWithMappingsInsert()
           
 void updateCodingSchemeWithMappingsUpdate()
           
 
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

VersionableEventCodingSchemeServiceTest

public VersionableEventCodingSchemeServiceTest()
Method Detail

insertCodingScheme

public void insertCodingScheme()
                        throws java.lang.Exception
Insert coding scheme.

Throws:
java.lang.Exception - the exception

insertCodingSchemeWithLocalName

public void insertCodingSchemeWithLocalName()
                                     throws java.lang.Exception
Insert coding scheme with local name.

Throws:
java.lang.Exception - the exception

testInsertCodingSchemeWithEntityAndProperty

public void testInsertCodingSchemeWithEntityAndProperty()
                                                 throws java.lang.Exception
Test insert coding scheme with entity and property.

Throws:
java.lang.Exception - the exception

testInsertCodingSchemeWithEverything

public void testInsertCodingSchemeWithEverything()
                                          throws java.lang.Exception
Test insert coding scheme with everything.

Throws:
java.lang.Exception - the exception

updateCodingSchemeWithMappingsInsert

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

updateCodingSchemeWithMappingsUpdate

public void updateCodingSchemeWithMappingsUpdate()
                                          throws java.lang.Exception
Throws:
java.lang.Exception

testErrorCallbackCodingSchemeService

@Transactional
public void testErrorCallbackCodingSchemeService()
                                          throws java.lang.Exception
Test insert coding scheme with everything.

Throws:
java.lang.Exception - the exception

testErrorCallbackCodingSchemeServiceNonAnnotatedException

public void testErrorCallbackCodingSchemeServiceNonAnnotatedException()
                                                               throws java.lang.Exception
Throws:
java.lang.Exception

testErrorCallbackCodingSchemeServiceWithRollback

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

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.