📄 fundaccounttest.java
字号:
package com.funddeal.test;
import com.funddeal.model.bean.fund_account.FundAccountJB;
import com.funddeal.model.pojo.custom_entity.OperLogParamEntity;
import com.funddeal.model.pojo.fund_account.FundAccount;
import junit.framework.TestCase;
public class FundAccountTest extends TestCase {
FundAccountJB acJB;
protected void setUp() throws Exception {
super.setUp();
acJB=new FundAccountJB();
}
protected void tearDown() throws Exception {
super.tearDown();
}
/*
public void testFundAccount(){
FundAccount fa=new FundAccount();
fa.setFinancialAccNo("FINA20060704021437109");
fa.setFundAccNo("FUNA20060704021437109");
fa.setFundNo("FUND20060704091437109");
fa.setPrice(56.0f);
fa.setQuantity(10);
String pwd="123456";
OperLogParamEntity olpe=new OperLogParamEntity();
olpe.setMachineAddress("127.0.0.1");
olpe.setOperResultId("FUNA20060704021437109");
olpe.setOperTableName("FUND_ACCOUNT");
olpe.setOperType("购物基金");
olpe.setSalesNo("SALE20060704021437109");
if( acJB.addFundAccountJB(fa,pwd,olpe)){
System.out.println("OK");
}else{
System.out.println("Failure:"+ FundAccountJB.errorMsg);
}
}
*/
public void testFundAccount(){
FundAccount fa=new FundAccount();
fa.setFundAccNo("FUNA20060704021437109");
fa.setQuantity(3);
String pwd="123456";
OperLogParamEntity olpe=new OperLogParamEntity();
olpe.setMachineAddress("127.0.0.1");
olpe.setOperResultId("FUNA20060704021437109");
olpe.setOperTableName("FUND_ACCOUNT");
olpe.setOperType("购物基金");
olpe.setSalesNo("SALE20060704021437109");
if( acJB.redeemFundAccount(fa,pwd,olpe)){
System.out.println("OK");
}else{
System.out.println("Failure:"+ FundAccountJB.errorMsg);
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -