unitee
Interface TestParameters

All Known Implementing Classes:
AbstractTestParameters, RemoteTestParametersStub

public interface TestParameters

Provides an interface to fetch test parameter values from Unitee's framework. A normal TestCase would use any combination of the get() methods. The set() , remove() and getParameterNames() , getAllParameterNames() are to be used by Unitee's framework and tools.


Method Summary
 java.lang.String[] getAllParameterNames()
          Returns all parameters of all chained TestParameters.
 byte[] getByteArray(java.lang.String name)
           
 double getDouble(java.lang.String name)
           
 long getLong(java.lang.String name)
           
 java.lang.String[] getParameterNames()
          Returns all local parameters for this test.
 java.lang.Class getParameterType(java.lang.String name)
           
 java.lang.String getPassword(java.lang.String name)
           
 java.lang.String getString(java.lang.String name)
           
 void removeParameter(java.lang.String name)
           
 void setByteArray(java.lang.String name, byte[] data)
           
 void setDouble(java.lang.String name, double value)
           
 void setLong(java.lang.String name, long value)
           
 void setPassword(java.lang.String name, java.lang.String password)
           
 void setString(java.lang.String name, java.lang.String value)
           
 

Method Detail

getAllParameterNames

public java.lang.String[] getAllParameterNames()
Returns all parameters of all chained TestParameters.

getParameterNames

public java.lang.String[] getParameterNames()
Returns all local parameters for this test.

getByteArray

public byte[] getByteArray(java.lang.String name)
                    throws ParameterException

getDouble

public double getDouble(java.lang.String name)
                 throws ParameterException

getLong

public long getLong(java.lang.String name)
             throws ParameterException

getParameterType

public java.lang.Class getParameterType(java.lang.String name)

getPassword

public java.lang.String getPassword(java.lang.String name)
                             throws ParameterException

getString

public java.lang.String getString(java.lang.String name)
                           throws ParameterException

removeParameter

public void removeParameter(java.lang.String name)

setByteArray

public void setByteArray(java.lang.String name,
                         byte[] data)

setDouble

public void setDouble(java.lang.String name,
                      double value)

setLong

public void setLong(java.lang.String name,
                    long value)

setPassword

public void setPassword(java.lang.String name,
                        java.lang.String password)

setString

public void setString(java.lang.String name,
                      java.lang.String value)