blob: 15dcbdb490f696c924e36cdb4afd1e09dc84b3b5 [file] [log] [blame]
/*
* Copyright 2009 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
package com.google.gwt.user.client.rpc;
import com.google.gwt.junit.client.GWTTestCase;
/**
* Base class for RPC tests.
*/
public class RpcTestBase extends GWTTestCase {
/**
* The timeout for RPC tests.
*/
protected static final int RPC_TIMEOUT = 15000;
@Override
public String getModuleName() {
return "com.google.gwt.user.RPCSuite";
}
/**
* Delay finishing a test while we wait for an RPC response. This method
* should be used instead of {@link #delayTestFinish(int)} so we can adjust
* timeouts for all Rpc tests at once.
*
* @see #delayTestFinish(int)
*/
protected final void delayTestFinishForRpc() {
delayTestFinish(RPC_TIMEOUT);
}
}