public interface TestObject
| Modifier and Type | Method and Description |
|---|---|
<T> T |
callMethod(Class clazz,
String name,
Object... parameters)
Invokes the specified method and returns the result.
|
void |
callMethod(String name,
Object... parameters)
Sets a value for the specified property.
|
<T> T |
cast(Class clazz)
Casts the interface to an interface of another type.
|
<T> T |
getProperty(Class clazz,
String name,
Object... parameters)
Returns the value of the specified property.
|
void |
setProperty(String name,
Object value,
Object... parameters)
Sets a value for the specified property.
|
String |
toString() |
<T> T getProperty(Class clazz, String name, Object... parameters) throws InvocationException, HttpException
T - The type of the object that will be returned.clazz - The type of the object that will be returned.name - The property name.parameters - An array of property parameters.T type.InvocationException - Will be thrown if invocation fails.InvalidCastException - Will be thrown if incoming data cannot be converted to the type T.HttpException - Thrown if there are network problems.void callMethod(String name, Object... parameters) throws InvocationException, HttpException
name - The property name.parameters - An array of property parameters.InvocationException - Will be thrown if invocation fails.HttpException - Thrown if there are network problems.<T> T callMethod(Class clazz, String name, Object... parameters) throws InvocationException, HttpException
T - The type of the object that will be returned.clazz - The type of the object that will be returned.name - The method name.parameters - An array of method parameters.T type.InvocationException - Will be thrown if invocation fails.InvalidCastException - Will be thrown if incoming data cannot be converted to the type T.HttpException - Thrown if there are network problems.void setProperty(String name, Object value, Object... parameters) throws InvocationException, HttpException
name - The property name.value - The property value.parameters - An array of property parameters.InvocationException - Will be thrown if invocation fails.HttpException - Thrown if there are network problems.<T> T cast(Class clazz)
T - The interface that will be implemented in the returned object.clazz - The interface that will be implemented in the returned object.T interface.Copyright © 2020 SmartBear Software. All Rights Reserved.