All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.googlecode.gwt.test.rpc.ServletMockProviderAdapter Maven / Gradle / Ivy

There is a newer version: 0.63
Show newest version
package com.googlecode.gwt.test.rpc;

import com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet;

import javax.servlet.ServletConfig;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.lang.reflect.Method;

/**
 * Adapter for {@link ServletMockProvider}, which provides a default (returning null) implementation
 * for all its methods.
 *
 * @author Gael Lazzari
 */
public class ServletMockProviderAdapter implements ServletMockProvider {

    /*
     * (non-Javadoc)
     *
     * @see
     * com.googlecode.gwt.test.rpc.ServletMockProvider#getMockedConfig(com.google.gwt.user.server
     * .rpc.AbstractRemoteServiceServlet)
     */
    public ServletConfig getMockedConfig(AbstractRemoteServiceServlet remoteService) {
        return null;
    }

    /*
     * (non-Javadoc)
     *
     * @see
     * com.googlecode.gwt.test.rpc.ServletMockProvider#getMockedRequest(com.google.gwt.user.server
     * .rpc.AbstractRemoteServiceServlet, java.lang.reflect.Method)
     */
    public HttpServletRequest getMockedRequest(AbstractRemoteServiceServlet remoteService,
                                               Method remoteMethod) {
        return null;
    }

    /*
     * (non-Javadoc)
     *
     * @see
     * com.googlecode.gwt.test.rpc.ServletMockProvider#getMockedResponse(com.google.gwt.user.server
     * .rpc.AbstractRemoteServiceServlet, java.lang.reflect.Method)
     */
    public HttpServletResponse getMockedResponse(AbstractRemoteServiceServlet remoteService,
                                                 Method remoteMethod) {
        return null;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy