org.apache.pluto.testsuite
Class NoOpTest

java.lang.Object
  extended by org.apache.pluto.testsuite.NoOpTest
All Implemented Interfaces:
PortletTest

public class NoOpTest
extends Object
implements PortletTest

Since:
Mar 9, 2005
Version:
1.0

Constructor Summary
NoOpTest()
          Default no-arg constructor.
 
Method Summary
 void doHeaders(PortletConfig config, PortletContext context, RenderRequest request, RenderResponse response)
          Called by TestPortlet.doHeaders()
 TestResults doTest(PortletConfig config, PortletContext context, PortletRequest request, PortletResponse response)
          Runs the test.
 TestConfig getConfig()
          Returns the test configuration.
 Map<String,String[]> getRenderParameters(PortletRequest request)
          Returns the render parameters.
 String getTestSuiteName()
          Returns the test suite name.
 void init(TestConfig config)
          Initializes the portlet test using test configuration.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NoOpTest

public NoOpTest()
Default no-arg constructor.

Method Detail

getTestSuiteName

public String getTestSuiteName()
Description copied from interface: PortletTest
Returns the test suite name.

Specified by:
getTestSuiteName in interface PortletTest
Returns:
the test suite name.

getRenderParameters

public Map<String,String[]> getRenderParameters(PortletRequest request)
Description copied from interface: PortletTest
Returns the render parameters. This method will be invoked in Portlet.processAction() method. All parameters returned by this method will be set as render parameters.

Specified by:
getRenderParameters in interface PortletTest
Parameters:
request - the portlet request.
Returns:
a map of render parameters, key is the string name of the parameter, value is a string array.

doTest

public TestResults doTest(PortletConfig config,
                          PortletContext context,
                          PortletRequest request,
                          PortletResponse response)
Description copied from interface: PortletTest
Runs the test.

Specified by:
doTest in interface PortletTest
Parameters:
config - the portlet config.
context - the portlet context.
request - the portlet request.
response - the portlet response.
Returns:
the results of the test.

init

public void init(TestConfig config)
Description copied from interface: PortletTest
Initializes the portlet test using test configuration.

Specified by:
init in interface PortletTest
Parameters:
config - the test configuration.

getConfig

public TestConfig getConfig()
Description copied from interface: PortletTest
Returns the test configuration.

Specified by:
getConfig in interface PortletTest
Returns:
the test configuration.

doHeaders

public void doHeaders(PortletConfig config,
                      PortletContext context,
                      RenderRequest request,
                      RenderResponse response)
Description copied from interface: PortletTest
Called by TestPortlet.doHeaders()

Specified by:
doHeaders in interface PortletTest


Copyright © 2003-2011 Apache Software Foundation. All Rights Reserved.