Package org.apache.tiles.request.locale

Examples of org.apache.tiles.request.locale.URLApplicationResource


     * Test method for {@link BaseLocaleUrlDefinitionDAO#loadDefinitionsFromURL(URL)}.
     * @throws MalformedURLException If something goes wrong.
     */
    @Test
    public void testLoadDefinitionsFromURLFileNotFound() throws MalformedURLException {
        URLApplicationResource resource = new URLApplicationResource("/hello/there.txt", new URL(
                "file:///hello/there.txt"));
        replay(dao);
        DefinitionsReader reader = createMock(DefinitionsReader.class);
        replay(reader);

View Full Code Here


    @Override
    public void setUp() {
        ApplicationContext context = EasyMock
                .createMock(ApplicationContext.class);
        URL url = getClass().getResource("/org/apache/tiles/factory/test-defs.xml");
        URLApplicationResource resource = new URLApplicationResource("/WEB-INF/tiles.xml", url);

        EasyMock.expect(context.getResource("/WEB-INF/tiles.xml"))
                .andReturn(resource);
        EasyMock.replay(context);
        AbstractTilesContainerFactory factory = new BasicTilesContainerFactory();
View Full Code Here

TOP

Related Classes of org.apache.tiles.request.locale.URLApplicationResource

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.