com.agical.rmock.extension.junit
Class AbstractMockStrategyTestCase

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by com.agical.rmock.extension.junit.AbstractStrategyTestCase
              extended by com.agical.rmock.extension.junit.BasicJUnitStrategyTestCase
                  extended by com.agical.rmock.extension.junit.AbstractMockStrategyTestCase
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
RMockTestCase

public abstract class AbstractMockStrategyTestCase
extends BasicJUnitStrategyTestCase


Field Summary
 
Fields inherited from class com.agical.rmock.extension.junit.AbstractStrategyTestCase
is
 
Constructor Summary
AbstractMockStrategyTestCase(java.lang.String testName)
           
AbstractMockStrategyTestCase(java.lang.String testName, Hub hub)
           
 
Method Summary
protected  TestStep createStrategy(java.lang.String test)
          Implement this method to return a strategy to run for the given test.
 TestStep createVerifyStep(java.lang.String name)
           
protected  TestStep exceptionVerifierDecorator(TestStep testStep)
           
 ProxyFactory getProxyFactory()
           
 void setProxyFactory(ProxyFactory proxyFactory)
           
protected  void verify()
           
 
Methods inherited from class com.agical.rmock.extension.junit.BasicJUnitStrategyTestCase
createSetupStep, createTearDownStep, createTestStep, setUp, tearDown
 
Methods inherited from class com.agical.rmock.extension.junit.AbstractStrategyTestCase
assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, getHub, getStrategyRunner, getVerifiable, runBare, setAsserter, setStrategyRunner, setTestCaseListener, setVerifiable
 
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, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractMockStrategyTestCase

public AbstractMockStrategyTestCase(java.lang.String testName)

AbstractMockStrategyTestCase

public AbstractMockStrategyTestCase(java.lang.String testName,
                                    Hub hub)
Method Detail

verify

protected void verify()
               throws java.lang.Exception
Throws:
java.lang.Exception

createVerifyStep

public TestStep createVerifyStep(java.lang.String name)

createStrategy

protected TestStep createStrategy(java.lang.String test)
Description copied from class: AbstractStrategyTestCase
Implement this method to return a strategy to run for the given test.

Overrides:
createStrategy in class BasicJUnitStrategyTestCase
Parameters:
test - The test to get the strategy for
Returns:
The strategy for the test.

exceptionVerifierDecorator

protected TestStep exceptionVerifierDecorator(TestStep testStep)

setProxyFactory

public void setProxyFactory(ProxyFactory proxyFactory)

getProxyFactory

public ProxyFactory getProxyFactory()


Copyright © 2005-2010 Agical AB. All Rights Reserved.