Package org.apache.tapestry.internal.test

Examples of org.apache.tapestry.internal.test.PageTesterContext


public class PageTesterContextTest extends Assert
{
    @Test
    public void to_URL() throws IOException
    {
        PageTesterContext context = new PageTesterContext("src/test/app2");
        URL resource = context.getResource("/OpaqueResource.txt");
        InputStream stream = resource.openStream();
        stream.close();
    }
View Full Code Here


    }

    @Test
    public void to_URL_no_file() throws IOException
    {
        PageTesterContext context = new PageTesterContext("src/test/app2");
        URL resource = context.getResource("/NonExisting.txt");
        assertNull(resource);
    }
View Full Code Here

    }

    @Test
    public void to_URL_is_dir() throws IOException
    {
        PageTesterContext context = new PageTesterContext("src/test");
        URL resource = context.getResource("/app2");
        assertNull(resource);
    }
View Full Code Here

        _invocationMap = _registry.getObject(ComponentInvocationMap.class, null);

        ApplicationGlobals globals = _registry.getObject(ApplicationGlobals.class, null);

        globals.store(new PageTesterContext(_contextPath));

        Map<Class, ComponentInvoker> map = newMap();
        map.put(PageLinkTarget.class, new PageLinkInvoker(_registry));
        map.put(ActionLinkTarget.class, new ActionLinkInvoker(_registry, this, _invocationMap));
View Full Code Here

        _invocationMap = _registry.getObject(ComponentInvocationMap.class, null);

        ApplicationGlobals globals = _registry.getObject(ApplicationGlobals.class, null);

        globals.store(new PageTesterContext(_contextPath));

        Map<Class, ComponentInvoker> map = newMap();
        map.put(PageLinkTarget.class, new PageLinkInvoker(_registry));
        map.put(ActionLinkTarget.class, new ActionLinkInvoker(_registry, this, _invocationMap));
View Full Code Here

TOP

Related Classes of org.apache.tapestry.internal.test.PageTesterContext

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.