|
||||||||||
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.AbstractCommandRegistryTests
public abstract class AbstractCommandRegistryTests
This is an abstract test case for implementations of the CommandRegistry
interface.
Subclasses only need to override the getCommandRegistry()
method to return the
concrete implementation to be tested.
Constructor Summary | |
---|---|
protected |
AbstractCommandRegistryTests()
Creates a new uninitialized AbstractCommandRegistryTests . |
Method Summary | |
---|---|
protected abstract org.springframework.richclient.command.CommandRegistry |
getCommandRegistry()
Subclasses must override this method to provide the concrete implementation of the registry to be tested. |
void |
testContainsCommand()
Tests the CommandRegistry.containsCommand(String) method. |
void |
testGetCommandById()
Tests the CommandRegistry.getCommand(String) method. |
void |
testGetCommandByIdAndRequiredType()
Tests the CommandRegistry.getCommand(String, Class) method. |
void |
testGetType()
Tests the CommandRegistry.getType(String) method. |
void |
testIsTypeMatch()
Tests the CommandRegistry.isTypeMatch(String, Class) method. |
void |
testRegisterCommand()
Tests the CommandRegistry.registerCommand(AbstractCommand) method. |
void |
testRegisterCommandGroup()
Confirms that if a CommandGroup is being registered, it will obtain a reference to the registry that it is being added to. |
void |
testSetTargetableActionCommandExecutor()
Tests the CommandRegistry.setTargetableActionCommandExecutor(String, ActionCommandExecutor)
method. |
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 |
---|
protected AbstractCommandRegistryTests()
AbstractCommandRegistryTests
.
Method Detail |
---|
protected abstract org.springframework.richclient.command.CommandRegistry getCommandRegistry()
public void testRegisterCommand()
CommandRegistry.registerCommand(AbstractCommand)
method.
public void testRegisterCommandGroup()
public final void testIsTypeMatch()
CommandRegistry.isTypeMatch(String, Class)
method.
public final void testContainsCommand()
CommandRegistry.containsCommand(String)
method.
public final void testGetCommandById()
CommandRegistry.getCommand(String)
method.
public final void testGetCommandByIdAndRequiredType()
CommandRegistry.getCommand(String, Class)
method.
public final void testGetType()
CommandRegistry.getType(String)
method.
public void testSetTargetableActionCommandExecutor()
CommandRegistry.setTargetableActionCommandExecutor(String, ActionCommandExecutor)
method.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |