org.appfuse.service
Class BaseManagerTestCase
java.lang.Object
org.springframework.test.context.junit4.AbstractJUnit4SpringContextTests
org.springframework.test.context.junit4.AbstractTransactionalJUnit4SpringContextTests
org.appfuse.service.BaseManagerTestCase
- All Implemented Interfaces:
- org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware
@ContextConfiguration(locations={"classpath:/applicationContext-resources.xml","classpath:/applicationContext-dao.xml","classpath:/applicationContext-service.xml","classpath*:/**/applicationContext.xml"})
public abstract class BaseManagerTestCase- extends org.springframework.test.context.junit4.AbstractTransactionalJUnit4SpringContextTests
|
Field Summary |
protected org.apache.commons.logging.Log |
log
A simple logger |
protected ResourceBundle |
rb
The resourceBundle |
| Fields inherited from class org.springframework.test.context.junit4.AbstractTransactionalJUnit4SpringContextTests |
simpleJdbcTemplate |
| Fields inherited from class org.springframework.test.context.junit4.AbstractJUnit4SpringContextTests |
applicationContext, logger |
|
Constructor Summary |
BaseManagerTestCase()
Default constructor will set the ResourceBundle if needed. |
|
Method Summary |
protected Object |
populate(Object obj)
Utility method to populate an object with values from a properties file |
| Methods inherited from class org.springframework.test.context.junit4.AbstractTransactionalJUnit4SpringContextTests |
countRowsInTable, deleteFromTables, executeSqlScript, setDataSource, setSqlScriptEncoding |
| Methods inherited from class org.springframework.test.context.junit4.AbstractJUnit4SpringContextTests |
setApplicationContext |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
protected final org.apache.commons.logging.Log log
- A simple logger
rb
protected ResourceBundle rb
- The resourceBundle
BaseManagerTestCase
public BaseManagerTestCase()
- Default constructor will set the ResourceBundle if needed.
populate
protected Object populate(Object obj)
throws Exception
- Utility method to populate an object with values from a properties file
- Parameters:
obj - the model object to populate
- Returns:
- Object populated object
- Throws:
Exception - if BeanUtils fails to copy properly
Copyright © 2003-2012. All Rights Reserved.