org.appfuse.service
Class BaseManagerTestCase

java.lang.Object
  extended by org.springframework.test.context.junit4.AbstractJUnit4SpringContextTests
      extended by org.springframework.test.context.junit4.AbstractTransactionalJUnit4SpringContextTests
          extended by org.appfuse.service.BaseManagerTestCase
All Implemented Interfaces:
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  java.util.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  java.lang.Object populate(java.lang.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
 

Field Detail

log

protected final org.apache.commons.logging.Log log
A simple logger


rb

protected java.util.ResourceBundle rb
The resourceBundle

Constructor Detail

BaseManagerTestCase

public BaseManagerTestCase()
Default constructor will set the ResourceBundle if needed.

Method Detail

populate

protected java.lang.Object populate(java.lang.Object obj)
                             throws java.lang.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:
java.lang.Exception - if BeanUtils fails to copy properly


Copyright © 2003-2009. All Rights Reserved.