01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * http://www.apache.org/licenses/LICENSE-2.0
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: */
17: package org.apache.pluto.testsuite;
18:
19: import javax.portlet.PortletConfig;
20: import javax.portlet.PortletContext;
21: import javax.portlet.PortletRequest;
22: import javax.portlet.PortletResponse;
23:
24: import java.util.HashMap;
25: import java.util.Map;
26:
27: /**
28: * @version 1.0
29: * @since Mar 9, 2005
30: */
31: public class NoOpTest implements PortletTest {
32:
33: /** The test configuration. */
34: private TestConfig config;
35:
36: // Constructor -------------------------------------------------------------
37:
38: /**
39: * Default no-arg constructor.
40: */
41: public NoOpTest() {
42: // Do nothing.
43: }
44:
45: // PortletTest Impl --------------------------------------------------------
46:
47: public String getTestSuiteName() {
48: return "NoOpTest";
49: }
50:
51: public Map getRenderParameters(PortletRequest request) {
52: return new HashMap();
53: }
54:
55: public TestResults doTest(PortletConfig config,
56: PortletContext context, PortletRequest request,
57: PortletResponse response) {
58: return new TestResults("None");
59: }
60:
61: public void init(TestConfig config) {
62: this .config = config;
63: }
64:
65: public TestConfig getConfig() {
66: return config;
67: }
68:
69: }
|