Package com.volantis.map.agent.impl

Examples of com.volantis.map.agent.impl.DefaultRequest


    /**
     * factors an instance of the thing being tested
     * @return a DefaultRequest instance
     */
    private DefaultRequest createTestable() {
        return new DefaultRequest("test-type", "source-url");
    }
View Full Code Here


    /**
     * Tests the {@link DefaultRequest#getResourceType()} method
     */
    public void testGetResourceType() throws Exception {
        DefaultRequest dr = createTestable();
        assertEquals("wrong resource type returned",
                     dr.getResourceType(),
                     "test-type");
    }
View Full Code Here

    /**
     * Tests the {@link DefaultRequest#getSourceURL()} ()} method
     */
    public void testGetSourceURL() throws Exception {
        DefaultRequest dr = createTestable();
        assertNull("expected null source url",
                    dr.getSourceURL());

       ((MutableParameters)dr.getInputParams()).setParameterValue("source-url",
                                                                  "the-url");
        assertEquals("wrong source url returned",
                     dr.getSourceURL(),
                     "the-url");
    }
View Full Code Here

    /**
     * Tests the {@link DefaultRequest#getOutputParams()} ()} method
     */
    public void testGetOutputParams() throws Exception {
        DefaultRequest dr = createTestable();
        assertNotNull("expected non null output parameters",
                    dr.getOutputParams());
    }
View Full Code Here

    /**
     * Tests the {@link DefaultRequest#getInputParams()} ()} method
     */
    public void testGetInputParams() throws Exception {
        DefaultRequest dr = createTestable();
        assertNotNull("expected non null output parmeters",
                    dr.getInputParams());
    }
View Full Code Here

TOP

Related Classes of com.volantis.map.agent.impl.DefaultRequest

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.