| org.apache.tapestry.ioc.test.IOCTestCase org.apache.tapestry.test.TapestryTestCase
All known Subclasses: org.apache.tapestry.upload.services.UploadedFileItemTest, org.apache.tapestry.internal.hibernate.HibernateSessionSourceImplTest, org.apache.tapestry.upload.services.MultipartServletRequestFilterTest, org.apache.tapestry.spring.TapestrySpringFilterTest, org.apache.tapestry.upload.services.MultipartDecoderImplTest, org.apache.tapestry.upload.components.UploadTest, org.apache.tapestry.internal.test.InternalBaseTestCase,
TapestryTestCase | abstract public class TapestryTestCase extends IOCTestCase (Code) | | Base test case that adds a number of convienience factory and training methods for the public
interfaces of Tapestry.
|
Method Summary | |
final protected MarkupWriter | createMarkupWriter() Creates a new markup writer instance (not a markup writer mock). | final protected ApplicationStateCreator | mockApplicationStateCreator() | final protected ApplicationStatePersistenceStrategy | mockApplicationStatePersistenceStrategy() | final protected ApplicationStatePersistenceStrategySource | mockApplicationStatePersistenceStrategySource() | final protected Asset | mockAsset() | final protected AssetFactory | mockAssetFactory() | final protected AssetSource | mockAssetSource() | final protected BeanModel | mockBeanModel() | final protected BeanModelSource | mockBeanModelSource() | final protected Binding | mockBinding() | final protected BindingFactory | mockBindingFactory() | final protected BindingSource | mockBindingSource() | final protected Block | mockBlock() | final protected ClassTransformation | mockClassTransformation() | final protected ClasspathAssetAliasManager | mockClasspathAssetAliasManager() | final protected Component | mockComponent() | final protected ComponentClassResolver | mockComponentClassResolver() | final protected ComponentEventHandler | mockComponentEventHandler() | final protected ComponentModel | mockComponentModel() | final protected ComponentResources | mockComponentResources() | final protected Context | mockContext() | final protected Environment | mockEnvironment() | final protected Field | mockField() | final protected FieldValidator | mockFieldValidator() | protected FieldValidatorSource | mockFieldValidatorSource() | final protected Field | mockFieldWithLabel(String label) | final protected Heartbeat | mockHeartbeat() | final protected HttpServletRequest | mockHttpServletRequest() | final protected HttpServletResponse | mockHttpServletResponse() | final protected HttpSession | mockHttpSession() | final protected Inject | mockInject() | final protected Link | mockLink() | final protected MarkupWriter | mockMarkupWriter() | final protected MutableComponentModel | mockMutableComponentModel() | final protected ParameterModel | mockParameterModel() | final protected Path | mockPath() | final protected PropertyConduit | mockPropertyConduit() | final protected PropertyModel | mockPropertyEditModel() | final protected Request | mockRequest() | final protected RequestHandler | mockRequestHandler() | final protected ResourceDigestGenerator | mockResourceDigestGenerator() | final protected Response | mockResponse() | final protected Session | mockSession() | final protected Translator | mockTranslator() | final protected ValidationConstraintGenerator | mockValidationConstraintGenerator() | final protected ValidationMessagesSource | mockValidationMessagesSource() | final protected ValidationTracker | mockValidationTracker() | final protected Validator | mockValidator() | final protected void | touch(File f) Writes a change to a file. | final protected void | train_addField(ClassTransformation transformation, int modifiers, String type, String suggestedName, String actualName) | final protected void | train_addInjectedField(ClassTransformation ct, Class type, String suggestedName, Object value, String fieldName) | final protected void | train_addMethod(ClassTransformation transformation, MethodSignature signature, String... body) | final protected void | train_buildConstraints(ValidationConstraintGenerator generator, Class propertyType, AnnotationProvider provider, String... constraints) | final protected void | train_create(ApplicationStateCreator<T> creator, T aso) | final protected void | train_create(BeanModelSource source, Class beanClass, boolean filterReadOnly, ComponentResources containerResources, BeanModel model) | final protected void | train_createAsset(AssetFactory factory, Resource resource, Asset asset) | final protected void | train_createValidator(FieldValidatorSource source, Field field, String validatorType, String constraintValue, String overrideId, Messages overrideMessages, Locale locale, FieldValidator result) | final protected void | train_encodeRedirectURL(Response response, String URI, String encoded) | final protected void | train_encodeURL(Response response, String inputURL, String outputURL) | final protected void | train_exists(ApplicationStatePersistenceStrategy strategy, Class<T> asoClass, boolean exists) | final protected void | train_extendConstructor(ClassTransformation transformation, String... body) | final protected void | train_extendMethod(ClassTransformation transformation, MethodSignature signature, String... body) | final protected void | train_findAsset(AssetSource source, Resource root, String path, Locale locale, Asset asset) | final protected void | train_findFieldsOfType(ClassTransformation transformation, String type, String... fieldNames) | final protected void | train_findFieldsWithAnnotation(ClassTransformation transformation, Class<? extends Annotation> annotationClass, List<String> fieldNames) | final protected void | train_findFieldsWithAnnotation(ClassTransformation transformation, Class<? extends Annotation> annotationClass, String... fieldNames) | final protected void | train_findMethods(ClassTransformation transformation, MethodSignature... signatures) | final protected void | train_findMethodsWithAnnotation(ClassTransformation tf, Class<? extends Annotation> annotationType, List<MethodSignature> sigs) | final protected void | train_findUnclaimedFields(ClassTransformation transformation, String... fieldNames) | final protected void | train_generateChecksum(ResourceDigestGenerator generator, URL url, String digest) | final protected void | train_get(ApplicationStatePersistenceStrategy strategy, Class<T> asoClass, ApplicationStateCreator<T> creator, T aso) | final protected void | train_get(ApplicationStatePersistenceStrategySource source, String strategyName, ApplicationStatePersistenceStrategy strategy) | final protected void | train_get(Binding binding, Object value) | final protected void | train_getAliasesForMode(AliasManager manager, String mode, Map<Class, Object> configuration) | protected void | train_getAttribute(HttpSession session, String attributeName, Object value) | final protected void | train_getAttribute(Session session, String name, Object attribute) | final protected void | train_getAttributeNames(Session session, String prefix, String... names) | final protected void | train_getBaseResource(ComponentModel model, Resource resource) | final protected void | train_getBoundType(ComponentResources resources, Class type) | final protected void | train_getClassName(ClassTransformation transformation, String className) | final protected void | train_getClasspathAsset(AssetSource source, String path, Asset asset) | final protected void | train_getClasspathAsset(AssetSource source, String path, Locale locale, Asset asset) | final protected void | train_getCompleteId(ComponentResourcesCommon resources, String completeId) | final protected void | train_getComponent(ComponentResources resources, Component component) | final protected void | train_getComponentClassName(ComponentModel model, String className) | final protected void | train_getComponentResources(Component component, ComponentResources resources) | final protected void | train_getConduit(PropertyModel model, PropertyConduit conduit) | protected void | train_getConstraintType(Validator<C, T> validator, Class<C> constraintType) | final protected void | train_getContainer(ComponentResources resources, Component container) | final protected void | train_getContainerMessages(ComponentResources resources, Messages containerMessages) | final protected void | train_getContainerResources(ComponentResources resources, ComponentResources containerResources) | final protected void | train_getDateHeader(Request request, String name, long value) | final protected void | train_getFieldAnnotation(ClassTransformation transformation, String fieldName, Class<T> annotationClass, T annotation) | final protected void | train_getFieldPersistenceStrategy(ComponentModel model, String fieldName, String fieldStrategy) | final protected void | train_getFieldType(ClassTransformation transformation, String fieldName, String type) | final protected void | train_getId(ComponentResources resources, String id) | final protected void | train_getLabel(Field field, String label) | final protected void | train_getLocale(ComponentResourcesCommon resources, Locale locale) | final protected void | train_getLocale(Request request, Locale locale) | final public void | train_getLocation(Locatable locatable, Location location) | protected void | train_getMessageKey(Validator validator, String messageKey) | final protected void | train_getMessages(ComponentResources resources, Messages messages) | final protected void | train_getMeta(ComponentModel model, String key, String value) | final protected void | train_getMethodAnnotation(ClassTransformation ct, MethodSignature signature, Class<T> annotationClass, T annotation) | final protected void | train_getMethodIdentifier(ClassTransformation transformation, MethodSignature signature, String id) | final protected void | train_getOutputStream(HttpServletResponse response, ServletOutputStream stream) | final protected void | train_getPage(ComponentResources resources, Component page) | final protected void | train_getPageName(ComponentResourcesCommon resources, String pageName) | final protected void | train_getParameter(Request request, String elementName, String value) | final protected void | train_getParameterModel(ComponentModel model, String parameterName, ParameterModel parameterModel) | final protected void | train_getParameterNames(ComponentModel model, String... names) | final protected void | train_getParentModel(ComponentModel model, ComponentModel parentModel) | final protected void | train_getPath(Request request, String path) | final protected void | train_getPersistentFieldNames(ComponentModel model, String... names) | final protected void | train_getResourcesFieldName(ClassTransformation transformation, String name) | final protected void | train_getRootResource(AssetFactory factory, Resource rootResource) | final protected void | train_getSession(HttpServletRequest request, boolean create, HttpSession session) | protected void | train_getSession(Request request, boolean create, Session session) | final protected void | train_getSupportsInformalParameters(ComponentModel model, boolean supports) | final protected void | train_getValidationMessages(ValidationMessagesSource messagesSource, Locale locale, Messages messages) | final protected void | train_getValueType(Validator validator, Class valueType) | final protected void | train_handleResult(ComponentEventHandler handler, Object result, Component component, String methodDescription, boolean abort) | final protected void | train_inError(ValidationTracker tracker, Field field, boolean inError) | final protected void | train_invokeIfBlank(Validator validator, boolean invokeIfBlank) | final protected void | train_isInvariant(Binding binding, boolean isInvariant) | final protected void | train_isRequired(ParameterModel model, boolean isRequired) | final protected void | train_isRootClass(MutableComponentModel model, boolean isRootClass) | final protected void | train_name(Parameter parameter, String name) | final protected 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) | final protected void | train_newMemberName(ClassTransformation transformation, String suggested, String name) | final protected void | train_newMemberName(ClassTransformation transformation, String prefix, String baseName, String name) | final protected void | train_peek(Environment env, Class<T> type, T value) | final protected void | train_peekRequired(Environment env, Class<T> type, T value) | final protected void | train_provideInjection(InjectionProvider provider, String fieldName, String fieldType, ObjectLocator locator, ClassTransformation transformation, MutableComponentModel model, boolean result) | final protected void | train_renderInformalParameters(ComponentResources resources, MarkupWriter writer, String... informals) | final protected void | train_requiresDigest(ResourceDigestGenerator generator, String path, boolean requiresDigest) | final protected void | train_service(RequestHandler handler, Request request, Response response, boolean result) | final protected void | train_setContentLength(HttpServletResponse response, int length) | final protected void | train_setContentType(HttpServletResponse response, String contentType) | final protected void | train_setDateHeader(HttpServletResponse response, String headerName, long date) | final protected void | train_toClass(ClassTransformation transformation, String type, Class classForType) | final protected void | train_toClientURL(Asset asset, String URL) | final protected void | train_toClientURL(ClasspathAssetAliasManager manager, String resourcePath, String clientURL) | final protected void | train_toRedirectURI(Link link, String URI) | final protected void | train_toResourcePath(ClasspathAssetAliasManager manager, String clientURL, String resourcePath) | final protected void | train_value(Id annotation, String value) | final protected void | train_value(Path annotation, String value) |
createMarkupWriter | final protected MarkupWriter createMarkupWriter()(Code) | | Creates a new markup writer instance (not a markup writer mock). Output can be directed at
the writer, which uses the default (HTML) markup model. The writer's toString() value
represents all the collected markup in the writer.
|
train_getConstraintType | protected void train_getConstraintType(Validator<C, T> validator, Class<C> constraintType)(Code) | | |
train_getDateHeader | final protected void train_getDateHeader(Request request, String name, long value)(Code) | | |
train_getSession | protected void train_getSession(Request request, boolean create, Session session)(Code) | | |
train_getSupportsInformalParameters | final protected void train_getSupportsInformalParameters(ComponentModel model, boolean supports)(Code) | | |
train_getValueType | final protected void train_getValueType(Validator validator, Class valueType)(Code) | | |
train_invokeIfBlank | final protected void train_invokeIfBlank(Validator validator, boolean invokeIfBlank)(Code) | | |
train_isInvariant | final protected void train_isInvariant(Binding binding, boolean isInvariant)(Code) | | |
train_isRequired | final protected void train_isRequired(ParameterModel model, boolean isRequired)(Code) | | |
train_toClientURL | final protected void train_toClientURL(Asset asset, String URL)(Code) | | |
train_toRedirectURI | final protected void train_toRedirectURI(Link link, String URI)(Code) | | |
train_value | final protected void train_value(Id annotation, String value)(Code) | | |
train_value | final protected void train_value(Path annotation, String value)(Code) | | |
Methods inherited from org.apache.tapestry.ioc.test.IOCTestCase | final protected Registry buildRegistry(Class... moduleClasses)(Code)(Java Doc) final protected Method findMethod(Class clazz, String methodName)(Code)(Java Doc) final protected Method findMethod(Object subject, String methodName)(Code)(Java Doc) final protected Method findMethod(String methodName)(Code)(Java Doc) final protected String join(String... lines)(Code)(Java Doc) final protected AnnotationProvider mockAnnotationProvider()(Code)(Java Doc) final protected Configuration<T> mockConfiguration()(Code)(Java Doc) final protected ContributionDef mockContributionDef()(Code)(Java Doc) final protected DecoratorDef mockDecoratorDef()(Code)(Java Doc) final protected Location mockLocation()(Code)(Java Doc) final protected Log mockLog()(Code)(Java Doc) final protected MappedConfiguration<K, V> mockMappedConfiguration()(Code)(Java Doc) final protected MessageFormatter mockMessageFormatter()(Code)(Java Doc) final protected Messages mockMessages()(Code)(Java Doc) final protected ModuleDef mockModuleDef()(Code)(Java Doc) final protected ObjectCreator mockObjectCreator()(Code)(Java Doc) final protected ObjectLocator mockObjectLocator()(Code)(Java Doc) final protected ObjectProvider mockObjectProvider()(Code)(Java Doc) final protected OrderedConfiguration<T> mockOrderedConfiguration()(Code)(Java Doc) final protected Resource mockResource()(Code)(Java Doc) final protected Runnable mockRunnable()(Code)(Java Doc) final protected ServiceBuilderResources mockServiceBuilderResources()(Code)(Java Doc) final protected ServiceDecorator mockServiceDecorator()(Code)(Java Doc) final protected ServiceDef mockServiceDef()(Code)(Java Doc) final protected ServiceResources mockServiceResources()(Code)(Java Doc) final protected SymbolSource mockSymbolSource()(Code)(Java Doc) final protected ThreadLocale mockThreadLocale()(Code)(Java Doc) final protected TypeCoercer mockTypeCoercer()(Code)(Java Doc) final protected void stub_contains(Messages messages, boolean contained)(Code)(Java Doc) protected void train_coerce(TypeCoercer coercer, S input, Class<T> expectedType, T coercedValue)(Code)(Java Doc) final protected void train_contains(Messages messages, String key, boolean result)(Code)(Java Doc) final protected void train_createInterceptor(ServiceDecorator decorator, Object coreObject, Object interceptor)(Code)(Java Doc) final protected void train_createObject(ObjectCreator creator, Object service)(Code)(Java Doc) final protected void train_expandSymbols(SymbolSource source, String input)(Code)(Java Doc) final protected void train_expandSymbols(SymbolSource source, String input, String expanded)(Code)(Java Doc) final protected void train_forFile(Resource resource, String relativePath, Resource file)(Code)(Java Doc) final protected void train_forLocale(Resource base, Locale locale, Resource resource)(Code)(Java Doc) protected void train_format(MessageFormatter formatter, String result, Object... arguments)(Code)(Java Doc) final protected void train_get(Messages messages, String key, String message)(Code)(Java Doc) final protected void train_getAnnotation(AnnotationProvider annotationProvider, Class<T> annotationClass, T annotation)(Code)(Java Doc) final protected void train_getLocale(ThreadLocale threadLocale, Locale locale)(Code)(Java Doc) final protected void train_getLog(LogSource source, String serviceId, Log log)(Code)(Java Doc) final protected void train_getMessageFormatter(Messages messages, String key, MessageFormatter formatter)(Code)(Java Doc) final protected void train_getPath(Resource r, String path)(Code)(Java Doc) final protected void train_getService(ObjectLocator locator, Class<T> serviceInterface, T service)(Code)(Java Doc) final protected void train_getService(ObjectLocator locator, String serviceId, Class<T> serviceInterface, T service)(Code)(Java Doc) final protected void train_getServiceId(ServiceDef def, String serviceId)(Code)(Java Doc) final protected void train_getServiceId(ServiceResources resources, String serviceId)(Code)(Java Doc) final protected void train_getServiceInterface(ServiceDef def, Class serviceInterface)(Code)(Java Doc) final protected void train_getServiceInterface(ServiceResources resources, Class serviceInterface)(Code)(Java Doc) final protected void train_getServiceLog(ServiceResources resources, Log log)(Code)(Java Doc) final protected void train_isDebugEnabled(Log log, boolean debugEnabled)(Code)(Java Doc) final protected void train_matches(DecoratorDef decoratorDef, ServiceDef serviceDef, boolean matches)(Code)(Java Doc) final protected void train_provide(ObjectProvider provider, Class<T> objectType, AnnotationProvider annotationProvider, ObjectLocator locator, T object)(Code)(Java Doc) final protected void train_toURL(Resource resource, URL url)(Code)(Java Doc)
|
|
|