public class DelegatingComponentMonitorTestCase
extends org.jmock.MockObjectTestCase
| Modifier and Type | Class and Description |
|---|---|
(package private) static interface |
DelegatingComponentMonitorTestCase.MonitorThatSupportsStrategy |
(package private) static class |
DelegatingComponentMonitorTestCase.NeedsACoupleOfThings |
| Constructor and Description |
|---|
DelegatingComponentMonitorTestCase() |
| Modifier and Type | Method and Description |
|---|---|
private org.picocontainer.ComponentMonitor |
mockMonitorThatSupportsStrategy(org.picocontainer.ComponentMonitor currentMonitor) |
private org.picocontainer.ComponentMonitor |
mockMonitorWithNoExpectedMethods() |
void |
testDelegatingMonitorCanChangeMonitorInDelegateThatDoesSupportMonitorStrategy() |
void |
testDelegatingMonitorChangesDelegateThatDoesNotSupportMonitorStrategy() |
void |
testDelegatingMonitorReturnsDelegateThatDoesNotSupportMonitorStrategy() |
void |
testDelegatingMonitorThrowsExpectionWhenChangingToNullMonitor() |
void |
testDelegatingMonitorThrowsExpectionWhenConstructionWithNullDelegate() |
void |
testMonitoringHappensBeforeAndAfterInstantiation() |
atLeastOnce, atMostOnce, defaultMockNameForType, doAll, doAll, doAll, doAll, exactly, mock, mock, never, never, newCoreMock, newDummy, newDummy, newDummy, once, onConsecutiveCalls, onConsecutiveCalls, onConsecutiveCalls, onConsecutiveCalls, returnIterator, returnIterator, returnValue, returnValue, returnValue, returnValue, returnValue, returnValue, returnValue, returnValue, returnValue, throwExceptionand, arrayContaining, arrayContaining, arrayContaining, arrayContaining, arrayContaining, arrayContaining, arrayContaining, arrayContaining, arrayContaining, arrayContaining, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, collectionContaining, collectionContaining, compatibleType, contains, endsWith, eq, eq, eq, eq, eq, eq, eq, eq, eq, eq, hasProperty, hasProperty, isA, isIn, isIn, mapContaining, mapContaining, mapWithKey, mapWithKey, mapWithValue, mapWithValue, not, or, same, startsWith, stringContains, toStringregisterToVerify, runBare, unregisterToVerify, verifycountTestCases, createResult, getName, run, run, runTest, setName, setUp, tearDown, toStringassertEquals, 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, failSamepublic void testDelegatingMonitorThrowsExpectionWhenConstructionWithNullDelegate()
public void testDelegatingMonitorThrowsExpectionWhenChangingToNullMonitor()
public void testDelegatingMonitorCanChangeMonitorInDelegateThatDoesSupportMonitorStrategy()
public void testDelegatingMonitorChangesDelegateThatDoesNotSupportMonitorStrategy()
public void testDelegatingMonitorReturnsDelegateThatDoesNotSupportMonitorStrategy()
private org.picocontainer.ComponentMonitor mockMonitorWithNoExpectedMethods()
private org.picocontainer.ComponentMonitor mockMonitorThatSupportsStrategy(org.picocontainer.ComponentMonitor currentMonitor)
public void testMonitoringHappensBeforeAndAfterInstantiation()
throws java.lang.NoSuchMethodException
java.lang.NoSuchMethodException