org.codehaus.waffle.mock
Class AbstractRegistrarMockery
java.lang.Object
org.jmock.Mockery
org.codehaus.waffle.mock.AbstractRegistrarMockery
- Direct Known Subclasses:
- PicoRegistrarMockery
public abstract class AbstractRegistrarMockery
- extends org.jmock.Mockery
Abstract Mockery for asserting Registrars are defined correctly.
Concrete subclasses need to define method to create the ContextContainer
and the Registrar.
- Author:
- Michael Ward, Mauro Talevi
Methods inherited from class org.jmock.Mockery |
addExpectation, assertIsSatisfied, checking, mock, mock, sequence, setDefaultResultForType, setExpectationErrorTranslator, setImposteriser, setNamingScheme, states |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractRegistrarMockery
public AbstractRegistrarMockery()
mockServletContext
public javax.servlet.ServletContext mockServletContext()
mockHttpSession
public javax.servlet.http.HttpSession mockHttpSession()
mockHttpServletRequest
public javax.servlet.http.HttpServletRequest mockHttpServletRequest()
mockHttpServletResponse
public javax.servlet.http.HttpServletResponse mockHttpServletResponse()
mockMessageResources
public MessageResources mockMessageResources()
assertConfiguration
public void assertConfiguration(java.lang.Class<?> registrarClass)
assertApplicationContext
public void assertApplicationContext(java.lang.Class<?> registrarClass)
assertSessionContext
public void assertSessionContext(java.lang.Class<?> registrarClass)
assertRequestContext
public void assertRequestContext(java.lang.Class<?> customRegistrarClass)
createContextContainer
protected abstract ContextContainer createContextContainer()
createRegistrar
protected abstract Registrar createRegistrar(ContextContainer container)
getRegistrarMonitor
protected RegistrarMonitor getRegistrarMonitor(ContextContainer container)
Copyright © 2008. All Rights Reserved.