saker.java.testing Documentation TaskDoc JavaDoc Packages
public final class TestInvocationParameters implements Externalizable
Immutable data class holding the parameter information for a single Java test case.

The class contains the test case class name and the stirng key-value pairs specified by the user.

Constructors
public
public
Creates a new instance containing the specified test class name and no parameters.
public
TestInvocationParameters(String testClassName, Map<String, String> parameters)
Creates a new instance containing the specified test class name and parameters.
Methods
public String
get(String key)
Gets the parameter for the given name.
public String
get(String key, String defaultvalue)
Gets the parameter for the given name or a default value if not present.
public Map<String, String>
Gets the test case parameters.
public String
Gets the name of the test case that should be invoked.
public void
The object implements the readExternal method to restore its contents by calling the methods of DataInput for primitive types and readObject for objects, strings and arrays.
public String
Returns a string representation of the object.
public void
The object implements the writeExternal method to save its contents by calling the methods of DataOutput for its primitive values or calling the writeObject method of ObjectOutput for objects, strings, and arrays.
Creates a new instance containing the specified test class name and no parameters.
testClassNameThe test class name.
NullPointerExceptionIf the test class name is null.
public TestInvocationParameters(String testClassName, Map<String, String> parameters) throws NullPointerException
Creates a new instance containing the specified test class name and parameters.
testClassNameThe test class name.
parametersThe parameters for the test case.
NullPointerExceptionIf the test class name is null.
public String get(String key)
Gets the parameter for the given name.
keyThe key.
The associated parameter value or null if not present.
public String get(String key, String defaultvalue)
Gets the parameter for the given name or a default value if not present.
keyThe key.
defaultvalueThe default value.
The associated parameter value or defaultvalue if not present.
Gets the test case parameters.
The parameters.
Gets the name of the test case that should be invoked.
The binary name of the test class.
Overridden from: Externalizable
The object implements the readExternal method to restore its contents by calling the methods of DataInput for primitive types and readObject for objects, strings and arrays. The readExternal method must read the values in the same sequence and with the same types as were written by writeExternal.
inthe stream to read data from in order to restore the object
IOExceptionif I/O errors occur
ClassNotFoundExceptionIf the class for an object being restored cannot be found.
public String toString()
Overridden from: Object
Returns a string representation of the object. In general, the toString method returns a string that "textually represents" this object. The result should be a concise but informative representation that is easy for a person to read. It is recommended that all subclasses override this method.

The toString method for class Object returns a string consisting of the name of the class of which the object is an instance, the at-sign character `@', and the unsigned hexadecimal representation of the hash code of the object. In other words, this method returns a string equal to the value of:

 getClass().getName() + '@' + Integer.toHexString(hashCode())
 
a string representation of the object.
public void writeExternal(ObjectOutput out) throws IOException
Overridden from: Externalizable
The object implements the writeExternal method to save its contents by calling the methods of DataOutput for its primitive values or calling the writeObject method of ObjectOutput for objects, strings, and arrays.
outthe stream to write the object to
IOExceptionIncludes any I/O exceptions that may occur