|
||||||||||
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.config.DefaultApplicationObjectConfigurerTests
public class DefaultApplicationObjectConfigurerTests
Provides a suite of unit tests for the
DefaultApplicationObjectConfigurer
class.
Constructor Summary | |
---|---|
DefaultApplicationObjectConfigurerTests()
Creates a new DefaultApplicationObjectConfigurerTests . |
Method Summary | |
---|---|
void |
testCommandIconConfigurable()
Confirms that a CommandIconConfigurable object will have its
icons set correctly. |
void |
testCommandIconConfigurableWithNoIconFound()
|
void |
testCommandLabelConfigurable()
Confirms that a CommandLabelConfigurable object will have its
label set correctly, as retrieved from a MessageSource using the key
'beanName.label'. |
void |
testCommandLabelConfigurableWithNoLabelFound()
|
void |
testConfigureIconConfigurable()
Confirms that a IconConfigurable object will have its icon set
correctly, if the icon source can find it using the key
'objectName.icon'. |
void |
testConfigureIconConfigurableWithNoIconFound()
|
void |
testConfigureTitleConfigurable()
Confirms that a TitleConfigurable object will have its title set
correctly, as retrieved from a MessageSource using the key
'beanName.title'. |
void |
testConfigureTitleConfigurableWithNoTitleFound()
|
void |
testDescriptionConfigurable()
Confirms that a DescriptionConfigurable object will have its
description and caption set correctly, as retrieved from a MessageSource
using the key 'beanName.description' and 'beanName.caption' respectively. |
void |
testDescriptionConfigurableWithNoDescriptionFound()
|
void |
testForNullInputToConfigureMethod()
Confirms that an IllegalArgumentException is thrown if the object to be configured is not null but the object name is null. |
void |
testImageConfigurable()
Confirms that a ImageConfigurable object will have its image set
correctly, if the image source can find it using the key
'objectName.image'. |
void |
testImageConfigurableWithNoImageFound()
|
void |
testLabelConfigurable()
Confirms that a LabelConfigurable object will have its label set
correctly, as retrieved from a MessageSource using the key
'beanName.label'. |
void |
testLabelConfigurableWithNoLabelFound()
|
void |
testSecurityControllable()
Confirms that a SecurityControllable object will have its
security controller set correctly, as retrieved from a MessageSource
using the key 'beanName.label'. |
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 DefaultApplicationObjectConfigurerTests()
DefaultApplicationObjectConfigurerTests
.
Method Detail |
---|
public void testForNullInputToConfigureMethod()
public void testConfigureTitleConfigurable()
TitleConfigurable
object will have its title set
correctly, as retrieved from a MessageSource using the key
'beanName.title'.
public void testConfigureTitleConfigurableWithNoTitleFound()
public void testDescriptionConfigurable()
DescriptionConfigurable
object will have its
description and caption set correctly, as retrieved from a MessageSource
using the key 'beanName.description' and 'beanName.caption' respectively.
public void testDescriptionConfigurableWithNoDescriptionFound()
public void testLabelConfigurable()
LabelConfigurable
object will have its label set
correctly, as retrieved from a MessageSource using the key
'beanName.label'.
public void testLabelConfigurableWithNoLabelFound()
public void testCommandLabelConfigurable()
CommandLabelConfigurable
object will have its
label set correctly, as retrieved from a MessageSource using the key
'beanName.label'.
public void testCommandLabelConfigurableWithNoLabelFound()
public void testConfigureIconConfigurable()
IconConfigurable
object will have its icon set
correctly, if the icon source can find it using the key
'objectName.icon'.
public void testConfigureIconConfigurableWithNoIconFound()
public void testCommandIconConfigurable()
CommandIconConfigurable
object will have its
icons set correctly.
public void testCommandIconConfigurableWithNoIconFound()
public void testImageConfigurable()
ImageConfigurable
object will have its image set
correctly, if the image source can find it using the key
'objectName.image'.
public void testImageConfigurableWithNoImageFound()
public void testSecurityControllable()
SecurityControllable
object will have its
security controller set correctly, as retrieved from a MessageSource
using the key 'beanName.label'.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |