|
||||||||||
| 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.command.CommandGroupFactoryBeanTests
public class CommandGroupFactoryBeanTests
Provides a suite of unit tests for the CommandGroupFactoryBean class.
| Constructor Summary | |
|---|---|
CommandGroupFactoryBeanTests()
Creates a new uninitialized CommandGroupFactoryBeanTests. |
|
| Method Summary | |
|---|---|
void |
testConfigureIfNecessary()
Test method for CommandGroupFactoryBean.configureIfNecessary(AbstractCommand). |
void |
testConstructorTakingGroupIdAndMembersArray()
Tests the constructor that takes the group id and members array. |
void |
testCreateCommandGroup()
Test method for CommandGroupFactoryBean.createCommandGroup(). |
void |
testForEncodedMembersNotSet()
Confirms that an exception is thrown from the afterPropertiesSet method if the encodedMembers property has not been set. |
void |
testGetObjectType()
Test method for CommandGroupFactoryBean.getObjectType(). |
void |
testInvalidCommandPrefix()
Confirms that an exception is thrown if the 'command:' prefix appears in the members list with no following command name. |
void |
testInvalidGroupPrefix()
Confirms that an exception is thrown if the 'group:' prefix appears in the members list with no following command name. |
void |
testSecurityControllerIdIsApplied()
Confirms that the command group is assigned the security controller id of the factory bean. |
void |
testSetBeanName()
Test method for CommandGroupFactoryBean.setBeanName(java.lang.String). |
void |
testSetMembers()
Test method for CommandGroupFactoryBean.setMembers(java.lang.Object[]). |
| 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 CommandGroupFactoryBeanTests()
CommandGroupFactoryBeanTests.
| Method Detail |
|---|
public void testForEncodedMembersNotSet()
public final void testConstructorTakingGroupIdAndMembersArray()
throws Exception
Exceptionpublic final void testSetMembers()
CommandGroupFactoryBean.setMembers(java.lang.Object[]).
public final void testSetBeanName()
throws Exception
CommandGroupFactoryBean.setBeanName(java.lang.String).
Exceptionpublic void testInvalidGroupPrefix()
public void testInvalidCommandPrefix()
public final void testCreateCommandGroup()
throws Exception
CommandGroupFactoryBean.createCommandGroup().
Exceptionpublic final void testConfigureIfNecessary()
CommandGroupFactoryBean.configureIfNecessary(AbstractCommand).
public final void testGetObjectType()
CommandGroupFactoryBean.getObjectType().
public final void testSecurityControllerIdIsApplied()
throws Exception
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||