Package org.apache.tapestry.model

Examples of org.apache.tapestry.model.ComponentModel


    @Test
    public void invalidation() throws Exception
    {
        File rootDir = createClasspathRoot();
        URLClassLoader loader = newLoaderWithClasspathRoot(rootDir);
        ComponentModel model = mockComponentModel();

        File packageDir = new File(rootDir, "baz");
        packageDir.mkdirs();

        File f = new File(packageDir, "Biff.html");
View Full Code Here


    {
        Resource baseResource = newResource("Fred.class");

        TemplateParser parser = mockTemplateParser();
        ComponentTemplate template = mockComponentTemplate();
        ComponentModel model = mockComponentModel();

        train_getComponentClassName(model, PACKAGE + ".Fred");

        train_getBaseResource(model, baseResource);
View Full Code Here

        Resource contextTemplateResource = newResource("Fred.html");

        TemplateParser parser = mockTemplateParser();
        ComponentTemplate template = mockComponentTemplate();
        ComponentModel model = mockComponentModel();
        PageTemplateLocator locator = mockPageTemplateLocator();
        Locale locale = Locale.FRENCH;

        train_getComponentClassName(model, PACKAGE + ".NotInClasspath");
View Full Code Here

    @Test
    public void no_template_found()
    {
        TemplateParser parser = mockTemplateParser();
        ComponentModel model = mockComponentModel();
        PageTemplateLocator locator = mockPageTemplateLocator();

        Resource baseResource = newResource("Barney.class");

        train_getComponentClassName(model, PACKAGE + ".Barney");
View Full Code Here

        Resource baseBarney = baseFred.forFile("Barney.class");
        PageTemplateLocator locator = mockPageTemplateLocator();

        TemplateParser parser = mockTemplateParser();
        ComponentTemplate template = mockComponentTemplate();
        ComponentModel model = mockComponentModel();
        ComponentModel parentModel = mockComponentModel();

        train_getComponentClassName(model, PACKAGE + ".Barney");

        train_getBaseResource(model, baseBarney);
View Full Code Here

public class PageTemplateLocatorImplTest extends InternalBaseTestCase
{
    @Test
    public void not_a_page_class()
    {
        ComponentModel model = mockComponentModel();
        Resource root = mockResource();
        ComponentClassResolver resolver = mockComponentClassResolver();

        train_getComponentClassName(model, "foo.bar.Baz");
View Full Code Here

    }

    @Test
    public void template_found()
    {
        ComponentModel model = mockComponentModel();
        Resource root = mockResource();
        Resource withExtension = mockResource();
        Resource forLocale = mockResource();
        Locale locale = Locale.FRENCH;
        String className = "myapp.pages.Foo";
View Full Code Here

     * been stripped off and we want to make sure we get it back.
     */
    @Test
    public void uses_simple_class_name_in_folders()
    {
        ComponentModel model = mockComponentModel();
        Resource root = mockResource();
        Resource withExtension = mockResource();
        Resource forLocale = mockResource();
        Locale locale = Locale.FRENCH;
        String className = "myapp.pages.foo.CreateFoo";
View Full Code Here

    }

    @Test
    public void template_not_found()
    {
        ComponentModel model = mockComponentModel();
        Resource root = mockResource();
        Resource withExtension = mockResource();
        Locale locale = Locale.GERMAN;
        String className = "myapp.pages.bar.Baz";
View Full Code Here

    @Test
    public void declared_parameter_names_does_not_include_superclass_parameters()
    {
        Resource r = mockResource();
        Logger logger = mockLogger();
        ComponentModel parent = mockComponentModel();

        train_getPersistentFieldNames(parent);
        train_getParameterNames(parent, "betty");

        replay();
View Full Code Here

TOP

Related Classes of org.apache.tapestry.model.ComponentModel

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.