|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.appfuse.service.impl.BaseManagerMockTestCase
public abstract class BaseManagerMockTestCase
A mock class for testing using JMock. This test class can be moved to the test tree.
| 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 |
|---|
protected final org.apache.commons.logging.Log log
protected java.util.ResourceBundle rb
protected org.jmock.Mockery context
| Constructor Detail |
|---|
public BaseManagerMockTestCase()
| Method Detail |
|---|
protected java.lang.Object populate(java.lang.Object obj)
throws java.lang.Exception
obj - the model object to populate
java.lang.Exception - if BeanUtils fails to copy properly
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||