
org.simple4j.wsfeeler.pojoashttp.MethodParameterJSON Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of WSFeeler Show documentation
Show all versions of WSFeeler Show documentation
This is a simple end to end Web Service Testing library to test wide variety of web service.
It supports hierarchy of test cases and test steps with wiring of request response objects using templated variable replacement.
The test steps can be Web Service or DB call out of the box with capability to extend to other test steps.
The DB steps are for data setup and assertion of values from the DB.
package org.simple4j.wsfeeler.pojoashttp;
import java.util.Arrays;
import java.util.Map;
/**
* HTTPExposer web service request body method parameter structure
*/
public class MethodParameterJSON {
String className = null;
String value = null;
String values[] = null;
Map valueJSON = null;
Map valueJSONx[] = null;
/**
* Fully qualified class name of the parameter type
* To call methods with primitive types, the client need to use TYPE field.
*
* Here is an example
* {"beanId":"someBean","methodName":"someMethod", "methodParameters" : [{"className":"java.lang.String","value":"someStringParam"},{"className":"java.lang.Integer.TYPE","value":"100"}]}
*/
public String getClassName() {
return className;
}
public void setClassName(String className) {
this.className = className;
}
/**
* value for the parameter when its not an array and not custom class
*/
public String getValue() {
return value;
}
public void setValue(String value) {
this.value = value;
}
/**
* value for the parameter when its an array and not custom class
*/
public String[] getValues() {
return values;
}
public void setValues(String[] values) {
this.values = values;
}
/**
* value for the parameter when its not an array and is a custom class
*/
public Map getValueJSON() {
return valueJSON;
}
public void setValueJSON(Map valueJSON) {
this.valueJSON = valueJSON;
}
/**
* value for the parameter when its an array and is a custom class
*/
public Map[] getValueJSONx()
{
return valueJSONx;
}
public void setValueJSONx(Map[] valueJSONx)
{
this.valueJSONx = valueJSONx;
}
@Override
public String toString()
{
StringBuilder builder = new StringBuilder();
builder.append(super.toString()).append(" [className=").append(className).append(", value=").append(value)
.append(", values=").append(Arrays.toString(values)).append(", valueJSON=").append(valueJSON)
.append(", valueJSONx=").append(Arrays.toString(valueJSONx)).append("]");
return builder.toString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy