}
}
/**
*
* 功能描述:获得结果
* @author mo xiao ming
* @param rerultType
* @return
*/
private static String getResult (Object o,String rerultType)
{
String rsString = "";
//void
if ("void".equals(rerultType) || NULL.equals(rerultType)) {
rsString = "无返回值";
}
//Object
if ("Object".equals(rerultType)) {
if (o != null) {
rsString = o.toString();
}
}
//Integer类型
if ("int".equals(rerultType)
|| "Integer".equals(rerultType))
{
if (o != null) {
rsString = o.toString();
}
}
//字符串类型
if ("String".equals(rerultType)) {
if (o != null) {
rsString = o.toString();
文章来源于领测软件测试网 https://www.ltesting.net/