| org.apache.tapestry.test.TapestryTestCase org.apache.tapestry.internal.test.InternalBaseTestCase
InternalBaseTestCase | public class InternalBaseTestCase extends TapestryTestCase implements Registry(Code) | | Contains additional factory and training methods related to internal interfaces.
|
Method Summary | |
final public T | autobuild(Class<T> clazz) | final public void | cleanupThread() | public void | eagerLoadServices() | final public T | getObject(Class<T> objectType, AnnotationProvider annotationProvider) | final public T | getService(Class<T> serviceInterface) | final public T | getService(String serviceId, Class<T> serviceInterface) | final protected ComponentInstantiatorSource | mockComponentInstantiatorSource() | final protected ComponentInvocationMap | mockComponentInvocationMap() | final protected ComponentPageElement | mockComponentPageElement() | final protected ComponentTemplate | mockComponentTemplate() | final protected ComponentTemplateSource | mockComponentTemplateSource() | final protected DocumentScriptBuilder | mockDocumentScriptBuilder() | final protected EmbeddedComponentModel | mockEmbeddedComponentModel() | final protected Instantiator | mockInstantiator(Component component) | final protected InternalComponentResources | mockInternalComponentResources() | final protected InvalidationListener | mockInvalidationListener() | final protected LinkFactory | mockLinkFactory() | final protected LinkFactoryListener | mockLinkFactoryListener() | final protected Page | mockPage() | final protected PageElement | mockPageElement() | final protected PageElementFactory | mockPageElementFactory() | final protected PageLoader | mockPageLoader() | final protected PagePool | mockPagePool() | final protected PageResponseRenderer | mockPageResponseRenderer() | final protected PageTemplateLocator | mockPageTemplateLocator() | protected RenderQueue | mockRenderQueue() | final protected RequestPageCache | mockRequestPageCache() | final protected ResourceCache | mockResourceCache() | final protected ResourceStreamer | mockResourceStreamer() | final protected TemplateParser | mockTemplateParser() | final protected String | readFile(String file, boolean trim) Reads the content of a file into a string. | final public void | setup_registry() | final public void | shutdown() | final public void | shutdown_registry() | final protected void | stub_isPageName(ComponentClassResolver resolver, boolean result) | final protected void | train_canonicalizePageName(ComponentClassResolver resolver, String pageName, String canonicalized) | final protected void | train_createPageLink(LinkFactory factory, Page page, Link link) | final protected void | train_detached(Page page, boolean dirty) | final protected void | train_findPageTemplateResource(PageTemplateLocator locator, ComponentModel model, Locale locale, Resource resource) | final protected void | train_get(RequestPageCache cache, String pageName, Page page) | final protected void | train_getComponent(ComponentPageElement element, Component component) | final protected void | train_getComponentClassName(EmbeddedComponentModel model, String className) | final protected void | train_getComponentElementByNestedId(Page page, String nestedId, ComponentPageElement element) | final protected void | train_getComponentIds(ComponentTemplate template, String... ids) | final protected void | train_getComponentModel(ComponentResources resources, ComponentModel model) | final protected void | train_getComponentResources(ComponentPageElement element, InternalComponentResources resources) | final protected void | train_getComponentType(EmbeddedComponentModel emodel, String componentType) | final protected void | train_getContainingPage(ComponentPageElement element, Page page) | final protected void | train_getContextPath(Request request, String contextPath) | final protected void | train_getEmbeddedComponentModel(ComponentModel model, String embeddedId, EmbeddedComponentModel emodel) | final protected void | train_getEmbeddedIds(ComponentModel model, String... ids) | final protected void | train_getId(ComponentResourcesCommon resources, String id) | final protected void | train_getLocale(Page page, Locale locale) | final protected void | train_getLog(ComponentModel model, Log log) | final protected void | train_getLogicalName(Page page, String logicalName) | final protected void | train_getMixinClassNames(EmbeddedComponentModel model, String... names) | final protected void | train_getModel(Instantiator ins, ComponentModel model) | final protected void | train_getNestedId(ComponentResourcesCommon resources, String nestedId) | final protected void | train_getParameterNames(EmbeddedComponentModel model, String... names) | final protected void | train_getRootComponent(Page page, Component component) | final protected void | train_getRootElement(Page page, ComponentPageElement element) | final protected void | train_getService(InternalRegistry registry, String serviceId, Class<T> serviceInterface, T service) | protected void | train_getTemplate(ComponentTemplateSource templateSource, ComponentModel model, Locale locale, ComponentTemplate template) | final protected void | train_getTimeModified(ResourceCache cache, Resource resource, long timeModified) | final protected void | train_getTokens(ComponentTemplate template, TemplateToken... tokens) | final protected void | train_isLoaded(InternalComponentResources resources, boolean isLoaded) | final protected void | train_isMissing(ComponentTemplate template, boolean isMissing) | final protected void | train_isPageName(ComponentClassResolver resolver, String pageName, boolean result) | final protected void | train_loadPage(PageLoader loader, String pageName, Locale locale, Page page) | final protected void | train_newComponentElement(PageElementFactory elementFactory, ComponentPageElement container, String embeddedId, String embeddedType, String componentClassName, String elementName, Location location, ComponentPageElement embedded) | final protected void | train_newRenderBodyElement(PageElementFactory elementFactory, ComponentPageElement component, PageElement body) | final protected void | train_newRootComponentElement(PageElementFactory elementFactory, String className, ComponentPageElement rootElement) | final protected void | train_parseTemplate(TemplateParser parser, Resource resource, ComponentTemplate template) | final protected void | train_requiresDigest(ResourceCache cache, Resource resource, boolean requiresChecksum) | final protected void | train_resolvePageClassNameToPageName(ComponentClassResolver resolver, String pageClassName, String pageName) | final protected void | train_resolvePageNameToClassName(ComponentClassResolver resolver, String pageName, String pageClassName) | final protected Messages | validationMessages() Returns the default validator messages. |
autobuild | final public T autobuild(Class<T> clazz)(Code) | | |
cleanupThread | final public void cleanupThread()(Code) | | |
eagerLoadServices | public void eagerLoadServices()(Code) | | |
getService | final public T getService(Class<T> serviceInterface)(Code) | | |
getService | final public T getService(String serviceId, Class<T> serviceInterface)(Code) | | |
readFile | final protected String readFile(String file, boolean trim) throws Exception(Code) | | Reads the content of a file into a string. Each line is trimmed of line separators and
leading/trailing whitespace.
Parameters: trim - trim each line of whitespace |
setup_registry | final public void setup_registry()(Code) | | |
shutdown | final public void shutdown()(Code) | | |
shutdown_registry | final public void shutdown_registry()(Code) | | |
train_detached | final protected void train_detached(Page page, boolean dirty)(Code) | | |
train_getContextPath | final protected void train_getContextPath(Request request, String contextPath)(Code) | | |
train_getLocale | final protected void train_getLocale(Page page, Locale locale)(Code) | | |
train_getLogicalName | final protected void train_getLogicalName(Page page, String logicalName)(Code) | | |
train_getRootComponent | final protected void train_getRootComponent(Page page, Component component)(Code) | | |
validationMessages | final protected Messages validationMessages()(Code) | | Returns the default validator messages.
|
Methods inherited from org.apache.tapestry.test.TapestryTestCase | final protected MarkupWriter createMarkupWriter()(Code)(Java Doc) final protected ApplicationStateCreator mockApplicationStateCreator()(Code)(Java Doc) final protected ApplicationStatePersistenceStrategy mockApplicationStatePersistenceStrategy()(Code)(Java Doc) final protected ApplicationStatePersistenceStrategySource mockApplicationStatePersistenceStrategySource()(Code)(Java Doc) final protected Asset mockAsset()(Code)(Java Doc) final protected AssetFactory mockAssetFactory()(Code)(Java Doc) final protected AssetSource mockAssetSource()(Code)(Java Doc) final protected BeanModel mockBeanModel()(Code)(Java Doc) final protected BeanModelSource mockBeanModelSource()(Code)(Java Doc) final protected Binding mockBinding()(Code)(Java Doc) final protected BindingFactory mockBindingFactory()(Code)(Java Doc) final protected BindingSource mockBindingSource()(Code)(Java Doc) final protected Block mockBlock()(Code)(Java Doc) final protected ClassTransformation mockClassTransformation()(Code)(Java Doc) final protected ClasspathAssetAliasManager mockClasspathAssetAliasManager()(Code)(Java Doc) final protected Component mockComponent()(Code)(Java Doc) final protected ComponentClassResolver mockComponentClassResolver()(Code)(Java Doc) final protected ComponentEventHandler mockComponentEventHandler()(Code)(Java Doc) final protected ComponentModel mockComponentModel()(Code)(Java Doc) final protected ComponentResources mockComponentResources()(Code)(Java Doc) final protected Context mockContext()(Code)(Java Doc) final protected Environment mockEnvironment()(Code)(Java Doc) final protected Field mockField()(Code)(Java Doc) final protected FieldValidator mockFieldValidator()(Code)(Java Doc) protected FieldValidatorSource mockFieldValidatorSource()(Code)(Java Doc) final protected Field mockFieldWithLabel(String label)(Code)(Java Doc) final protected Heartbeat mockHeartbeat()(Code)(Java Doc) final protected HttpServletRequest mockHttpServletRequest()(Code)(Java Doc) final protected HttpServletResponse mockHttpServletResponse()(Code)(Java Doc) final protected HttpSession mockHttpSession()(Code)(Java Doc) final protected Inject mockInject()(Code)(Java Doc) final protected Link mockLink()(Code)(Java Doc) final protected MarkupWriter mockMarkupWriter()(Code)(Java Doc) final protected MutableComponentModel mockMutableComponentModel()(Code)(Java Doc) final protected ParameterModel mockParameterModel()(Code)(Java Doc) final protected Path mockPath()(Code)(Java Doc) final protected PropertyConduit mockPropertyConduit()(Code)(Java Doc) final protected PropertyModel mockPropertyEditModel()(Code)(Java Doc) final protected Request mockRequest()(Code)(Java Doc) final protected RequestHandler mockRequestHandler()(Code)(Java Doc) final protected ResourceDigestGenerator mockResourceDigestGenerator()(Code)(Java Doc) final protected Response mockResponse()(Code)(Java Doc) final protected Session mockSession()(Code)(Java Doc) final protected Translator mockTranslator()(Code)(Java Doc) final protected ValidationConstraintGenerator mockValidationConstraintGenerator()(Code)(Java Doc) final protected ValidationMessagesSource mockValidationMessagesSource()(Code)(Java Doc) final protected ValidationTracker mockValidationTracker()(Code)(Java Doc) final protected Validator mockValidator()(Code)(Java Doc) final protected void touch(File f) throws Exception(Code)(Java Doc) final protected void train_addField(ClassTransformation transformation, int modifiers, String type, String suggestedName, String actualName)(Code)(Java Doc) final protected void train_addInjectedField(ClassTransformation ct, Class type, String suggestedName, Object value, String fieldName)(Code)(Java Doc) final protected void train_addMethod(ClassTransformation transformation, MethodSignature signature, String... body)(Code)(Java Doc) final protected void train_buildConstraints(ValidationConstraintGenerator generator, Class propertyType, AnnotationProvider provider, String... constraints)(Code)(Java Doc) final protected void train_create(ApplicationStateCreator<T> creator, T aso)(Code)(Java Doc) final protected void train_create(BeanModelSource source, Class beanClass, boolean filterReadOnly, ComponentResources containerResources, BeanModel model)(Code)(Java Doc) final protected void train_createAsset(AssetFactory factory, Resource resource, Asset asset)(Code)(Java Doc) final protected void train_createValidator(FieldValidatorSource source, Field field, String validatorType, String constraintValue, String overrideId, Messages overrideMessages, Locale locale, FieldValidator result)(Code)(Java Doc) final protected void train_encodeRedirectURL(Response response, String URI, String encoded)(Code)(Java Doc) final protected void train_encodeURL(Response response, String inputURL, String outputURL)(Code)(Java Doc) final protected void train_exists(ApplicationStatePersistenceStrategy strategy, Class<T> asoClass, boolean exists)(Code)(Java Doc) final protected void train_extendConstructor(ClassTransformation transformation, String... body)(Code)(Java Doc) final protected void train_extendMethod(ClassTransformation transformation, MethodSignature signature, String... body)(Code)(Java Doc) final protected void train_findAsset(AssetSource source, Resource root, String path, Locale locale, Asset asset)(Code)(Java Doc) final protected void train_findFieldsOfType(ClassTransformation transformation, String type, String... fieldNames)(Code)(Java Doc) final protected void train_findFieldsWithAnnotation(ClassTransformation transformation, Class<? extends Annotation> annotationClass, List<String> fieldNames)(Code)(Java Doc) final protected void train_findFieldsWithAnnotation(ClassTransformation transformation, Class<? extends Annotation> annotationClass, String... fieldNames)(Code)(Java Doc) final protected void train_findMethods(ClassTransformation transformation, MethodSignature... signatures)(Code)(Java Doc) final protected void train_findMethodsWithAnnotation(ClassTransformation tf, Class<? extends Annotation> annotationType, List<MethodSignature> sigs)(Code)(Java Doc) final protected void train_findUnclaimedFields(ClassTransformation transformation, String... fieldNames)(Code)(Java Doc) final protected void train_generateChecksum(ResourceDigestGenerator generator, URL url, String digest)(Code)(Java Doc) final protected void train_get(ApplicationStatePersistenceStrategy strategy, Class<T> asoClass, ApplicationStateCreator<T> creator, T aso)(Code)(Java Doc) final protected void train_get(ApplicationStatePersistenceStrategySource source, String strategyName, ApplicationStatePersistenceStrategy strategy)(Code)(Java Doc) final protected void train_get(Binding binding, Object value)(Code)(Java Doc) final protected void train_getAliasesForMode(AliasManager manager, String mode, Map<Class, Object> configuration)(Code)(Java Doc) protected void train_getAttribute(HttpSession session, String attributeName, Object value)(Code)(Java Doc) final protected void train_getAttribute(Session session, String name, Object attribute)(Code)(Java Doc) final protected void train_getAttributeNames(Session session, String prefix, String... names)(Code)(Java Doc) final protected void train_getBaseResource(ComponentModel model, Resource resource)(Code)(Java Doc) final protected void train_getBoundType(ComponentResources resources, Class type)(Code)(Java Doc) final protected void train_getClassName(ClassTransformation transformation, String className)(Code)(Java Doc) final protected void train_getClasspathAsset(AssetSource source, String path, Asset asset)(Code)(Java Doc) final protected void train_getClasspathAsset(AssetSource source, String path, Locale locale, Asset asset)(Code)(Java Doc) final protected void train_getCompleteId(ComponentResourcesCommon resources, String completeId)(Code)(Java Doc) final protected void train_getComponent(ComponentResources resources, Component component)(Code)(Java Doc) final protected void train_getComponentClassName(ComponentModel model, String className)(Code)(Java Doc) final protected void train_getComponentResources(Component component, ComponentResources resources)(Code)(Java Doc) final protected void train_getConduit(PropertyModel model, PropertyConduit conduit)(Code)(Java Doc) protected void train_getConstraintType(Validator<C, T> validator, Class<C> constraintType)(Code)(Java Doc) final protected void train_getContainer(ComponentResources resources, Component container)(Code)(Java Doc) final protected void train_getContainerMessages(ComponentResources resources, Messages containerMessages)(Code)(Java Doc) final protected void train_getContainerResources(ComponentResources resources, ComponentResources containerResources)(Code)(Java Doc) final protected void train_getDateHeader(Request request, String name, long value)(Code)(Java Doc) final protected void train_getFieldAnnotation(ClassTransformation transformation, String fieldName, Class<T> annotationClass, T annotation)(Code)(Java Doc) final protected void train_getFieldPersistenceStrategy(ComponentModel model, String fieldName, String fieldStrategy)(Code)(Java Doc) final protected void train_getFieldType(ClassTransformation transformation, String fieldName, String type)(Code)(Java Doc) final protected void train_getId(ComponentResources resources, String id)(Code)(Java Doc) final protected void train_getLabel(Field field, String label)(Code)(Java Doc) final protected void train_getLocale(ComponentResourcesCommon resources, Locale locale)(Code)(Java Doc) final protected void train_getLocale(Request request, Locale locale)(Code)(Java Doc) final public void train_getLocation(Locatable locatable, Location location)(Code)(Java Doc) protected void train_getMessageKey(Validator validator, String messageKey)(Code)(Java Doc) final protected void train_getMessages(ComponentResources resources, Messages messages)(Code)(Java Doc) final protected void train_getMeta(ComponentModel model, String key, String value)(Code)(Java Doc) final protected void train_getMethodAnnotation(ClassTransformation ct, MethodSignature signature, Class<T> annotationClass, T annotation)(Code)(Java Doc) final protected void train_getMethodIdentifier(ClassTransformation transformation, MethodSignature signature, String id)(Code)(Java Doc) final protected void train_getOutputStream(HttpServletResponse response, ServletOutputStream stream)(Code)(Java Doc) final protected void train_getPage(ComponentResources resources, Component page)(Code)(Java Doc) final protected void train_getPageName(ComponentResourcesCommon resources, String pageName)(Code)(Java Doc) final protected void train_getParameter(Request request, String elementName, String value)(Code)(Java Doc) final protected void train_getParameterModel(ComponentModel model, String parameterName, ParameterModel parameterModel)(Code)(Java Doc) final protected void train_getParameterNames(ComponentModel model, String... names)(Code)(Java Doc) final protected void train_getParentModel(ComponentModel model, ComponentModel parentModel)(Code)(Java Doc) final protected void train_getPath(Request request, String path)(Code)(Java Doc) final protected void train_getPersistentFieldNames(ComponentModel model, String... names)(Code)(Java Doc) final protected void train_getResourcesFieldName(ClassTransformation transformation, String name)(Code)(Java Doc) final protected void train_getRootResource(AssetFactory factory, Resource rootResource)(Code)(Java Doc) final protected void train_getSession(HttpServletRequest request, boolean create, HttpSession session)(Code)(Java Doc) protected void train_getSession(Request request, boolean create, Session session)(Code)(Java Doc) final protected void train_getSupportsInformalParameters(ComponentModel model, boolean supports)(Code)(Java Doc) final protected void train_getValidationMessages(ValidationMessagesSource messagesSource, Locale locale, Messages messages)(Code)(Java Doc) final protected void train_getValueType(Validator validator, Class valueType)(Code)(Java Doc) final protected void train_handleResult(ComponentEventHandler handler, Object result, Component component, String methodDescription, boolean abort)(Code)(Java Doc) final protected void train_inError(ValidationTracker tracker, Field field, boolean inError)(Code)(Java Doc) final protected void train_invokeIfBlank(Validator validator, boolean invokeIfBlank)(Code)(Java Doc) final protected void train_isInvariant(Binding binding, boolean isInvariant)(Code)(Java Doc) final protected void train_isRequired(ParameterModel model, boolean isRequired)(Code)(Java Doc) final protected void train_isRootClass(MutableComponentModel model, boolean isRootClass)(Code)(Java Doc) final protected void train_name(Parameter parameter, String name)(Code)(Java Doc) final protected void train_newBinding(BindingFactory factory, String description, ComponentResources container, ComponentResources component, String expression, Location l, Binding binding)(Code)(Java Doc) protected void train_newBinding(BindingSource bindingSource, String description, ComponentResources componentResources, String defaultBindingPrefix, String expression, Binding binding)(Code)(Java Doc) final protected void train_newMemberName(ClassTransformation transformation, String suggested, String name)(Code)(Java Doc) final protected void train_newMemberName(ClassTransformation transformation, String prefix, String baseName, String name)(Code)(Java Doc) final protected void train_peek(Environment env, Class<T> type, T value)(Code)(Java Doc) final protected void train_peekRequired(Environment env, Class<T> type, T value)(Code)(Java Doc) final protected void train_provideInjection(InjectionProvider provider, String fieldName, String fieldType, ObjectLocator locator, ClassTransformation transformation, MutableComponentModel model, boolean result)(Code)(Java Doc) final protected void train_renderInformalParameters(ComponentResources resources, MarkupWriter writer, String... informals)(Code)(Java Doc) final protected void train_requiresDigest(ResourceDigestGenerator generator, String path, boolean requiresDigest)(Code)(Java Doc) final protected void train_service(RequestHandler handler, Request request, Response response, boolean result) throws IOException(Code)(Java Doc) final protected void train_setContentLength(HttpServletResponse response, int length)(Code)(Java Doc) final protected void train_setContentType(HttpServletResponse response, String contentType)(Code)(Java Doc) final protected void train_setDateHeader(HttpServletResponse response, String headerName, long date)(Code)(Java Doc) final protected void train_toClass(ClassTransformation transformation, String type, Class classForType)(Code)(Java Doc) final protected void train_toClientURL(Asset asset, String URL)(Code)(Java Doc) final protected void train_toClientURL(ClasspathAssetAliasManager manager, String resourcePath, String clientURL)(Code)(Java Doc) final protected void train_toRedirectURI(Link link, String URI)(Code)(Java Doc) final protected void train_toResourcePath(ClasspathAssetAliasManager manager, String clientURL, String resourcePath)(Code)(Java Doc) final protected void train_value(Id annotation, String value)(Code)(Java Doc) final protected void train_value(Path annotation, String value)(Code)(Java Doc)
|
|
|