com.anasoft.os.daofusion.test
Class BaseHibernateCoreIntegrationTest

java.lang.Object
  extended by com.anasoft.os.daofusion.test.BaseHibernateIntegrationTest
      extended by com.anasoft.os.daofusion.test.BaseHibernateCoreIntegrationTest
Direct Known Subclasses:
AbstractHibernateEntityDaoTest, AbstractHibernateEnumerationDaoTest

@ContextConfiguration(locations="classpath:testContext-hibernate-coreIntegration.xml")
public abstract class BaseHibernateCoreIntegrationTest
extends BaseHibernateIntegrationTest

Base class for core integration tests aimed at standard persistent entity DAO implementations.

Core integration tests operate on the sample eShop domain model defined within the example subpackage.

Note that all configuration steps described within the BaseHibernateIntegrationTest must be followed by specific core integration test subclasses.

Author:
vojtech.szocs
See Also:
BaseHibernateIntegrationTest

Field Summary
protected static java.lang.String CONTEXT_LOCATION
           
protected static java.lang.String COUNTRY_JAPAN
           
protected static java.lang.String COUNTRY_SLOVAKIA
           
protected  CountryDao countryDao
           
protected static java.lang.String CUSTOMER_EMAIL_SUFFIX
           
protected static java.lang.String CUSTOMER_ONE_EMAIL_PREFIX
           
protected static java.lang.String CUSTOMER_ONE_FIRST_NAME
           
protected static java.lang.String CUSTOMER_TWO_EMAIL_PREFIX
           
protected static java.lang.String CUSTOMER_TWO_FIRST_NAME
           
protected static java.lang.String CUSTOMER_TWO_LAST_NAME_PREFIX
           
protected  CustomerDao customerDao
           
protected  java.lang.String customerOneEmail
           
protected  java.lang.Long customerOneId
           
protected  java.lang.Long customerTwoId
           
protected static int ORDER_ITEM_PER_ORDER_COUNT
           
protected static int ORDER_PER_CUSTOMER_COUNT
           
protected  OrderDao orderDao
           
protected  OrderItemDao orderItemDao
           
protected  Address orderOneShippingAddress
           
protected  PaymentTypeDao paymentTypeDao
           
protected static java.lang.String STOCK_ITEM_CATEGORY_COMPUTERS
           
protected static java.lang.String STOCK_ITEM_CATEGORY_COMPUTERS_DESC
           
protected static java.lang.String STOCK_ITEM_CATEGORY_FOOD
           
protected static java.lang.String STOCK_ITEM_CATEGORY_FOOD_DESC
           
protected  StockItemCategoryDao stockItemCategoryDao
           
protected  StockItemDao stockItemDao
           
protected static int TOTAL_COUNTRY_COUNT
           
protected static int TOTAL_CUSTOMER_COUNT
           
protected static int TOTAL_ORDER_COUNT
           
protected static int TOTAL_ORDER_ITEM_COUNT
           
protected static int 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
BaseHibernateCoreIntegrationTest()
           
 
Method Summary
 void setupTestData()
          Set up the test data shared by all test cases.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONTEXT_LOCATION

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

countryDao

protected CountryDao countryDao

customerDao

protected CustomerDao customerDao

orderDao

protected OrderDao orderDao

orderItemDao

protected OrderItemDao orderItemDao

paymentTypeDao

protected PaymentTypeDao paymentTypeDao

stockItemCategoryDao

protected StockItemCategoryDao stockItemCategoryDao

stockItemDao

protected StockItemDao stockItemDao

COUNTRY_SLOVAKIA

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

COUNTRY_JAPAN

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

STOCK_ITEM_CATEGORY_FOOD

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

STOCK_ITEM_CATEGORY_FOOD_DESC

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

STOCK_ITEM_CATEGORY_COMPUTERS

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

STOCK_ITEM_CATEGORY_COMPUTERS_DESC

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

TOTAL_COUNTRY_COUNT

protected static final int TOTAL_COUNTRY_COUNT
See Also:
Constant Field Values

TOTAL_STOCK_ITEM_CATEGORY_COUNT

protected static final int TOTAL_STOCK_ITEM_CATEGORY_COUNT
See Also:
Constant Field Values

TOTAL_CUSTOMER_COUNT

protected static final int TOTAL_CUSTOMER_COUNT
See Also:
Constant Field Values

TOTAL_ORDER_COUNT

protected static final int TOTAL_ORDER_COUNT
See Also:
Constant Field Values

ORDER_PER_CUSTOMER_COUNT

protected static final int ORDER_PER_CUSTOMER_COUNT
See Also:
Constant Field Values

ORDER_ITEM_PER_ORDER_COUNT

protected static final int ORDER_ITEM_PER_ORDER_COUNT
See Also:
Constant Field Values

TOTAL_ORDER_ITEM_COUNT

protected static final int TOTAL_ORDER_ITEM_COUNT
See Also:
Constant Field Values

customerOneId

protected java.lang.Long customerOneId

customerTwoId

protected java.lang.Long customerTwoId

customerOneEmail

protected java.lang.String customerOneEmail

orderOneShippingAddress

protected Address orderOneShippingAddress

CUSTOMER_ONE_EMAIL_PREFIX

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

CUSTOMER_TWO_EMAIL_PREFIX

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

CUSTOMER_EMAIL_SUFFIX

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

CUSTOMER_ONE_FIRST_NAME

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

CUSTOMER_TWO_FIRST_NAME

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

CUSTOMER_TWO_LAST_NAME_PREFIX

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

BaseHibernateCoreIntegrationTest

public BaseHibernateCoreIntegrationTest()
Method Detail

setupTestData

public void setupTestData()
Set up the test data shared by all test cases.



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