概述
package com.pingan.stock.oas.app.openacc.action;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
import com.alibaba.fastjson.JSON;
import com.pingan.pafa.papp.test.BaseSARTest;
import com.pingan.pafa.papp.test.SARContextConfiguration;
import com.pingan.stock.oas.admin.core.action.OasVideoHangupReasonCfgAction;
import com.pingan.stock.oas.common.web.form.OASVideoHangupReasonCfgForm;
import com.pingan.stock.oas.common.web.vo.RemVO;
@SARContextConfiguration(sarList = "oas_admin_core", protocols = "jetty")
public class OasVideoHangupReasonCfgActionTest extends BaseSARTest{
@Autowired
private OasVideoHangupReasonCfgAction cfgAction;
@Test
public void test_add(){
OASVideoHangupReasonCfgForm cfgForm = new OASVideoHangupReasonCfgForm();
cfgForm.setName_zh("aaaaaaaaaaaaa");
cfgForm.setDisplay_name("aaaaaaaa");
cfgForm.setChannel_id("ydkh");
try {
RemVO remVO = cfgAction.addHangupReasonCfg(cfgForm);
String str = JSON.toJSONString(remVO);
System.err.println(str);
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
@Test
public void test_update(){
OASVideoHangupReasonCfgForm cfgForm = new OASVideoHangupReasonCfgForm();
cfgForm.setName_zh("bbbbbbbbbbbbbbbbbbbb");
cfgForm.setDisplay_name("bbbbb");
cfgForm.setChannel_id("ydkh");
cfgForm.setId("8A2AD090DB504D0AE0537AAF190AE576");
try {
RemVO remVO = cfgAction.updateHangupReasonCfg(cfgForm);
String str = JSON.toJSONString(remVO);
System.err.println(str);
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
@Test
public void test_delete(){
String idStr = "8A2AD090DB504D0AE0537AAF190AE576";
try {
RemVO remVO = cfgAction.deleteHangupReasonCfg(idStr);
String str = JSON.toJSONString(remVO);
System.err.println(str);
} catch (Exception e) {
e.printStackTrace();
}
}
@Test
public void test_query(){
OASVideoHangupReasonCfgForm cfgForm = new OASVideoHangupReasonCfgForm();
cfgForm.setName_zh("客户端挂断");
// cfgForm.setDisplay_name("bbbbb");
// cfgForm.setChannel_id("ydkh");
// cfgForm.setId("8A2AD090DB504D0AE0537AAF190AE576");
try {
RemVO remVO = cfgAction.queryHangupReasonCfg(cfgForm);
String str = JSON.toJSONString(remVO);
System.err.println(str);
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}
最后
以上就是懦弱银耳汤为你收集整理的java中白盒测试用例_单元测试案例(白盒测试)的全部内容,希望文章能够帮你解决java中白盒测试用例_单元测试案例(白盒测试)所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
发表评论 取消回复