|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.springframework.richclient.application.ProgressMonitoringBeanFactoryPostProcessorTests
public class ProgressMonitoringBeanFactoryPostProcessorTests
This class provides a suite of unit tests for the
ProgressMonitoringBeanFactoryPostProcessor
.
Constructor Summary | |
---|---|
ProgressMonitoringBeanFactoryPostProcessorTests()
|
Method Summary | |
---|---|
void |
testConstructor()
Confirms that the post-processor's constructor throws an IllegalArgumentException if a ProgressMonitor is not provided, but allows a null MessageSource. |
void |
testLoadingBeansWithMessageSource()
Confirms that the post processor correctly notifies a given progress monitor as the bean factory is loaded, providing the expected localized messages. |
void |
testLoadingBeansWithoutMessageSource()
Confirms that the post processor correctly notifies a given progress monitor as the bean factory is loaded. |
Methods inherited from class junit.framework.TestCase |
---|
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString |
Methods inherited from class junit.framework.Assert |
---|
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame, format |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ProgressMonitoringBeanFactoryPostProcessorTests()
Method Detail |
---|
public void testConstructor()
public void testLoadingBeansWithMessageSource()
ProgressMonitor.taskStarted(String, int)
method is
called exactly once with a localized message, provided by the key
ProgressMonitoringBeanPostProcessor#LOADING_APP_CONTEXT_KEY
, and
the number of singleton beans in the bean factory.ProgressMonitor.subTaskStarted(String)
method is called,
with the localized message provided by
ProgressMonitoringBeanPostProcessor#LOADING_BEAN_KEY
, for each
singleton bean defined in the bean factory being loaded.ProgressMonitor.worked(int)
method is called with the
argument '1' the same number of times as there are singleton beans
defined in the bean factory.
public void testLoadingBeansWithoutMessageSource()
ProgressMonitor.taskStarted(String, int)
method is
called exactly once with any message and the number of singleton beans in
the bean factory.ProgressMonitor.subTaskStarted(String)
method is called,
with the localized message provided by
ProgressMonitoringBeanPostProcessor#LOADING_BEAN_KEY
, for each
singleton bean defined in the bean factory being loaded.ProgressMonitor.worked(int)
method is called with the
argument '1' the same number of times as there are singleton beans
defined in the bean factory.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |