org.springframework.richclient.application.config
Class DefaultApplicationObjectConfigurerTests

Show UML class diagram
java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.springframework.richclient.application.config.DefaultApplicationObjectConfigurerTests
All Implemented Interfaces:
junit.framework.Test

public class DefaultApplicationObjectConfigurerTests
extends junit.framework.TestCase

Provides a suite of unit tests for the DefaultApplicationObjectConfigurer class.

Since:
0.3
Author:
Kevin Stembridge

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

DefaultApplicationObjectConfigurerTests

public DefaultApplicationObjectConfigurerTests()
Creates a new DefaultApplicationObjectConfigurerTests.

Method Detail

testForNullInputToConfigureMethod

public void testForNullInputToConfigureMethod()
Confirms that an IllegalArgumentException is thrown if the object to be configured is not null but the object name is null.


testConfigureTitleConfigurable

public void testConfigureTitleConfigurable()
Confirms that a TitleConfigurable object will have its title set correctly, as retrieved from a MessageSource using the key 'beanName.title'.


testConfigureTitleConfigurableWithNoTitleFound

public void testConfigureTitleConfigurableWithNoTitleFound()

testDescriptionConfigurable

public 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.


testDescriptionConfigurableWithNoDescriptionFound

public void testDescriptionConfigurableWithNoDescriptionFound()

testLabelConfigurable

public void testLabelConfigurable()
Confirms that a LabelConfigurable object will have its label set correctly, as retrieved from a MessageSource using the key 'beanName.label'.


testLabelConfigurableWithNoLabelFound

public void testLabelConfigurableWithNoLabelFound()

testCommandLabelConfigurable

public void testCommandLabelConfigurable()
Confirms that a CommandLabelConfigurable object will have its label set correctly, as retrieved from a MessageSource using the key 'beanName.label'.


testCommandLabelConfigurableWithNoLabelFound

public void testCommandLabelConfigurableWithNoLabelFound()

testConfigureIconConfigurable

public 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'.


testConfigureIconConfigurableWithNoIconFound

public void testConfigureIconConfigurableWithNoIconFound()

testCommandIconConfigurable

public void testCommandIconConfigurable()
Confirms that a CommandIconConfigurable object will have its icons set correctly.


testCommandIconConfigurableWithNoIconFound

public void testCommandIconConfigurableWithNoIconFound()

testImageConfigurable

public 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'.


testImageConfigurableWithNoImageFound

public void testImageConfigurableWithNoImageFound()

testSecurityControllable

public void testSecurityControllable()
Confirms that a SecurityControllable object will have its security controller set correctly, as retrieved from a MessageSource using the key 'beanName.label'.



Copyright © 2004-2009 The Spring Framework. All Rights Reserved.