com.anasoft.os.daofusion.test
Class AbstractHibernateEnumerationDaoTest

java.lang.Object
  extended by com.anasoft.os.daofusion.test.BaseHibernateIntegrationTest
      extended by com.anasoft.os.daofusion.test.BaseHibernateCoreIntegrationTest
          extended by com.anasoft.os.daofusion.test.AbstractHibernateEnumerationDaoTest

public abstract class AbstractHibernateEnumerationDaoTest
extends BaseHibernateCoreIntegrationTest

Core integration test for AbstractHibernateEnumerationDao.

Author:
vojtech.szocs
See Also:
BaseHibernateCoreIntegrationTest

Field Summary
protected static java.lang.String PAYMENT_TYPE_CASH
           
protected static java.lang.String PAYMENT_TYPE_CREDIT_CARD
           
protected static java.lang.String PAYMENT_TYPE_CHECK
           
 
Fields inherited from class com.anasoft.os.daofusion.test.BaseHibernateCoreIntegrationTest
CONTEXT_LOCATION, COUNTRY_JAPAN, COUNTRY_SLOVAKIA, countryDao, CUSTOMER_EMAIL_SUFFIX, CUSTOMER_ONE_EMAIL_PREFIX, CUSTOMER_ONE_FIRST_NAME, CUSTOMER_TWO_EMAIL_PREFIX, CUSTOMER_TWO_FIRST_NAME, CUSTOMER_TWO_LAST_NAME_PREFIX, customerDao, customerOneEmail, customerOneId, customerTwoId, ORDER_ITEM_PER_ORDER_COUNT, ORDER_PER_CUSTOMER_COUNT, orderDao, orderItemDao, orderOneShippingAddress, paymentTypeDao, STOCK_ITEM_CATEGORY_COMPUTERS, STOCK_ITEM_CATEGORY_COMPUTERS_DESC, STOCK_ITEM_CATEGORY_FOOD, STOCK_ITEM_CATEGORY_FOOD_DESC, stockItemCategoryDao, stockItemDao, TOTAL_COUNTRY_COUNT, TOTAL_CUSTOMER_COUNT, TOTAL_ORDER_COUNT, TOTAL_ORDER_ITEM_COUNT, TOTAL_STOCK_ITEM_CATEGORY_COUNT
 
Fields inherited from class com.anasoft.os.daofusion.test.BaseHibernateIntegrationTest
PROFILE_DBTYPE_NAME, PROFILE_DBTYPE_VALUE_ALL, PROFILE_DBTYPE_VALUE_LOCAL, PROFILE_DBTYPE_VALUE_REMOTE
 
Constructor Summary
AbstractHibernateEnumerationDaoTest()
           
 
Method Summary
 void testGetByName_retrievingNonExistingPersistentEnumerationInstance()
          Test for PersistentEnumerationDao.getByName(String, Class): trying to retrieve a non-existing persistent enumeration instance.
 void testGetByName_retrievingPersistentEnumerationInstance()
          Test for PersistentEnumerationDao.getByName(String, Class): retrieving a persistent enumeration instance.
 void testGetByNames_retrievingPersistentEnumerationInstances()
          Test for PersistentEnumerationDao.getByNames(Class, String...): retrieving multiple persistent enumeration instances.
 void verifyTestData()
          Verify the test data shared by all test case methods.
 
Methods inherited from class com.anasoft.os.daofusion.test.BaseHibernateCoreIntegrationTest
setupTestData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PAYMENT_TYPE_CREDIT_CARD

protected static final java.lang.String PAYMENT_TYPE_CREDIT_CARD
See Also:
Constant Field Values

PAYMENT_TYPE_CHECK

protected static final java.lang.String PAYMENT_TYPE_CHECK
See Also:
Constant Field Values

PAYMENT_TYPE_CASH

protected static final java.lang.String PAYMENT_TYPE_CASH
See Also:
Constant Field Values
Constructor Detail

AbstractHibernateEnumerationDaoTest

public AbstractHibernateEnumerationDaoTest()
Method Detail

verifyTestData

public void verifyTestData()
Verify the test data shared by all test case methods.


testGetByName_retrievingPersistentEnumerationInstance

public void testGetByName_retrievingPersistentEnumerationInstance()
Test for PersistentEnumerationDao.getByName(String, Class): retrieving a persistent enumeration instance.


testGetByName_retrievingNonExistingPersistentEnumerationInstance

public void testGetByName_retrievingNonExistingPersistentEnumerationInstance()
Test for PersistentEnumerationDao.getByName(String, Class): trying to retrieve a non-existing persistent enumeration instance.


testGetByNames_retrievingPersistentEnumerationInstances

public void testGetByNames_retrievingPersistentEnumerationInstances()
Test for PersistentEnumerationDao.getByNames(Class, String...): retrieving multiple persistent enumeration instances.



Copyright © 2008-2009 ANASOFT and contributors. All Rights Reserved.