org.appfuse.service.impl
Class BaseManagerMockTestCase

java.lang.Object
  extended by org.appfuse.service.impl.BaseManagerMockTestCase

public abstract class BaseManagerMockTestCase
extends java.lang.Object

A mock class for testing using JMock. This test class can be moved to the test tree.

Author:
mraible

Field Summary
protected  org.jmock.Mockery context
          The junit 4 context
protected  org.apache.commons.logging.Log log
          A logger
protected  java.util.ResourceBundle rb
          The resourceBundle
 
Constructor Summary
BaseManagerMockTestCase()
          Default constructor will set the ResourceBundle if needed.
 
Method Summary
protected  java.lang.Object populate(java.lang.Object obj)
          Utility method to populate a javabean-style object with values from a Properties file
 
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 logger


rb

protected java.util.ResourceBundle rb
The resourceBundle


context

protected org.jmock.Mockery context
The junit 4 context

Constructor Detail

BaseManagerMockTestCase

public BaseManagerMockTestCase()
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 a javabean-style 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.