Package org.apache.cayenne.resource

Examples of org.apache.cayenne.resource.URLResource


public class URLResourceTest extends TestCase {

    public void testURL() throws Exception {
        URL url = new URL("http://cayenne.apache.org");
        URLResource resource = new URLResource(url);
        assertSame(url, resource.getURL());
    }
View Full Code Here


        assertSame(url, resource.getURL());
    }

    public void testGetRelativeResource() throws Exception {
        URL url = new URL("http://cayenne.apache.org");
        URLResource resource = new URLResource(url);
        Resource relativeResource = resource.getRelativeResource("/docs");

        assertNotNull(relativeResource);
        assertEquals("http://cayenne.apache.org/docs", relativeResource
                .getURL()
                .toExternalForm());
View Full Code Here

TOP

Related Classes of org.apache.cayenne.resource.URLResource

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.