Examples of WebApplicationResourceLocatorAccess


Examples of org.apache.cayenne.util.WebApplicationResourceLocatorAccess

        ResourceLocator locator = ServletUtil.createLocator(context);
        assertNotNull("Locator not initialized", locator);
        assertTrue(
                "Unexpected Locator type: " + locator.getClass().getName(),
                locator instanceof WebApplicationResourceLocator);
        WebApplicationResourceLocatorAccess accessor = new WebApplicationResourceLocatorAccess(
                (WebApplicationResourceLocator) locator);

        assertTrue(accessor.getAdditionalContextPaths().contains("/WEB-INF/xyz"));
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.