| org.apache.cocoon.components.thread.AbstractTestCase
All known Subclasses: org.apache.cocoon.components.thread.DefaultRunnableManagerTestCase, org.apache.cocoon.components.thread.DefaultThreadPoolTestCase,
AbstractTestCase | public class AbstractTestCase extends TestCase (Code) | | A
TestCase with convenience methods to ease creation of Avalon mock
classes.
author: Giacomo Pati version: $Id$ |
AbstractTestCase | public AbstractTestCase(String name)(Code) | | Constructor
Parameters: name - |
AbstractTestCase | public AbstractTestCase()(Code) | | Constructor
|
createBooleanConfigMock | protected Configuration createBooleanConfigMock(boolean value, boolean defaultValue)(Code) | | Create a mock
Configuration instance that has a boolean value
Parameters: value - The value to return Parameters: defaultValue - The value accepted as the default value A mock Configuration |
createBooleanConfigMock | protected Configuration createBooleanConfigMock(boolean value) throws ConfigurationException(Code) | | Create a mock
Configuration instance that has a boolean value
Parameters: value - The value to return A mock Configuration throws: ConfigurationException - |
createChildConfigMock | protected Configuration createChildConfigMock(String name, Configuration value)(Code) | | Create a
Configuration instance that has a child
Parameters: name - The value accepted as the name for the child Parameters: value - The value to return A mock Configuration |
createChildrenConfigMock | protected Configuration createChildrenConfigMock(String name, Configuration[] value)(Code) | | Create a
Configuration instance that has a boolean value
Parameters: name - The value accepted as the name for the children Parameters: value - The value to return A mock Configuration |
createIntegerConfigMock | protected Configuration createIntegerConfigMock(int value, int defaultValue)(Code) | | Create a
Configuration instance that has a int value
Parameters: value - The value to return Parameters: defaultValue - The value accepted as the default value A mock Configuration |
createIntegerConfigMock | protected Configuration createIntegerConfigMock(int value) throws ConfigurationException(Code) | | Create a
Configuration instance that has a int value
Parameters: value - The value to return A mock Configuration throws: ConfigurationException - |
createLongConfigMock | protected Configuration createLongConfigMock(long value, long defaultValue)(Code) | | Create a
Configuration instance that has a long value
Parameters: value - The value to return Parameters: defaultValue - The value accepted as the default value A mock Configuration |
createLongConfigMock | protected Configuration createLongConfigMock(long value) throws ConfigurationException(Code) | | Create a
Configuration instance that has a long value
Parameters: value - The value to return A mock Configuration throws: ConfigurationException - |
createStrictControl | protected MockControl createStrictControl(Class clazz)(Code) | | Create a strict mock control
Parameters: clazz - The interface class the mock object should represent The mock instance |
createValueConfigMock | protected Configuration createValueConfigMock(String value, String defaultValue)(Code) | | Create a
Configuration instance that has a string value
Parameters: value - The value to return Parameters: defaultValue - The value accepted as the default value A mock Configuration |
createValueConfigMock | protected Configuration createValueConfigMock(String value) throws ConfigurationException(Code) | | Create a
Configuration instance that has a string value
Parameters: value - The value to return A mock Configuration throws: ConfigurationException - |
setUp | protected void setUp() throws Exception(Code) | | Create an empty list for
MockControl s created by
create...Control methods
throws: Exception - |
tearDown | protected void tearDown() throws Exception(Code) | | See Also: TestCase.tearDown |
verify | protected void verify()(Code) | | Verify all MockCOntrol s
|
|
|