KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > pluto > portalImpl > portlet > test > NoOpTest


1 /*
2  * Copyright 2004 The Apache Software Foundation
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

16 package org.apache.pluto.portalImpl.portlet.test;
17
18 import java.util.Map JavaDoc;
19
20 import javax.portlet.PortletConfig;
21 import javax.portlet.PortletContext;
22 import javax.portlet.PortletRequest;
23 import javax.portlet.PortletResponse;
24
25 import org.apache.pluto.portalImpl.portlet.TestConfig;
26
27 /**
28  * @author <a HREF="ddewolf@apache.org">David H. DeWolf</a>
29  * @version 1.0
30  * @since Mar 9, 2005
31  */

32 public class NoOpTest implements PortletTest {
33     private TestConfig config;
34
35     public NoOpTest() {
36
37     }
38
39     public String JavaDoc getTestSuiteName() {
40         return "NoOpTest";
41     }
42
43     public Map JavaDoc getRenderParameters(PortletRequest req) {
44         return new java.util.HashMap JavaDoc();
45     }
46
47     public TestResults doTest(PortletConfig config, PortletContext context,
48                               PortletRequest req, PortletResponse res) {
49         return new TestResults("None");
50     }
51
52     public void init(TestConfig config) {
53         this.config = config;
54     }
55
56     public TestConfig getConfig() {
57         return config;
58     }
59 }
60
61
Popular Tags