public abstract class TapestryTestCase extends IOCTestCase
Constructor and Description |
---|
TapestryTestCase() |
buildRegistry, findMethod, findMethod, findMethod, join, mockAdvisorDef, mockAdvisorDef2, mockAnnotationProvider, mockClassPropertyAdapter, mockConfiguration, mockContributionDef, mockDecoratorDef, mockDecoratorDef2, mockLocation, mockLogger, mockMappedConfiguration, mockMasterObjectProvider, mockMessageFormatter, mockMessages, mockModuleDef, mockModuleDef2, mockObjectCreator, mockObjectLocator, mockObjectProvider, mockOrderedConfiguration, mockPerthreadManager, mockPropertyAccess, mockPropertyAdapter, mockResource, mockRunnable, mockServiceBuilderResources, mockServiceBuilderResources, mockServiceDecorator, mockServiceDef, mockServiceResources, mockServiceResources, mockSymbolSource, mockThreadLocale, mockTypeCoercer, newIntermediateType, stub_contains, stub_isDebugEnabled, touch, train_autobuild, train_coerce, train_contains, train_createInterceptor, train_createObject, train_expandSymbols, train_expandSymbols, train_forFile, train_forLocale, train_format, train_get, train_getAnnotation, train_getLocale, train_getLogger, train_getLogger, train_getMessageFormatter, train_getPath, train_getService, train_getService, train_getServiceId, train_getServiceId, train_getServiceInterface, train_getServiceInterface, train_getTracker, train_isDebugEnabled, train_isTraceEnabled, train_matches, train_matches, train_provide, train_toURL, train_value, train_valueForSymbol
discardMockControl, expect, getMocksControl, newCapture, newMock, replay, setAnswer, setThrowable, verify
assertArraysEqual, assertListsEquals, assertListsEquals, assertMessageContains, create, get, set, showLists, unreachable
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEqualsNoOrder, assertEqualsNoOrder, assertFalse, assertFalse, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, fail
public TapestryTestCase()
protected final MarkupWriter createMarkupWriter()
protected final ApplicationStateCreator mockApplicationStateCreator()
protected final ApplicationStatePersistenceStrategy mockApplicationStatePersistenceStrategy()
protected final ApplicationStatePersistenceStrategySource mockApplicationStatePersistenceStrategySource()
protected final AssetFactory mockAssetFactory()
protected final AssetSource mockAssetSource()
protected final Binding mockBinding()
protected final BindingFactory mockBindingFactory()
protected final BindingSource mockBindingSource()
protected final ClasspathAssetAliasManager mockClasspathAssetAliasManager()
protected final Component mockComponent()
protected final ComponentClassResolver mockComponentClassResolver()
protected final ComponentEventCallback mockComponentEventHandler()
protected final ComponentModel mockComponentModel()
protected final ComponentResources mockComponentResources()
protected final Context mockContext()
protected final Environment mockEnvironment()
protected final Html5Support mockHtml5Support()
protected final FieldValidator mockFieldValidator()
protected FieldValidatorSource mockFieldValidatorSource()
protected final Field mockFieldWithLabel(String label)
protected final Heartbeat mockHeartbeat()
protected final HttpServletRequest mockHttpServletRequest()
protected final HttpServletResponse mockHttpServletResponse()
protected final HttpSession mockHttpSession()
protected final Inject mockInject()
protected final MarkupWriter mockMarkupWriter()
protected final MutableComponentModel mockMutableComponentModel()
protected final ParameterModel mockParameterModel()
protected final PropertyConduit mockPropertyConduit()
protected final PropertyModel mockPropertyModel()
protected final Request mockRequest()
protected final RequestHandler mockRequestHandler()
protected final Response mockResponse()
protected final Session mockSession()
protected final Translator mockTranslator()
protected final ValidationConstraintGenerator mockValidationConstraintGenerator()
protected final ValidationTracker mockValidationTracker()
protected final Validator mockValidator()
protected final void train_buildConstraints(ValidationConstraintGenerator generator, Class propertyType, AnnotationProvider provider, String... constraints)
protected final <T> void train_create(ApplicationStateCreator<T> creator, T aso)
protected final void train_createAsset(AssetFactory factory, Resource resource, Asset asset)
protected final void train_createValidator(FieldValidatorSource source, Field field, String validatorType, String constraintValue, String overrideId, Messages overrideMessages, Locale locale, FieldValidator result)
protected final void train_encodeRedirectURL(Response response, String URI, String encoded)
protected final void train_encodeURL(Response response, String inputURL, String outputURL)
protected final <T> void train_exists(ApplicationStatePersistenceStrategy strategy, Class<T> asoClass, boolean exists)
protected final void train_getAsset(AssetSource source, Resource root, String path, Locale locale, Asset asset)
protected final void train_generateChecksum(ResourceDigestGenerator generator, URL url, String digest)
protected final <T> void train_get(ApplicationStatePersistenceStrategy strategy, Class<T> asoClass, ApplicationStateCreator<T> creator, T aso)
protected final void train_get(ApplicationStatePersistenceStrategySource source, String strategyName, ApplicationStatePersistenceStrategy strategy)
protected void train_getAttribute(HttpSession session, String attributeName, Object value)
protected final void train_getAttribute(Session session, String name, Object attribute)
protected final void train_getAttributeNames(Session session, String prefix, String... names)
protected final void train_getBaseResource(ComponentModel model, Resource resource)
protected final void train_getClasspathAsset(AssetSource source, String path, Asset asset)
protected final void train_getClasspathAsset(AssetSource source, String path, Locale locale, Asset asset)
protected final void train_getCompleteId(ComponentResourcesCommon resources, String completeId)
protected final void train_getComponent(ComponentResources resources, Component component)
protected final void train_getComponentClassName(ComponentModel model, String className)
protected final void train_getComponentResources(Component component, ComponentResources resources)
protected final void train_getConduit(PropertyModel model, PropertyConduit conduit)
protected <C,T> void train_getConstraintType(Validator<C,T> validator, Class<C> constraintType)
protected final void train_getContainer(ComponentResources resources, Component container)
protected final void train_getContainerMessages(ComponentResources resources, Messages containerMessages)
protected final void train_getContainerResources(ComponentResources resources, ComponentResources containerResources)
protected final void train_getDateHeader(Request request, String name, long value)
protected final void train_getFieldPersistenceStrategy(ComponentModel model, String fieldName, String fieldStrategy)
protected final void train_getId(ComponentResources resources, String id)
protected final void train_getLabel(Field field, String label)
protected final void train_getLocale(ComponentResourcesCommon resources, Locale locale)
protected final void train_getLocale(Request request, Locale locale)
protected void train_getMessageKey(Validator validator, String messageKey)
protected final void train_getMessages(ComponentResources resources, Messages messages)
protected final void train_getMeta(ComponentModel model, String key, String value)
protected final void train_getOutputStream(HttpServletResponse response, ServletOutputStream stream)
protected final void train_getPage(ComponentResources resources, Component page)
protected final void train_getParameterModel(ComponentModel model, String parameterName, ParameterModel parameterModel)
protected final void train_getParameterNames(ComponentModel model, String... names)
protected final void train_getParentModel(ComponentModel model, ComponentModel parentModel)
protected final void train_getPath(Request request, String path)
protected final void train_getPersistentFieldNames(ComponentModel model, String... names)
protected final void train_getRootResource(AssetFactory factory, Resource rootResource)
protected final void train_getSession(HttpServletRequest request, boolean create, HttpSession session)
protected void train_getSession(Request request, boolean create, Session session)
protected final void train_getSupportsInformalParameters(ComponentModel model, boolean supports)
protected final void train_getValueType(Validator validator, Class valueType)
protected final void train_handleResult(ComponentEventCallback handler, Object result, boolean abort)
protected final void train_inError(ValidationTracker tracker, Field field, boolean inError)
protected final void train_isRequired(Validator validator, boolean isRequired)
protected final void train_isInvariant(Binding binding, boolean isInvariant)
protected final void train_isRequired(ParameterModel model, boolean isRequired)
protected final void train_isRootClass(MutableComponentModel model, boolean isRootClass)
protected final void train_name(Parameter parameter, String name)
protected final void train_newBinding(BindingFactory factory, String description, ComponentResources container, ComponentResources component, String expression, Location l, Binding binding)
protected void train_newBinding(BindingSource bindingSource, String description, ComponentResources componentResources, String defaultBindingPrefix, String expression, Binding binding)
protected final <T> void train_peek(Environment env, Class<T> type, T value)
protected final <T> void train_peekRequired(Environment env, Class<T> type, T value)
protected final void train_renderInformalParameters(ComponentResources resources, MarkupWriter writer, Object... informals)
protected final void train_service(RequestHandler handler, Request request, Response response, boolean result) throws IOException
IOException
protected final void train_setContentLength(HttpServletResponse response, int length)
protected final void train_setContentType(HttpServletResponse response, String contentType)
protected final void train_setDateHeader(HttpServletResponse response, String headerName, long date)
protected final void train_toClientURL(Asset asset, String URL)
protected final void train_toRedirectURI(Link link, String URI)
protected final void train_value(Id annotation, String value)
protected final void train_value(Path annotation, String value)
protected final void train_getBoundType(ComponentResources resources, String parameterName, Class type)
protected final BeanModel mockBeanModel()
protected final BeanModelSource mockBeanModelSource()
public final void train_getLocation(Locatable locatable, Location location)
public final void train_getResource(Location location, Resource resource)
public final void train_getLine(Location location, int line)
protected final void train_getParameter(Request request, String elementName, String value)
protected final void train_getPageName(ComponentResourcesCommon resources, String pageName)
protected final FormSupport mockFormSupport()
protected final Messages messagesFor(Class componentClass) throws IOException
componentClass
- component class whose messages are needed *IOException
protected final FieldValidationSupport mockFieldValidationSupport()
protected final void train_getInheritInformalParameters(EmbeddedComponentModel model, boolean inherits)
protected final ApplicationStateManager mockApplicationStateManager()
protected final <T> void train_get(ApplicationStateManager manager, Class<T> asoClass, T aso)
protected final void train_getInput(ValidationTracker tracker, Field field, String input)
protected final void train_isXHR(Request request, boolean isXHR)
protected void train_getPathInfo(HttpServletRequest request, String pathInfo)
protected final void train_service(HttpServletRequestHandler handler, HttpServletRequest request, HttpServletResponse response, boolean result) throws IOException
IOException
protected final void train_getServletPath(HttpServletRequest request, String path)
protected final HttpServletRequestHandler mockHttpServletRequestHandler()
protected final NullFieldStrategy mockNullFieldStrategy()
protected final ValueEncoderSource mockValueEncoderSource()
protected final ValueEncoder mockValueEncoder()
protected final void train_toClient(ValueEncoder valueEncoder, Object value, String encoded)
protected final void train_getValueEncoder(ValueEncoderSource source, Class type, ValueEncoder valueEncoder)
protected final void train_toValue(ValueEncoder valueEncoder, String clientValue, Object value)
protected <T> void train_findMeta(MetaDataLocator locator, String key, ComponentResources resources, Class<T> expectedType, T value)
protected MetaDataLocator mockMetaDataLocator()
protected final void train_isSecure(Request request, boolean isSecure)
protected final void train_getBaseURL(BaseURLSource baseURLSource, boolean secure, String baseURL)
protected final BaseURLSource mockBaseURLSource()
protected final void train_getAttribute(Request request, String attibuteName, Object value)
protected final void train_getBlockParameter(ComponentResources resources, String name, Block block)
protected final PropertyOverrides mockPropertyOverrides()
protected void train_getOverrideBlock(PropertyOverrides overrides, String name, Block block)
protected final void train_getOverrideMessages(PropertyOverrides overrides, Messages messages)
protected final void train_isDisabled(Field field, boolean disabled)
protected final ValidationDecorator mockValidationDecorator()
protected final void train_isRequired(Field field, boolean required)
protected final void train_getClientId(ClientElement element, String clientId)
protected final FieldTranslator mockFieldTranslator()
protected final Translator mockTranslator(String name, Class type)
protected final void train_getName(Translator translator, String name)
protected final void train_getType(Translator translator, Class type)
protected final void train_createDefaultTranslator(FieldTranslatorSource source, ComponentResources resources, String parameterName, FieldTranslator translator)
protected final TranslatorSource mockTranslatorSource()
protected final void train_get(TranslatorSource translatorSource, String name, Translator translator)
protected final void train_getMessageKey(Translator translator, String messageKey)
protected final void train_findByType(TranslatorSource ts, Class propertyType, Translator translator)
protected final void train_toURI(Link link, String URI)
protected final void train_createEditModel(BeanModelSource source, Class beanClass, Messages messages, BeanModel model)
protected final ComponentEventResultProcessor mockComponentEventResultProcessor()
protected final void train_getFormComponentId(FormSupport formSupport, String componentId)
protected final void train_getFormValidationId(FormSupport formSupport, String validationId)
protected final void train_isAllowNull(ParameterModel model, boolean allowNull)
protected final void train_isInvalidated(Session session, boolean invalidated)
protected final ComponentEventRequestHandler mockComponentEventRequestHandler()
protected final ComponentRequestHandler mockComponentRequestHandler()
protected final Asset2 mockAsset2()
protected final RequestGlobals mockRequestGlobals()
protected final PageRenderLinkSource mockPageRenderLinkSource()
protected final JavaScriptSupport mockJavaScriptSupport()
${project.version} - Copyright © 2003-2015 The Apache Software Foundation.