test.jmock.core
Class AbstractDynamicMockTest
java.lang.Object
junit.framework.Assert
junit.framework.TestCase
test.jmock.core.AbstractDynamicMockTest
- All Implemented Interfaces:
- Test
- Direct Known Subclasses:
- CGLIBCoreMockTest, CoreMockTest
- public abstract class AbstractDynamicMockTest
- extends TestCase
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 |
AbstractDynamicMockTest
public AbstractDynamicMockTest()
setUp
public void setUp()
createDynamicMock
protected abstract DynamicMock createDynamicMock(String name,
InvocationDispatcher dispatcher)
mockedType
protected abstract Class mockedType()
proxy
protected DummyInterface proxy()
testReportsMockedType
public void testReportsMockedType()
testMockAnnotatesAssertionFailedError
public void testMockAnnotatesAssertionFailedError()
throws Throwable
- Throws:
Throwable
testProxyReturnsConfiguredResult
public void testProxyReturnsConfiguredResult()
throws Throwable
- Throws:
Throwable
testExceptionsPropagatedThroughProxy
public void testExceptionsPropagatedThroughProxy()
throws Throwable
- Throws:
Throwable
testMockVerifies
public void testMockVerifies()
throws Exception
- Throws:
Exception
testTestsEqualityForProxy
public void testTestsEqualityForProxy()
throws Exception
- Throws:
Exception
testCanOverrideEqualsForProxyBySettingAStub
public void testCanOverrideEqualsForProxyBySettingAStub()
throws Exception
- Throws:
Exception
testCalculatesHashCodeForProxy
public void testCalculatesHashCodeForProxy()
throws Exception
- Throws:
Exception
testCanOverrideHashCodeForProxyBySettingAStub
public void testCanOverrideHashCodeForProxyBySettingAStub()
throws Exception
- Throws:
Exception
testGeneratesMockNameFromInterfaceNameIfNoNameSpecified
public void testGeneratesMockNameFromInterfaceNameIfNoNameSpecified()
throws Exception
- Throws:
Exception
testReturnsNameFromToString
public void testReturnsNameFromToString()
testAddsInvokablesToDispatcher
public void testAddsInvokablesToDispatcher()
testExposesDefaultStubOfDispatcher
public void testExposesDefaultStubOfDispatcher()
testResetsDispatcher
public void testResetsDispatcher()
testVerifyFailuresIncludeMockName
public void testVerifyFailuresIncludeMockName()