Add a test for issue 5134 to ensure that RequestFactory interfaces can be extended.
Patch by: bobv
Review by: rchandia
Reported by: pjulien
Review at http://gwt-code-reviews.appspot.com/1138801
git-svn-id: https://google-web-toolkit.googlecode.com/svn/trunk@9272 8db76d5a-ed1c-0410-87a9-c151d255dfc7
diff --git a/user/test/com/google/gwt/requestfactory/shared/BasicRequestFactory.java b/user/test/com/google/gwt/requestfactory/shared/BasicRequestFactory.java
new file mode 100644
index 0000000..8b02b3f
--- /dev/null
+++ b/user/test/com/google/gwt/requestfactory/shared/BasicRequestFactory.java
@@ -0,0 +1,27 @@
+/*
+ * Copyright 2010 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.requestfactory.shared;
+
+/**
+ * A base type for {@link SimpleRequestFactory} to ensure that extending
+ * RequestFactory interfaces works correctly.
+ */
+public interface BasicRequestFactory extends RequestFactory {
+
+ LoggingRequest loggingRequest();
+
+ UserInformationRequest userInformationRequest();
+}
diff --git a/user/test/com/google/gwt/requestfactory/shared/SimpleRequestFactory.java b/user/test/com/google/gwt/requestfactory/shared/SimpleRequestFactory.java
index 812858a..082f3a1 100644
--- a/user/test/com/google/gwt/requestfactory/shared/SimpleRequestFactory.java
+++ b/user/test/com/google/gwt/requestfactory/shared/SimpleRequestFactory.java
@@ -19,13 +19,9 @@
* Simple RequesetFactory interface with two domain objects, and our standard
* UserInformation and Logging services.
*/
-public interface SimpleRequestFactory extends RequestFactory {
-
- LoggingRequest loggingRequest();
+public interface SimpleRequestFactory extends BasicRequestFactory {
SimpleBarRequest simpleBarRequest();
-
- SimpleFooRequest simpleFooRequest();
- UserInformationRequest userInformationRequest();
+ SimpleFooRequest simpleFooRequest();
}