org.jboss.portal.test.framework
Class TestParametrization

java.lang.Object
  extended by org.jboss.portal.test.framework.TestParametrization
All Implemented Interfaces:
java.io.Serializable

public class TestParametrization
extends java.lang.Object
implements java.io.Serializable

The parametrization of a test.

Version:
$Revision: 7230 $
Author:
Julien Viet
See Also:
Serialized Form

Constructor Summary
TestParametrization()
           
TestParametrization(java.util.Map parameterValues)
           
 
Method Summary
 java.util.Collection create(TestInfo info)
          Build a collection of parametrization that satisfies the parameters exposed by the test meta information and the parameter provided by the map.
 TestParameterValue getParameterValue(java.lang.String parameterName)
          Return a parameter value.
 boolean isEmpty()
           
 void setParameterValue(java.lang.String parameterName, TestParameterValue parameterValue)
          Set a parameter value, using a null value will remove the parameter.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TestParametrization

public TestParametrization()

TestParametrization

public TestParametrization(java.util.Map parameterValues)
                    throws java.lang.IllegalArgumentException
Throws:
java.lang.IllegalArgumentException
Method Detail

setParameterValue

public void setParameterValue(java.lang.String parameterName,
                              TestParameterValue parameterValue)
                       throws java.lang.IllegalArgumentException
Set a parameter value, using a null value will remove the parameter.

Parameters:
parameterName - the parameter name
parameterValue - the parameter value
Throws:
java.lang.IllegalArgumentException - if the parameter name is null

getParameterValue

public TestParameterValue getParameterValue(java.lang.String parameterName)
                                     throws java.lang.IllegalArgumentException
Return a parameter value.

Parameters:
parameterName - the parameter name
Returns:
the parameter value or null if it does not exist
Throws:
java.lang.IllegalArgumentException - if the parameter name is null

isEmpty

public boolean isEmpty()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

create

public java.util.Collection create(TestInfo info)
Build a collection of parametrization that satisfies the parameters exposed by the test meta information and the parameter provided by the map.