fundaccounttest.java

来自「这是本人以前在学校时」· Java 代码 · 共 60 行

JAVA
60
字号
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 + =
减小字号Ctrl + -
显示快捷键?