org.trails.test
Class MockableTransactionalTestCase
java.lang.Object
junit.framework.Assert
junit.framework.TestCase
org.springframework.test.ConditionalTestCase
org.springframework.test.AbstractSpringContextTests
org.springframework.test.AbstractSingleSpringContextTests
org.springframework.test.AbstractDependencyInjectionSpringContextTests
org.springframework.test.AbstractTransactionalSpringContextTests
org.trails.test.MockableTransactionalTestCase
- All Implemented Interfaces:
- junit.framework.Test
public abstract class MockableTransactionalTestCase
- extends org.springframework.test.AbstractTransactionalSpringContextTests
| Fields inherited from class org.springframework.test.AbstractTransactionalSpringContextTests |
transactionDefinition, transactionManager, transactionStatus |
| Fields inherited from class org.springframework.test.AbstractDependencyInjectionSpringContextTests |
AUTOWIRE_BY_NAME, AUTOWIRE_BY_TYPE, AUTOWIRE_NO |
| Fields inherited from class org.springframework.test.AbstractSingleSpringContextTests |
applicationContext |
| Fields inherited from class org.springframework.test.ConditionalTestCase |
logger |
|
Method Summary |
org.jmock.core.InvocationMatcher |
atLeastOnce()
|
protected
|
buildTrailsPage(java.lang.Class<T> pageClass)
Operations delegation to componentTestDelegate |
org.jmock.core.constraint.IsEqual |
eq(boolean operand)
|
org.jmock.core.constraint.IsEqual |
eq(byte operand)
|
org.jmock.core.constraint.IsEqual |
eq(char operand)
|
org.jmock.core.constraint.IsEqual |
eq(double operand)
|
org.jmock.core.constraint.IsEqual |
eq(float operand)
|
org.jmock.core.constraint.IsEqual |
eq(int operand)
|
org.jmock.core.constraint.IsEqual |
eq(long operand)
|
org.jmock.core.constraint.IsEqual |
eq(java.lang.Object operand)
|
org.jmock.core.constraint.IsEqual |
eq(short operand)
|
protected ComponentTest |
getComponentTest()
Little hook to override the default ComponentTest delegate. |
protected java.lang.String[] |
getConfigLocations()
|
org.jmock.core.constraint.IsInstanceOf |
isA(java.lang.Class operandClass)
|
org.jmock.Mock |
mock(java.lang.Class mockedType)
|
org.jmock.core.InvocationMatcher |
once()
|
void |
onSetUpBeforeTransaction()
|
protected void |
onTearDownAfterTransaction()
|
org.jmock.core.Stub |
returnValue(boolean result)
|
org.jmock.core.Stub |
returnValue(byte result)
|
org.jmock.core.Stub |
returnValue(char result)
|
org.jmock.core.Stub |
returnValue(double result)
|
org.jmock.core.Stub |
returnValue(float result)
|
org.jmock.core.Stub |
returnValue(int result)
|
org.jmock.core.Stub |
returnValue(long result)
|
org.jmock.core.Stub |
returnValue(java.lang.Object o)
|
org.jmock.core.Stub |
returnValue(short result)
|
void |
verify()
|
| Methods inherited from class org.springframework.test.AbstractTransactionalSpringContextTests |
endTransaction, onSetUp, onSetUpInTransaction, onTearDown, onTearDownInTransaction, preventTransaction, setComplete, setDefaultRollback, setTransactionDefinition, setTransactionManager, startNewTransaction |
| Methods inherited from class org.springframework.test.AbstractDependencyInjectionSpringContextTests |
getAutowireMode, injectDependencies, isDependencyCheck, isPopulateProtectedVariables, prepareTestInstance, setAutowireMode, setDependencyCheck, setPopulateProtectedVariables |
| Methods inherited from class org.springframework.test.AbstractSingleSpringContextTests |
contextKey, createApplicationContext, customizeBeanFactory, getApplicationContext, getConfigPath, getConfigPaths, getLoadCount, loadContext, loadContextLocations, setDirty, setUp, tearDown |
| Methods inherited from class org.springframework.test.AbstractSpringContextTests |
addContext, contextKeyString, getContext, hasCachedContext, setDirty |
| Methods inherited from class org.springframework.test.ConditionalTestCase |
getDisabledTestCount, isDisabledInThisEnvironment, recordDisabled, runBare |
| Methods inherited from class junit.framework.TestCase |
countTestCases, createResult, getName, run, run, runTest, setName, 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 |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
persistenceService
protected PersistenceService persistenceService
cycleMock
protected org.jmock.Mock cycleMock
infrastructureMock
protected org.jmock.Mock infrastructureMock
webRequestMock
protected org.jmock.Mock webRequestMock
webResponseMock
protected org.jmock.Mock webResponseMock
MockableTransactionalTestCase
public MockableTransactionalTestCase()
getConfigLocations
protected java.lang.String[] getConfigLocations()
- Overrides:
getConfigLocations in class org.springframework.test.AbstractSingleSpringContextTests
onSetUpBeforeTransaction
public void onSetUpBeforeTransaction()
throws java.lang.Exception
- Overrides:
onSetUpBeforeTransaction in class org.springframework.test.AbstractTransactionalSpringContextTests
- Throws:
java.lang.Exception
onTearDownAfterTransaction
protected void onTearDownAfterTransaction()
- Overrides:
onTearDownAfterTransaction in class org.springframework.test.AbstractTransactionalSpringContextTests
buildTrailsPage
protected <T> T buildTrailsPage(java.lang.Class<T> pageClass)
- Operations delegation to componentTestDelegate
mock
public org.jmock.Mock mock(java.lang.Class mockedType)
once
public org.jmock.core.InvocationMatcher once()
atLeastOnce
public org.jmock.core.InvocationMatcher atLeastOnce()
isA
public org.jmock.core.constraint.IsInstanceOf isA(java.lang.Class operandClass)
verify
public void verify()
returnValue
public org.jmock.core.Stub returnValue(java.lang.Object o)
returnValue
public org.jmock.core.Stub returnValue(boolean result)
returnValue
public org.jmock.core.Stub returnValue(byte result)
returnValue
public org.jmock.core.Stub returnValue(char result)
returnValue
public org.jmock.core.Stub returnValue(short result)
returnValue
public org.jmock.core.Stub returnValue(int result)
returnValue
public org.jmock.core.Stub returnValue(long result)
returnValue
public org.jmock.core.Stub returnValue(float result)
returnValue
public org.jmock.core.Stub returnValue(double result)
eq
public org.jmock.core.constraint.IsEqual eq(java.lang.Object operand)
eq
public org.jmock.core.constraint.IsEqual eq(boolean operand)
eq
public org.jmock.core.constraint.IsEqual eq(byte operand)
eq
public org.jmock.core.constraint.IsEqual eq(char operand)
eq
public org.jmock.core.constraint.IsEqual eq(short operand)
eq
public org.jmock.core.constraint.IsEqual eq(int operand)
eq
public org.jmock.core.constraint.IsEqual eq(long operand)
eq
public org.jmock.core.constraint.IsEqual eq(float operand)
eq
public org.jmock.core.constraint.IsEqual eq(double operand)
getComponentTest
protected ComponentTest getComponentTest()
- Little hook to override the default ComponentTest delegate.
- Returns:
Copyright © 2004-2008. All Rights Reserved.